"Fossies" - the Fresh Open Source Software Archive

Member "gmysqlcc-0.3.0/src/gmlc_mysql_structure.c" (15 Feb 2008, 2164 Bytes) of package /linux/privat/old/gmysqlcc-0.3.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 /*
    2  *  This program is free software; you can redistribute it and/or modify
    3  *  it under the terms of the GNU General Public License as published by
    4  *  the Free Software Foundation; either version 2 of the License, or
    5  *  (at your option) any later version.
    6  *
    7  *  This program is distributed in the hope that it will be useful,
    8  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
    9  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   10  *  GNU General Public License for more details.
   11  *
   12  *  You should have received a copy of the GNU General Public License
   13  *  along with this program; if not, write to the Free Software
   14  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
   15  */
   16 
   17 #include "gmlc_mysql_structure.h"
   18 
   19 static void gmlc_mysql_structure_base_init (gpointer g_class) {
   20     static gboolean initialized = FALSE;
   21     UNUSED_VAR(g_class);
   22     
   23     if (!initialized) {
   24         /* create interface signals here. */
   25         initialized = TRUE;
   26     }
   27 }
   28 
   29 GType gmlc_mysql_structure_get_type (void)
   30 {
   31   static GType type = 0;
   32   if (type == 0) {
   33     static const GTypeInfo info = {
   34       sizeof (GmlcMysqlStructureInterface),
   35       gmlc_mysql_structure_base_init,   /* base_init */
   36       NULL,   /* base_finalize */
   37       NULL,   /* class_init */
   38       NULL,   /* class_finalize */
   39       NULL,   /* class_data */
   40       0,
   41       0,      /* n_preallocs */
   42       NULL    /* instance_init */
   43     };
   44     type = g_type_register_static (G_TYPE_INTERFACE, "GmlcMysqlStructure", &info, 0);
   45   }
   46   return type;
   47 }
   48 
   49 gchar * gmlc_mysql_structure_get_create (GmlcMysqlStructure * poSelf, gboolean bMyself, const gchar * pcOtherName) {
   50     return GMLC_MYSQL_STRUCTURE_GET_INTERFACE(poSelf)->get_create(poSelf, bMyself, pcOtherName);
   51 }
   52 
   53 gchar * gmlc_mysql_structure_get_alter (GmlcMysqlStructure * poSelf, gboolean bMyself, const gchar * pcOtherName) {
   54     return GMLC_MYSQL_STRUCTURE_GET_INTERFACE(poSelf)->get_alter(poSelf, bMyself, pcOtherName);
   55 }
   56 
   57 gchar * gmlc_mysql_structure_get_drop (GmlcMysqlStructure * poSelf, gboolean bMyself, const gchar * pcOtherName) {
   58     return GMLC_MYSQL_STRUCTURE_GET_INTERFACE(poSelf)->get_drop(poSelf, bMyself, pcOtherName);
   59 }
   60