src/midgard_core_object.h

00001 /* 
00002  * Copyright (C) 2006 Piotr Pokora <piotr.pokora@infoglob.pl>
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 
00019 #include <midgard/midgard.h>
00020 #include <midgard/midgard_legacy.h>
00021 #include <libxml/parser.h> 
00022 #include <libxml/tree.h>
00023 
00024 /* Private structure for private data of MgdSchema objects */
00025 struct _MidgardTypePrivate{
00026         const gchar *guid;
00027         guint sg;
00028         const gchar *action;
00029         MgdSchemaTypeAttr *data;
00030         gchar *exported;
00031         gchar *imported;
00032         GSList *parameters;
00033 };
00034 
00035 /* Private structure for private data of MgdSchema object's metadata */
00036 struct _MidgardMetadataPrivate {
00037 
00038         /* Object properties */
00039         gchar *creator;
00040         gchar *created;
00041         gchar *revisor;
00042         gchar *revised;
00043         guint revision;
00044         gchar *locker;
00045         gchar *locked;
00046         gchar *approver;
00047         gchar *approved;
00048         gchar *authors;
00049         gchar *owner;
00050         gchar *schedule_start;
00051         gchar *schedule_end;
00052         gboolean hidden;
00053         gboolean nav_noentry;
00054         guint32 size;
00055         gchar *published;
00056         gchar *exported;
00057         gchar *imported;
00058         gboolean deleted;
00059         gint32 score;
00060         
00061         /* Other sruct members */
00062         MgdObject *object;
00063 };
00064 
00065 /* Private structure for Midgard Config object */
00066 struct _MidgardConfigPrivate{
00067         guint dbtype;
00068         gchar *host;
00069         gchar *database;
00070         gchar *dbuser;
00071         gchar *dbpass;
00072         gchar *blobdir;
00073         gchar *logfilename;
00074         gchar *schemafile;
00075         gchar *default_lang;
00076         gchar *loglevel;
00077         gboolean tablecreate;
00078         gboolean tableupdate;
00079         FILE  *logfile;
00080         gchar *mgdusername;
00081         gchar *mgdpassword;
00082         gboolean testunit;
00083         guint loghandler;
00084         midgard_auth_type authtype;
00085         gchar *pamfile;
00086 };
00087 
00088 gchar *_midgard_core_object_to_xml(MgdObject *object);
00089 
00090 MgdObject *_midgard_core_object_from_xml(MidgardConnection *mgd, gchar *xml);

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