Hi guys! :) i need some help...
i got the auth_dialog and i'm including some features to implement otp (one time password) my question is...

what ".h" file should i include to allow read/write from any_table from mysql schema?
i checked some read/write from selftunning optimizer ( https://github.com/igniting/server/blob/3d101751d27215ccf88c6c9701ca113de4aabb4b/sql/opt_costmodel.cc#L273 )

but i didn't understand what should be included 

i'm getting messages like: 

In file included from /home/rspadim/mariadb/mariadb-10.1/server/sql/opt_range.h:36:0,
                 from /home/rspadim/mariadb/mariadb-10.1/server/plugin/auth_otp/otp_auth.cc:26:


---
my current source code (i don't know if .h order is ok):
INCLUDES:
#include "unireg.h"     <- line 20
#include "sql_base.h"
#include "lex.h"
#include "sql_table.h"
#include "sql_priv.h"
#include "sql_class.h"
#include "opt_range.h"   <- line 26
#include "records.h"
#include <mysql/plugin_auth.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <mysql/auth_dialog_client.h>





--
Roberto Spadim
SPAEmpresarial
Eng. Automação e Controle