From 9e13dcd2922ff1057a9eb955c3e8ceab68c2f673 Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Tue, 28 May 2013 15:37:42 +0200 Subject: Add the eDBadminPlugins() function in the database API This function will be used by the admin interface to configure eurephia plug-ins. Signed-off-by: David Sommerseth --- database/eurephiadb.c | 1 + database/eurephiadb_driver.h | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) diff --git a/database/eurephiadb.c b/database/eurephiadb.c index 701b8d1..7046dae 100644 --- a/database/eurephiadb.c +++ b/database/eurephiadb.c @@ -118,6 +118,7 @@ int eDBlink_init(eurephiaCTX *ctx, const char *dbdriver, const int minver) case 4: eDBauth_GetAuthMethod = eGetSym(ctx, ctx->eurephia_driver, "eDBauth_GetAuthMethod"); eDBget_plugins = eGetSym(ctx, ctx->eurephia_driver, "eDBget_plugins"); + eDBadminPlugins = eGetSym(ctx, ctx->eurephia_driver, "eDBadminPlugins"); case 3: eDBregister_vpnclientaddr = eGetSym(ctx, ctx->eurephia_driver, "eDBregister_vpnclientaddr"); diff --git a/database/eurephiadb_driver.h b/database/eurephiadb_driver.h index fef6499..fa0cf35 100644 --- a/database/eurephiadb_driver.h +++ b/database/eurephiadb_driver.h @@ -699,6 +699,36 @@ xmlDoc * EUREPHIA_DRIVERAPI_FUNC(eDBadminAccessLevel)(eurephiaCTX *ctx, xmlDoc * xmlDoc * EUREPHIA_DRIVERAPI_FUNC(eDBadminFirewallProfiles)(eurephiaCTX *ctx, xmlDoc *xmlqry); +/** + * Query or modify the eurephia plug-ins setup. + * + * @version API version level 4 + * @param ctx eurephiaCTX + * @param xmlqry XML document with the operation and information. + * + * The XML format skeleton + * @code + * + * + * + * <{field name}>{value} + * + * + * + * @endcode + * It can be several field name tags to narrow the search even more. + * For the register and unregister mode, either the plugin or plugin-id field name tag + * must be present. For modify mode one of the plugin-id or plugin-dso attributes + * must be present. + * + * @return Returns a valid XML document with the result on success, otherwise either + * NULL or an XML error document is returned. + * @see eurephiaXML_CreateDoc(), eurephiaXML_getRoot() + */ +xmlDoc * EUREPHIA_DRIVERAPI_FUNC(eDBadminPlugins)(eurephiaCTX *ctx, xmlDoc *xmlqry); + + /** * Retrieve the eurephia lastlog * -- cgit