gwenhywfar  4.3.3
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 #ifdef __cplusplus
00032 extern "C" {
00033 #endif
00034 
00035 
00036 typedef struct GWEN_CONFIGMGR GWEN_CONFIGMGR;
00037 GWEN_INHERIT_FUNCTION_LIB_DEFS(GWEN_CONFIGMGR, GWENHYWFAR_API)
00038 
00039 #define GWEN_CONFIGMGR_PLUGIN_NAME "configmgr"
00040 #define GWEN_CONFIGMGR_FOLDER      "configmgr"
00041 
00042 
00043 #include <gwenhywfar/db.h>
00044 #include <gwenhywfar/stringlist.h>
00045 
00046 
00047 
00057 GWENHYWFAR_API
00058 GWEN_CONFIGMGR *GWEN_ConfigMgr_Factory(const char *url);
00059 
00060 GWENHYWFAR_API
00061 void GWEN_ConfigMgr_free(GWEN_CONFIGMGR *mgr);
00062 
00063 GWENHYWFAR_API
00064 int GWEN_ConfigMgr_GetGroup(GWEN_CONFIGMGR *mgr,
00065                             const char *groupName,
00066                             const char *subGroupName,
00067                             GWEN_DB_NODE **pDb);
00068 
00069 GWENHYWFAR_API
00070 int GWEN_ConfigMgr_SetGroup(GWEN_CONFIGMGR *mgr,
00071                             const char *groupName,
00072                             const char *subGroupName,
00073                             GWEN_DB_NODE *db);
00074 
00075 GWENHYWFAR_API
00076 int GWEN_ConfigMgr_LockGroup(GWEN_CONFIGMGR *mgr,
00077                              const char *groupName,
00078                              const char *subGroupName);
00079 
00080 GWENHYWFAR_API
00081 int GWEN_ConfigMgr_UnlockGroup(GWEN_CONFIGMGR *mgr,
00082                                const char *groupName,
00083                                const char *subGroupName);
00084 
00085 GWENHYWFAR_API
00086 int GWEN_ConfigMgr_GetUniqueId(GWEN_CONFIGMGR *mgr,
00087                                const char *groupName,
00088                                char *buffer,
00089                                uint32_t bufferLen);
00090 
00091 GWENHYWFAR_API
00092 int GWEN_ConfigMgr_DeleteGroup(GWEN_CONFIGMGR *mgr,
00093                                const char *groupName,
00094                                const char *subGroupName);
00095 
00096 
00097 GWENHYWFAR_API
00098 int GWEN_ConfigMgr_ListGroups(GWEN_CONFIGMGR *mgr,
00099                               GWEN_STRINGLIST *sl);
00100 
00101 GWENHYWFAR_API
00102 int GWEN_ConfigMgr_ListSubGroups(GWEN_CONFIGMGR *mgr,
00103                                  const char *groupName,
00104                                  GWEN_STRINGLIST *sl);
00105 
00106 
00107 #ifdef __cplusplus
00108 }
00109 #endif
00110 
00111 
00112 #endif
00113