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_PSTMT_H__
25 #define __GDA_CAPI_PSTMT_H__
26 
27 #include <providers-support/gda-pstmt.h>
28 #include "gda-capi.h"
29 
30 G_BEGIN_DECLS
31 
32 #define GDA_TYPE_CAPI_PSTMT            (gda_capi_pstmt_get_type())
33 #define GDA_CAPI_PSTMT(obj)            (G_TYPE_CHECK_INSTANCE_CAST (obj, GDA_TYPE_CAPI_PSTMT, GdaCapiPStmt))
34 #define GDA_CAPI_PSTMT_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST (klass, GDA_TYPE_CAPI_PSTMT, GdaCapiPStmtClass))
35 #define GDA_IS_CAPI_PSTMT(obj)         (G_TYPE_CHECK_INSTANCE_TYPE(obj, GDA_TYPE_CAPI_PSTMT))
36 #define GDA_IS_CAPI_PSTMT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GDA_TYPE_CAPI_PSTMT))
37 
38 typedef struct _GdaCapiPStmt        GdaCapiPStmt;
39 typedef struct _GdaCapiPStmtClass   GdaCapiPStmtClass;
40 
41 struct _GdaCapiPStmt {
42 	GdaPStmt        object;
43 
44 	/* TO_ADD: this structure holds any information necessary to reference a prepared statement, usually a connection
45          * handle from the C or C++ API
46          */
47 };
48 
49 struct _GdaCapiPStmtClass {
50 	GdaPStmtClass  parent_class;
51 };
52 
53 GType         gda_capi_pstmt_get_type  (void) G_GNUC_CONST;
54 /* TO_ADD: helper function to create a GdaCapiPStmt such as gda_capi_pstmt_new() with some specific arguments */
55 
56 G_END_DECLS
57 
58 #endif
59