1 /* 2 * Copyright (C) 2010 - 2011 Vivien Malerba <malerba@gnome-db.org> 3 * 4 * This library is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU Lesser General Public 6 * License as published by the Free Software Foundation; either 7 * version 2 of the License, or (at your option) any later version. 8 * 9 * This library is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * Lesser General Public License for more details. 13 * 14 * You should have received a copy of the GNU Lesser General Public 15 * License along with this library; if not, write to the 16 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, 17 * Boston, MA 02110-1301, USA. 18 */ 19 20 #ifndef __GDA_MYSQL_HANDLER_BOOLEAN__ 21 #define __GDA_MYSQL_HANDLER_BOOLEAN__ 22 23 #include <glib-object.h> 24 #include <libgda/gda-data-handler.h> 25 26 G_BEGIN_DECLS 27 28 #define GDA_TYPE_MYSQL_HANDLER_BOOLEAN (gda_mysql_handler_boolean_get_type()) 29 #define GDA_MYSQL_HANDLER_BOOLEAN(obj) G_TYPE_CHECK_INSTANCE_CAST (obj, gda_mysql_handler_boolean_get_type(), GdaMysqlHandlerBoolean) 30 #define GDA_MYSQL_HANDLER_BOOLEAN_CLASS(klass) G_TYPE_CHECK_CLASS_CAST (klass, gda_mysql_handler_boolean_get_type (), GdaMysqlHandlerBooleanClass) 31 #define GDA_IS_MYSQL_HANDLER_BOOLEAN(obj) G_TYPE_CHECK_INSTANCE_TYPE (obj, gda_mysql_handler_boolean_get_type ()) 32 33 typedef struct _GdaMysqlHandlerBoolean GdaMysqlHandlerBoolean; 34 typedef struct _GdaMysqlHandlerBooleanClass GdaMysqlHandlerBooleanClass; 35 typedef struct _GdaMysqlHandlerBooleanPriv GdaMysqlHandlerBooleanPriv; 36 37 /* struct for the object's data */ 38 struct _GdaMysqlHandlerBoolean 39 { 40 GObject object; 41 GdaMysqlHandlerBooleanPriv *priv; 42 }; 43 44 /* struct for the object's class */ 45 struct _GdaMysqlHandlerBooleanClass 46 { 47 GObjectClass parent_class; 48 }; 49 50 51 GType gda_mysql_handler_boolean_get_type (void) G_GNUC_CONST; 52 GdaDataHandler *gda_mysql_handler_boolean_new (void); 53 54 G_END_DECLS 55 56 #endif 57