gwenhywfar  4.14.0
configmgr.h
Go to the documentation of this file.
1 /***************************************************************************
2  begin : Mon Aug 11 2008
3  copyright : (C) 2008 by Martin Preuss
4  email : martin@libchipcard.de
5 
6  ***************************************************************************
7  * *
8  * This library is free software; you can redistribute it and/or *
9  * modify it under the terms of the GNU Lesser General Public *
10  * License as published by the Free Software Foundation; either *
11  * version 2.1 of the License, or (at your option) any later version. *
12  * *
13  * This library is distributed in the hope that it will be useful, *
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
16  * Lesser General Public License for more details. *
17  * *
18  * You should have received a copy of the GNU Lesser General Public *
19  * License along with this library; if not, write to the Free Software *
20  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, *
21  * MA 02111-1307 USA *
22  * *
23  ***************************************************************************/
24 
25 
26 #ifndef GWENHYWFAR_CONFIGMGR_H
27 #define GWENHYWFAR_CONFIGMGR_H
28 
29 #include <gwenhywfar/inherit.h>
30 
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34 
35 
38 
39 #define GWEN_CONFIGMGR_PLUGIN_NAME "configmgr"
40 #define GWEN_CONFIGMGR_FOLDER "configmgr"
41 
42 
43 #include <gwenhywfar/db.h>
44 #include <gwenhywfar/stringlist.h>
45 
46 
47 
58 GWEN_CONFIGMGR *GWEN_ConfigMgr_Factory(const char *url);
59 
62 
65  const char *groupName,
66  const char *subGroupName,
67  GWEN_DB_NODE **pDb);
68 
71  const char *groupName,
72  const char *subGroupName,
73  GWEN_DB_NODE *db);
74 
77  const char *groupName,
78  const char *subGroupName);
79 
82  const char *groupName,
83  const char *subGroupName);
84 
87  const char *groupName,
88  char *buffer,
89  uint32_t bufferLen);
90 
93  const char *groupName,
94  const char *subGroupName);
95 
96 
99  GWEN_STRINGLIST *sl);
100 
103  const char *groupName,
104  GWEN_STRINGLIST *sl);
105 
106 
107 #ifdef __cplusplus
108 }
109 #endif
110 
111 
112 #endif
113 
struct GWEN_CONFIGMGR GWEN_CONFIGMGR
Definition: configmgr.h:36
struct GWEN_DB_NODE GWEN_DB_NODE
Definition: db.h:228
GWENHYWFAR_API int GWEN_ConfigMgr_GetUniqueId(GWEN_CONFIGMGR *mgr, const char *groupName, char *buffer, uint32_t bufferLen)
GWENHYWFAR_API GWEN_CONFIGMGR * GWEN_ConfigMgr_Factory(const char *url)
GWENHYWFAR_API int GWEN_ConfigMgr_SetGroup(GWEN_CONFIGMGR *mgr, const char *groupName, const char *subGroupName, GWEN_DB_NODE *db)
GWENHYWFAR_API void GWEN_ConfigMgr_free(GWEN_CONFIGMGR *mgr)
GWENHYWFAR_API int GWEN_ConfigMgr_ListSubGroups(GWEN_CONFIGMGR *mgr, const char *groupName, GWEN_STRINGLIST *sl)
GWENHYWFAR_API int GWEN_ConfigMgr_DeleteGroup(GWEN_CONFIGMGR *mgr, const char *groupName, const char *subGroupName)
#define GWEN_INHERIT_FUNCTION_LIB_DEFS(t, decl)
Definition: inherit.h:125
GWENHYWFAR_API int GWEN_ConfigMgr_GetGroup(GWEN_CONFIGMGR *mgr, const char *groupName, const char *subGroupName, GWEN_DB_NODE **pDb)
struct GWEN_STRINGLISTSTRUCT GWEN_STRINGLIST
Definition: stringlist.h:54
GWENHYWFAR_API int GWEN_ConfigMgr_UnlockGroup(GWEN_CONFIGMGR *mgr, const char *groupName, const char *subGroupName)
#define GWENHYWFAR_API
Definition: gwenhywfarapi.h:67
GWENHYWFAR_API int GWEN_ConfigMgr_LockGroup(GWEN_CONFIGMGR *mgr, const char *groupName, const char *subGroupName)
GWENHYWFAR_API int GWEN_ConfigMgr_ListGroups(GWEN_CONFIGMGR *mgr, GWEN_STRINGLIST *sl)