1 /* 2 * Copyright (C) 2001 - 2002 Rodrigo Moya <rodrigo@src.gnome.org> 3 * Copyright (C) 2002 - 2003 Gonzalo Paniagua Javier <gonzalo@src.gnome.org> 4 * Copyright (C) 2002 Tim Coleman <tim@timcoleman.com> 5 * Copyright (C) 2003 Steve Fosdick <fozzy@src.gnome.org> 6 * Copyright (C) 2005 - 2011 Vivien Malerba <malerba@gnome-db.org> 7 * 8 * This library is free software; you can redistribute it and/or 9 * modify it under the terms of the GNU Lesser General Public 10 * License as published by the Free Software Foundation; either 11 * version 2 of the License, or (at your option) any later version. 12 * 13 * This library is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 * Lesser General Public License for more details. 17 * 18 * You should have received a copy of the GNU Lesser General Public 19 * License along with this library; if not, write to the 20 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, 21 * Boston, MA 02110-1301, USA. 22 */ 23 24 #ifndef __GDA_ORACLE_H__ 25 #define __GDA_ORACLE_H__ 26 27 /* 28 * Provider name 29 */ 30 #define ORACLE_PROVIDER_NAME "Oracle" 31 32 /* headers necessary for the C or C++ API */ 33 #include <libgda/libgda.h> 34 #include <oci.h> 35 36 /* 37 * Provider's specific connection data 38 */ 39 typedef struct { 40 OCIEnv *henv; 41 OCIError *herr; 42 OCIServer *hserver; 43 OCISvcCtx *hservice; 44 OCISession *hsession; 45 gchar *schema; /* the same as the username which opened the connection */ 46 47 gchar *version; 48 guint8 major_version; 49 guint8 minor_version; 50 51 gboolean autocommit; 52 } OracleConnectionData; 53 54 #endif 55