/* GNOME DB Provider * Copyright (C) 2000 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the Free * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "gda-.h" static Gda_ServerImpl* server_impl = NULL; static Gda_ServerImplFunctions server_impl_functions = { gda__connection_new, gda__connection_open, gda__connection_close, gda__connection_begin_transaction, gda__connection_commit_transaction, gda__connection_rollback_transaction, gda__connection_open_schema, gda__connection_start_logging, gda__connection_stop_logging, gda__connection_create_table, gda__connection_supports, gda__connection_get_gda_type, gda__connection_get_c_type, gda__connection_free, gda__command_new, gda__command_execute, gda__command_free, gda__recordset_new, gda__recordset_move_next, gda__recordset_move_prev, gda__recordset_close, gda__recordset_free, gda__error_make }; gint main (gint argc, gchar *argv[]) { /* initialize CORBA stuff */ gda_server_init("gda-", VERSION, argc, argv); /* register the server implementation */ server_impl = gda_server_impl_new("OAFIID:GNOME_GDA_Provider__ConnectionFactory", &server_impl_functions); if (server_impl) { gda_server_impl_start(server_impl); } else gda_log_error(_("Could not register provider implementation")); return 0; }