/* * $Id: main-sybase.c,v 1.9 2001/07/18 23:05:42 vivien Exp $ * * GNOME DB sybase Provider * Copyright (C) 2000 Rodrigo Moya * Copyright (C) 2000 Stephan Heinze * Copyright (C) 2000 Holger Thon * * 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-sybase.h" static GdaServer *server_impl = NULL; static GdaServerImplFunctions server_impl_functions = { gda_sybase_connection_new, gda_sybase_connection_open, gda_sybase_connection_close, gda_sybase_connection_begin_transaction, gda_sybase_connection_commit_transaction, gda_sybase_connection_rollback_transaction, gda_sybase_connection_open_schema, gda_sybase_connection_modify_schema, gda_sybase_connection_start_logging, gda_sybase_connection_stop_logging, gda_sybase_connection_create_table, gda_sybase_connection_supports, gda_sybase_connection_get_gda_type, gda_sybase_connection_get_c_type, gda_sybase_connection_sql2xml, gda_sybase_connection_xml2sql, gda_sybase_connection_free, gda_sybase_command_new, gda_sybase_command_execute, gda_sybase_command_free, gda_sybase_recordset_new, gda_sybase_recordset_move_next, gda_sybase_recordset_move_prev, gda_sybase_recordset_close, gda_sybase_recordset_free, gda_sybase_error_make }; gint main (gint argc, gchar * argv[]) { CORBA_Environment ev; CORBA_ORB orb; /* initialize CORBA stuff */ gda_server_init ("gda-sybase-srv", VERSION, argc, argv); /* register the server implementation */ server_impl = gda_server_new ("OAFIID:GNOME_GDA_Provider_Sybase_ConnectionFactory", &server_impl_functions); if (server_impl) { gda_server_start (server_impl); } else gda_log_error (_ ("Could not register gda-sybase provider implementation")); return 0; }