9c7c797
/* simple test program to see if we can link the embedded server library */
9c7c797
9c7c797
#include <stdio.h>
9c7c797
#include <stdlib.h>
9c7c797
#include <stdarg.h>
9c7c797
9c7c797
#include "mysql.h"
9c7c797
9c7c797
MYSQL *mysql;
9c7c797
9c7c797
static char *server_options[] = \
9c7c797
       { "mysql_test", "--defaults-file=my.cnf", NULL };
9c7c797
int num_elements = (sizeof(server_options) / sizeof(char *)) - 1;
9c7c797
9c7c797
static char *server_groups[] = { "libmysqld_server", 
9c7c797
                                 "libmysqld_client", NULL };
9c7c797
9c7c797
int main(int argc, char **argv)
9c7c797
{
9c7c797
   mysql_library_init(num_elements, server_options, server_groups);
9c7c797
   mysql = mysql_init(NULL);
9c7c797
   mysql_close(mysql);
9c7c797
   mysql_library_end();
9c7c797
9c7c797
   return 0;
9c7c797
}