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                             uint32_t guiid);
00069 
00070 GWENHYWFAR_API
00071 int GWEN_ConfigMgr_SetGroup(GWEN_CONFIGMGR *mgr,
00072                             const char *groupName,
00073                             const char *subGroupName,
00074                             GWEN_DB_NODE *db,
00075                             uint32_t guiid);
00076 
00077 GWENHYWFAR_API
00078 int GWEN_ConfigMgr_LockGroup(GWEN_CONFIGMGR *mgr,
00079                              const char *groupName,
00080                              const char *subGroupName,
00081                              uint32_t guiid);
00082 
00083 GWENHYWFAR_API
00084 int GWEN_ConfigMgr_UnlockGroup(GWEN_CONFIGMGR *mgr,
00085                                const char *groupName,
00086                                const char *subGroupName,
00087                                uint32_t guiid);
00088 
00089 GWENHYWFAR_API
00090 int GWEN_ConfigMgr_GetUniqueId(GWEN_CONFIGMGR *mgr,
00091                                const char *groupName,
00092                                char *buffer,
00093                                uint32_t bufferLen,
00094                                uint32_t guiid);
00095 
00096 GWENHYWFAR_API
00097 int GWEN_ConfigMgr_DeleteGroup(GWEN_CONFIGMGR *mgr,
00098                                const char *groupName,
00099                                const char *subGroupName,
00100                                uint32_t guiid);
00101 
00102 
00103 GWENHYWFAR_API
00104 int GWEN_ConfigMgr_ListGroups(GWEN_CONFIGMGR *mgr,
00105                               GWEN_STRINGLIST *sl,
00106                               uint32_t guiid);
00107 
00108 GWENHYWFAR_API
00109 int GWEN_ConfigMgr_ListSubGroups(GWEN_CONFIGMGR *mgr,
00110                                  const char *groupName,
00111                                  GWEN_STRINGLIST *sl,
00112                                  uint32_t guiid);
00113 
00114 
00115 #ifdef __cplusplus
00116 }
00117 #endif
00118 
00119 
00120 #endif
00121 

Generated on Sat Jan 2 09:32:35 2010 for gwenhywfar by  doxygen 1.6.1