src/query_constraint.h

00001 /* 
00002  * Copyright (C) 2005 Jukka Zitting <jz@yukatan.fi>
00003  *
00004  * This program is free software; you can redistribute it and/or modify it
00005  * under the terms of the GNU Lesser General Public License as published
00006  * by the Free Software Foundation; either version 2 of the License, or
00007  * (at your option) any later version.
00008  *
00009  * This program is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software
00016  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00017  */
00018 #ifndef QUERY_CONSTRAINT_H
00019 #define QUERY_CONSTRAINT_H
00020 
00021 #include <glib.h>
00022 #include <glib-object.h>
00023 #include "midgard/types.h"
00024 
00025 #define MIDGARD_TYPE_QUERY_CONSTRAINT            (midgard_query_constraint_get_type())
00026 #define MIDGARD_QUERY_CONSTRAINT(obj)            (G_TYPE_CHECK_INSTANCE_CAST((obj), MIDGARD_TYPE_QUERY_CONSTRAINT, MidgardQueryConstraint))
00027 #define MIDGARD_QUERY_CONSTRAINT_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST((klass), MIDGARD_TYPE_QUERY_CONSTRAINT, MidgardQueryConstraintClass))
00028 #define MIDGARD_IS_QUERY_CONSTRAINT(obj)         (G_TYPE_CHECK_INSTANCE_TYPE((obj), MIDGARD_TYPE_QUERY_CONSTRAINT))
00029 #define MIDGARD_IS_QUERY_CONSTRAINT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), MIDGARD_TYPE_QUERY_CONSTRAINT))
00030 #define MIDGARD_QUERY_CONSTRAINT_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS((obj), MIDGARD_TYPE_QUERY_CONSTRAINT, MidgardQueryConstraintClass))
00031 
00032 typedef struct {
00033         GObject parent;
00034 } MidgardQueryConstraint;
00035 
00036 typedef struct {
00037         GObjectClass parent;
00038         void (*add_sql)(MidgardQueryConstraint *constraint, GString *sql);
00039 } MidgardQueryConstraintClass;
00040 
00041 extern GType midgard_query_constraint_get_type(void);
00042 
00043 extern void midgard_query_constraint_add_sql(
00044         MidgardQueryConstraint *constraint, GString *sql);
00045 
00046 #endif /* QUERY_CONSTRAINT_H */

Generated on Thu Feb 22 06:15:18 2007 for midgard-core by  doxygen 1.4.6