1 /* 2 * Copyright (C) YEAR The GNOME Foundation. 3 * 4 * AUTHORS: 5 * TO_ADD: your name and email 6 * 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 Library General Public License as 10 * published by the Free Software Foundation; either version 2 of the 11 * 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 * Library General Public License for more details. 17 * 18 * You should have received a copy of the GNU Library General Public 19 * License along with this Library; see the file COPYING.LIB. If not, 20 * write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 21 * Boston, MA 02110-1301, USA. 22 */ 23 24 #ifndef __GDA_CAPI_RECORDSET_H__ 25 #define __GDA_CAPI_RECORDSET_H__ 26 27 #include <libgda/libgda.h> 28 #include <providers-support/gda-data-select-priv.h> 29 #include "gda-capi-pstmt.h" 30 31 G_BEGIN_DECLS 32 33 #define GDA_TYPE_CAPI_RECORDSET (gda_capi_recordset_get_type()) 34 #define GDA_CAPI_RECORDSET(obj) (G_TYPE_CHECK_INSTANCE_CAST (obj, GDA_TYPE_CAPI_RECORDSET, GdaCapiRecordset)) 35 #define GDA_CAPI_RECORDSET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST (klass, GDA_TYPE_CAPI_RECORDSET, GdaCapiRecordsetClass)) 36 #define GDA_IS_CAPI_RECORDSET(obj) (G_TYPE_CHECK_INSTANCE_TYPE (obj, GDA_TYPE_CAPI_RECORDSET)) 37 #define GDA_IS_CAPI_RECORDSET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDA_TYPE_CAPI_RECORDSET)) 38 39 typedef struct _GdaCapiRecordset GdaCapiRecordset; 40 typedef struct _GdaCapiRecordsetClass GdaCapiRecordsetClass; 41 typedef struct _GdaCapiRecordsetPrivate GdaCapiRecordsetPrivate; 42 43 struct _GdaCapiRecordset { 44 GdaDataSelect model; 45 GdaCapiRecordsetPrivate *priv; 46 }; 47 48 struct _GdaCapiRecordsetClass { 49 GdaDataSelectClass parent_class; 50 }; 51 52 GType gda_capi_recordset_get_type (void) G_GNUC_CONST; 53 GdaDataModel *gda_capi_recordset_new (GdaConnection *cnc, GdaCapiPStmt *ps, GdaSet *exec_params, 54 GdaDataModelAccessFlags flags, GType *col_types); 55 56 G_END_DECLS 57 58 #endif 59