/* * $Id: gda-tds-recordset.h,v 1.4.4.1 2001/09/21 10:33:36 rodrigo Exp $ * * GNOME DB tds Provider * Copyright (C) 2000 Holger Thon * Copyright (C) 2000 Stephan Heinze * Copyright (C) 2000 Rodrigo Moya * * 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. */ #if !defined(__gda_tds_recordset_h__) # define __gda_tds_recordset_h__ #if defined(HAVE_CONFIG_H) # include #endif #include #include #include #include "gda-tds.h" /* * Per-object specific structures */ typedef struct _tds_Field { CS_INT indicator; gchar *data; CS_INT datalen; CS_DATAFMT *fmt; } tds_Field; typedef struct _tds_Recordset { GdaServerConnection *cnc; GdaServerCommand *cmd; tds_Connection *tcnc; tds_Command *tcmd; CS_RETCODE ret; CS_RETCODE result_type; CS_INT rows_cnt; gboolean failed; CS_INT colscnt; CS_DATAFMT *datafmt; tds_Field *data; } tds_Recordset; gboolean gda_tds_recordset_new (GdaServerRecordset *); gint gda_tds_recordset_move_next (GdaServerRecordset *); gint gda_tds_recordset_move_prev (GdaServerRecordset *); gint gda_tds_recordset_close (GdaServerRecordset *); void gda_tds_recordset_free (GdaServerRecordset *); void gda_tds_init_recset_fields (GdaError *, GdaServerRecordset *, tds_Recordset *, CS_RETCODE); void gda_tds_field_fill_values (GdaServerRecordset *, tds_Recordset *); gint gda_tds_row_result (gboolean forward, GdaServerRecordset *, tds_Recordset *, CS_COMMAND *); #endif