AcouSTO  version 2.0

◆ read_mysql()

int read_mysql ( )
22  {
23 
24  int ltmp;
25 
26  CONFIG_GET_INT (config,"mysql.active" ,mysqlinfo->active);
27  CONFIG_GET_STRING(config,"mysql.host" ,mysqlinfo->mysql_hostname );
28  CONFIG_GET_STRING(config,"mysql.user" ,mysqlinfo->mysql_user );
29  CONFIG_GET_STRING(config,"mysql.password",mysqlinfo->mysql_password );
30  CONFIG_GET_STRING(config,"mysql.db" ,mysqlinfo->mysql_db );
31  CONFIG_GET_INT (config,"mysql.port" ,mysqlinfo->mysql_port);
32  mysqlinfo->runid = -1;
33  return 0;
34 }
#define CONFIG_GET_INT(config, name, var)
Definition: config.h:47
#define CONFIG_GET_STRING(config, name, var)
Definition: config.h:48
struct config_t config
Definition: config.h:61