configmgr.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  begin       : Mon Aug 11 2008
00003  copyright   : (C) 2008 by Martin Preuss
00004  email       : martin@libchipcard.de
00005 
00006  ***************************************************************************
00007  *                                                                         *
00008  *   This library is free software; you can redistribute it and/or         *
00009  *   modify it under the terms of the GNU Lesser General Public            *
00010  *   License as published by the Free Software Foundation; either          *
00011  *   version 2.1 of the License, or (at your option) any later version.    *
00012  *                                                                         *
00013  *   This library is distributed in the hope that it will be useful,       *
00014  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00015  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU     *
00016  *   Lesser General Public License for more details.                       *
00017  *                                                                         *
00018  *   You should have received a copy of the GNU Lesser General Public      *
00019  *   License along with this library; if not, write to the Free Software   *
00020  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston,                 *
00021  *   MA  02111-1307  USA                                                   *
00022  *                                                                         *
00023  ***************************************************************************/
00024 
00025 
00026 #ifndef GWENHYWFAR_CONFIGMGR_H
00027 #define GWENHYWFAR_CONFIGMGR_H
00028 
00029 #include <gwenhywfar/inherit.h>
00030 
00031 
00032 typedef struct GWEN_CONFIGMGR GWEN_CONFIGMGR;
00033 GWEN_INHERIT_FUNCTION_LIB_DEFS(GWEN_CONFIGMGR, GWENHYWFAR_API)
00034 
00035 #define GWEN_CONFIGMGR_PLUGIN_NAME "configmgr"
00036 #define GWEN_CONFIGMGR_FOLDER      "configmgr"
00037 
00038 
00039 #include <gwenhywfar/db.h>
00040 #include <gwenhywfar/stringlist.h>
00041 
00042 
00043 
00053 GWENHYWFAR_API
00054 GWEN_CONFIGMGR *GWEN_ConfigMgr_Factory(const char *url);
00055 
00056 GWENHYWFAR_API
00057 void GWEN_ConfigMgr_free(GWEN_CONFIGMGR *mgr);
00058 
00059 GWENHYWFAR_API
00060 int GWEN_ConfigMgr_GetGroup(GWEN_CONFIGMGR *mgr,
00061                             const char *groupName,
00062                             const char *subGroupName,
00063                             GWEN_DB_NODE **pDb);
00064 
00065 GWENHYWFAR_API
00066 int GWEN_ConfigMgr_SetGroup(GWEN_CONFIGMGR *mgr,
00067                             const char *groupName,
00068                             const char *subGroupName,
00069                             GWEN_DB_NODE *db);
00070 
00071 GWENHYWFAR_API
00072 int GWEN_ConfigMgr_LockGroup(GWEN_CONFIGMGR *mgr,
00073                              const char *groupName,
00074                              const char *subGroupName);
00075 
00076 GWENHYWFAR_API
00077 int GWEN_ConfigMgr_UnlockGroup(GWEN_CONFIGMGR *mgr,
00078                                const char *groupName,
00079                                const char *subGroupName);
00080 
00081 GWENHYWFAR_API
00082 int GWEN_ConfigMgr_DeleteGroup(GWEN_CONFIGMGR *mgr,
00083                                const char *groupName,
00084                                const char *subGroupName);
00085 
00086 
00087 GWENHYWFAR_API
00088 int GWEN_ConfigMgr_ListGroups(GWEN_CONFIGMGR *mgr,
00089                               GWEN_STRINGLIST *sl);
00090 
00091 GWENHYWFAR_API
00092 int GWEN_ConfigMgr_ListSubGroups(GWEN_CONFIGMGR *mgr,
00093                                  const char *groupName,
00094                                  GWEN_STRINGLIST *sl);
00095 
00096 
00097 
00098 #endif
00099 

Generated on Wed Sep 3 15:21:57 2008 for gwenhywfar by  doxygen 1.5.6