Blame SOURCES/mysql-embedded-check.c

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