diff options
Diffstat (limited to 'database')
-rw-r--r-- | database/eurephiadb.c | 1 | ||||
-rw-r--r-- | database/eurephiadb_driver.h | 30 |
2 files changed, 31 insertions, 0 deletions
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 @@ -700,6 +700,36 @@ xmlDoc * EUREPHIA_DRIVERAPI_FUNC(eDBadminFirewallProfiles)(eurephiaCTX *ctx, xml /** + * 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 + * <eurephia format="1"> + * <plugins mode="{search|register|unregister|modify}" + * [plugin-id="{ID}"] [plugin-dso="{FILENAME}]"> + * <fieldMapping table="plugins"> + * <{field name}>{value}</{field name}> + * </fieldMapping> + * </plugins> + * </eurephia> + * @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 * * @version API version level 2 |