configmgr_be.h
Go to the documentation of this file.
/***************************************************************************
begin : Mon Aug 11 2008
copyright : (C) 2008,2017 by Martin Preuss
email : martin@libchipcard.de
***************************************************************************
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Lesser General Public *
* License as published by the Free Software Foundation; either *
* version 2.1 of the License, or (at your option) any later version. *
* *
* This library is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
* Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU Lesser General Public *
* License along with this library; if not, write to the Free Software *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, *
* MA 02111-1307 USA *
* *
***************************************************************************/
#ifndef GWENHYWFAR_CONFIGMGR_BE_H
#define GWENHYWFAR_CONFIGMGR_BE_H
#include <gwenhywfar/configmgr.h>
#include <gwenhywfar/plugin.h>
GWENHYWFAR_API
GWEN_CONFIGMGR *GWEN_ConfigMgr_new(const char *url);
typedef int GWENHYWFAR_CB(*GWEN_CONFIGMGR_GETGROUP_FN)(GWEN_CONFIGMGR *mgr,
const char *groupName,
const char *subGroupName,
GWEN_DB_NODE **pDb);
typedef int GWENHYWFAR_CB(*GWEN_CONFIGMGR_SETGROUP_FN)(GWEN_CONFIGMGR *mgr,
const char *groupName,
const char *subGroupName,
GWEN_DB_NODE *db);
typedef int GWENHYWFAR_CB(*GWEN_CONFIGMGR_HASGROUP_FN)(GWEN_CONFIGMGR *mgr,
const char *groupName,
const char *subGroupName);
typedef int GWENHYWFAR_CB(*GWEN_CONFIGMGR_LOCKGROUP_FN)(GWEN_CONFIGMGR *mgr,
const char *groupName,
const char *subGroupName);
typedef int GWENHYWFAR_CB(*GWEN_CONFIGMGR_UNLOCKGROUP_FN)(GWEN_CONFIGMGR *mgr,
const char *groupName,
const char *subGroupName);
typedef int GWENHYWFAR_CB(*GWEN_CONFIGMGR_GETUNIQUEID_FN)(GWEN_CONFIGMGR *mgr,
const char *groupName,
char *buffer,
uint32_t bufferLen);
typedef int GWENHYWFAR_CB(*GWEN_CONFIGMGR_MKUNIQUEIDFROMID_FN)(GWEN_CONFIGMGR *mgr,
const char *groupName,
uint32_t uid,
int doCheck,
char *buffer,
uint32_t bufferLen);
typedef int GWENHYWFAR_CB(*GWEN_CONFIGMGR_DELETEGROUP_FN)(GWEN_CONFIGMGR *mgr,
const char *groupName,
const char *subGroupName);
typedef int GWENHYWFAR_CB(*GWEN_CONFIGMGR_LISTGROUPS_FN)(GWEN_CONFIGMGR *mgr,
GWEN_STRINGLIST *sl);
typedef int GWENHYWFAR_CB(*GWEN_CONFIGMGR_LISTSUBGROUPS_FN)(GWEN_CONFIGMGR *mgr,
const char *groupName,
GWEN_STRINGLIST *sl);
GWENHYWFAR_API
GWEN_CONFIGMGR_GETGROUP_FN GWEN_ConfigMgr_SetGetGroupFn(GWEN_CONFIGMGR *mgr,
GWEN_CONFIGMGR_GETGROUP_FN f);
GWENHYWFAR_API
GWEN_CONFIGMGR_SETGROUP_FN GWEN_ConfigMgr_SetSetGroupFn(GWEN_CONFIGMGR *mgr,
GWEN_CONFIGMGR_SETGROUP_FN f);
GWENHYWFAR_API
GWEN_CONFIGMGR_HASGROUP_FN GWEN_ConfigMgr_SetHasGroupFn(GWEN_CONFIGMGR *mgr,
GWEN_CONFIGMGR_HASGROUP_FN f);
GWENHYWFAR_API
GWEN_CONFIGMGR_LOCKGROUP_FN GWEN_ConfigMgr_SetLockGroupFn(GWEN_CONFIGMGR *mgr,
GWEN_CONFIGMGR_LOCKGROUP_FN f);
GWENHYWFAR_API
GWEN_CONFIGMGR_UNLOCKGROUP_FN GWEN_ConfigMgr_SetUnlockGroupFn(GWEN_CONFIGMGR *mgr,
GWEN_CONFIGMGR_UNLOCKGROUP_FN f);
GWENHYWFAR_API
GWEN_CONFIGMGR_GETUNIQUEID_FN GWEN_ConfigMgr_SetGetUniqueIdFn(GWEN_CONFIGMGR *mgr,
GWEN_CONFIGMGR_GETUNIQUEID_FN f);
GWENHYWFAR_API
GWEN_CONFIGMGR_MKUNIQUEIDFROMID_FN GWEN_ConfigMgr_SetMkUniqueIdFromIdFn(GWEN_CONFIGMGR *mgr,
GWEN_CONFIGMGR_MKUNIQUEIDFROMID_FN f);
GWENHYWFAR_API
GWEN_CONFIGMGR_DELETEGROUP_FN GWEN_ConfigMgr_SetDeleteGroupFn(GWEN_CONFIGMGR *mgr,
GWEN_CONFIGMGR_DELETEGROUP_FN f);
GWENHYWFAR_API
GWEN_CONFIGMGR_LISTGROUPS_FN GWEN_ConfigMgr_SetListGroupsFn(GWEN_CONFIGMGR *mgr,
GWEN_CONFIGMGR_LISTGROUPS_FN f);
GWENHYWFAR_API
GWEN_CONFIGMGR_LISTSUBGROUPS_FN GWEN_ConfigMgr_SetListSubGroupsFn(GWEN_CONFIGMGR *mgr,
GWEN_CONFIGMGR_LISTSUBGROUPS_FN f);
typedef GWEN_CONFIGMGR *(*GWEN_CONFIGMGR_PLUGIN_FACTORYFN)(GWEN_PLUGIN *pl,
const char *url);
GWENHYWFAR_API
GWEN_PLUGIN *GWEN_ConfigMgr_Plugin_new(GWEN_PLUGIN_MANAGER *pm,
const char *name,
const char *fileName);
GWENHYWFAR_API
void GWEN_ConfigMgr_Plugin_SetFactoryFn(GWEN_PLUGIN *pl,
GWEN_CONFIGMGR_PLUGIN_FACTORYFN f);
#endif
configmgr.h
GWEN_CONFIGMGR
struct GWEN_CONFIGMGR GWEN_CONFIGMGR
Definition configmgr.h:36
GWEN_CONFIGMGR_GETUNIQUEID_FN
int GWENHYWFAR_CB(* GWEN_CONFIGMGR_GETUNIQUEID_FN)(GWEN_CONFIGMGR *mgr, const char *groupName, char *buffer, uint32_t bufferLen)
Definition configmgr_be.h:61
GWEN_ConfigMgr_SetListGroupsFn
GWENHYWFAR_API GWEN_CONFIGMGR_LISTGROUPS_FN GWEN_ConfigMgr_SetListGroupsFn(GWEN_CONFIGMGR *mgr, GWEN_CONFIGMGR_LISTGROUPS_FN f)
GWEN_CONFIGMGR_DELETEGROUP_FN
int GWENHYWFAR_CB(* GWEN_CONFIGMGR_DELETEGROUP_FN)(GWEN_CONFIGMGR *mgr, const char *groupName, const char *subGroupName)
Definition configmgr_be.h:73
GWEN_ConfigMgr_SetListSubGroupsFn
GWENHYWFAR_API GWEN_CONFIGMGR_LISTSUBGROUPS_FN GWEN_ConfigMgr_SetListSubGroupsFn(GWEN_CONFIGMGR *mgr, GWEN_CONFIGMGR_LISTSUBGROUPS_FN f)
GWEN_CONFIGMGR_GETGROUP_FN
int GWENHYWFAR_CB(* GWEN_CONFIGMGR_GETGROUP_FN)(GWEN_CONFIGMGR *mgr, const char *groupName, const char *subGroupName, GWEN_DB_NODE **pDb)
Definition configmgr_be.h:39
GWEN_ConfigMgr_SetGetGroupFn
GWENHYWFAR_API GWEN_CONFIGMGR_GETGROUP_FN GWEN_ConfigMgr_SetGetGroupFn(GWEN_CONFIGMGR *mgr, GWEN_CONFIGMGR_GETGROUP_FN f)
GWEN_CONFIGMGR_SETGROUP_FN
int GWENHYWFAR_CB(* GWEN_CONFIGMGR_SETGROUP_FN)(GWEN_CONFIGMGR *mgr, const char *groupName, const char *subGroupName, GWEN_DB_NODE *db)
Definition configmgr_be.h:44
GWEN_CONFIGMGR_MKUNIQUEIDFROMID_FN
int GWENHYWFAR_CB(* GWEN_CONFIGMGR_MKUNIQUEIDFROMID_FN)(GWEN_CONFIGMGR *mgr, const char *groupName, uint32_t uid, int doCheck, char *buffer, uint32_t bufferLen)
Definition configmgr_be.h:66
GWEN_CONFIGMGR_LOCKGROUP_FN
int GWENHYWFAR_CB(* GWEN_CONFIGMGR_LOCKGROUP_FN)(GWEN_CONFIGMGR *mgr, const char *groupName, const char *subGroupName)
Definition configmgr_be.h:53
GWEN_ConfigMgr_SetDeleteGroupFn
GWENHYWFAR_API GWEN_CONFIGMGR_DELETEGROUP_FN GWEN_ConfigMgr_SetDeleteGroupFn(GWEN_CONFIGMGR *mgr, GWEN_CONFIGMGR_DELETEGROUP_FN f)
GWEN_ConfigMgr_Plugin_new
GWENHYWFAR_API GWEN_PLUGIN * GWEN_ConfigMgr_Plugin_new(GWEN_PLUGIN_MANAGER *pm, const char *name, const char *fileName)
GWEN_CONFIGMGR_LISTGROUPS_FN
int GWENHYWFAR_CB(* GWEN_CONFIGMGR_LISTGROUPS_FN)(GWEN_CONFIGMGR *mgr, GWEN_STRINGLIST *sl)
Definition configmgr_be.h:77
GWEN_ConfigMgr_SetSetGroupFn
GWENHYWFAR_API GWEN_CONFIGMGR_SETGROUP_FN GWEN_ConfigMgr_SetSetGroupFn(GWEN_CONFIGMGR *mgr, GWEN_CONFIGMGR_SETGROUP_FN f)
GWEN_CONFIGMGR_UNLOCKGROUP_FN
int GWENHYWFAR_CB(* GWEN_CONFIGMGR_UNLOCKGROUP_FN)(GWEN_CONFIGMGR *mgr, const char *groupName, const char *subGroupName)
Definition configmgr_be.h:57
GWEN_ConfigMgr_new
GWENHYWFAR_API GWEN_CONFIGMGR * GWEN_ConfigMgr_new(const char *url)
GWEN_ConfigMgr_SetUnlockGroupFn
GWENHYWFAR_API GWEN_CONFIGMGR_UNLOCKGROUP_FN GWEN_ConfigMgr_SetUnlockGroupFn(GWEN_CONFIGMGR *mgr, GWEN_CONFIGMGR_UNLOCKGROUP_FN f)
GWEN_CONFIGMGR_PLUGIN_FACTORYFN
GWEN_CONFIGMGR *(* GWEN_CONFIGMGR_PLUGIN_FACTORYFN)(GWEN_PLUGIN *pl, const char *url)
Definition configmgr_be.h:131
GWEN_CONFIGMGR_LISTSUBGROUPS_FN
int GWENHYWFAR_CB(* GWEN_CONFIGMGR_LISTSUBGROUPS_FN)(GWEN_CONFIGMGR *mgr, const char *groupName, GWEN_STRINGLIST *sl)
Definition configmgr_be.h:80
GWEN_ConfigMgr_SetLockGroupFn
GWENHYWFAR_API GWEN_CONFIGMGR_LOCKGROUP_FN GWEN_ConfigMgr_SetLockGroupFn(GWEN_CONFIGMGR *mgr, GWEN_CONFIGMGR_LOCKGROUP_FN f)
GWEN_CONFIGMGR_HASGROUP_FN
int GWENHYWFAR_CB(* GWEN_CONFIGMGR_HASGROUP_FN)(GWEN_CONFIGMGR *mgr, const char *groupName, const char *subGroupName)
Definition configmgr_be.h:49
GWEN_ConfigMgr_SetMkUniqueIdFromIdFn
GWENHYWFAR_API GWEN_CONFIGMGR_MKUNIQUEIDFROMID_FN GWEN_ConfigMgr_SetMkUniqueIdFromIdFn(GWEN_CONFIGMGR *mgr, GWEN_CONFIGMGR_MKUNIQUEIDFROMID_FN f)
GWEN_ConfigMgr_SetHasGroupFn
GWENHYWFAR_API GWEN_CONFIGMGR_HASGROUP_FN GWEN_ConfigMgr_SetHasGroupFn(GWEN_CONFIGMGR *mgr, GWEN_CONFIGMGR_HASGROUP_FN f)
GWEN_ConfigMgr_Plugin_SetFactoryFn
GWENHYWFAR_API void GWEN_ConfigMgr_Plugin_SetFactoryFn(GWEN_PLUGIN *pl, GWEN_CONFIGMGR_PLUGIN_FACTORYFN f)
GWEN_ConfigMgr_SetGetUniqueIdFn
GWENHYWFAR_API GWEN_CONFIGMGR_GETUNIQUEID_FN GWEN_ConfigMgr_SetGetUniqueIdFn(GWEN_CONFIGMGR *mgr, GWEN_CONFIGMGR_GETUNIQUEID_FN f)
GWEN_DB_NODE
struct GWEN_DB_NODE GWEN_DB_NODE
Definition db.h:228
GWENHYWFAR_API
#define GWENHYWFAR_API
Definition gwenhywfarapi.h:67
GWENHYWFAR_CB
#define GWENHYWFAR_CB
Definition gwenhywfarapi.h:89
plugin.h
GWEN_PLUGIN_MANAGER
struct GWEN_PLUGIN_MANAGER GWEN_PLUGIN_MANAGER
Definition plugin.h:37
GWEN_PLUGIN
struct GWEN_PLUGIN GWEN_PLUGIN
Definition plugin.h:36
GWEN_STRINGLIST
struct GWEN_STRINGLISTSTRUCT GWEN_STRINGLIST
Definition stringlist.h:56