void
do_stuff ()
{
GdaClient *client;
GdaConnection *connection;
list_providers ();
list_datasources ();
client = gda_client_new ();
g_print ("CONNECTING\n");
connection = gda_client_open_connection (client, "calvaris", NULL, NULL);
g_print ("CONNECTED\n");
proving_errors (connection);
process_accounts(connection);
process_accounts2(connection);
gda_client_close_all_connections (client);
gda_main_quit();
}
int
main (int argc, char **argv)
{
g_print ("STARTING\n");
gda_init ("TestGDA", "0.1", argc, argv);
save_ds ();
// remove_ds();
gda_main_run ((GdaInitFunc) do_stuff, (gpointer) NULL);
// do_stuff();
}
|