Home | Documentation |
Plugins and plugin registry functions
updated Tue Aug 27 2024 by Robert van Engelen
|
This module defines plugin registry functions to register plugins. More...
Functions | |
int | soap_register_plugin (struct soap *soap, int(*fcreate)(struct soap *, struct soap_plugin *, void *)) |
Register a plugin. More... | |
int | soap_register_plugin_arg (struct soap *soap, int(*fcreate)(struct soap *, struct soap_plugin *, void *), void *arg) |
Register a plugin with an argument. More... | |
This module defines plugin registry functions to register plugins.
Available plugins:
logging
pluginhttp_get
HTTP GET pluginhttp_post
HTTP POST pluginModules and extensions:
Threads and mutex:
Other:
int soap_register_plugin | ( | struct soap * | soap, |
int(*)(struct soap *, struct soap_plugin *, void *) | fcreate | ||
) |
Register a plugin.
This function registers the specified plugin with the specified engine's context. The fcreate
parameter is defined by the plugin library as a plugin registration function that when called initializes the plugin state. Returns SOAP_OK
or a soap_status
error code such as SOAP_PLUGIN_ERROR
.
soap_register_plugin_arg
, http_get
, http_post
, logging
.SOAP_OK
or a soap_status
error code soap | soap context |
fcreate | plugin registration function |
int soap_register_plugin_arg | ( | struct soap * | soap, |
int(*)(struct soap *, struct soap_plugin *, void *) | fcreate, | ||
void * | arg | ||
) |
Register a plugin with an argument.
This function registers the specified plugin with the specified engine's context. The fcreate
parameter is defined by the plugin library as a plugin registration function that when called initializes the plugin state. The argument arg
is passed to the plugin registration function. Returns SOAP_OK
or a soap_status
error code such as SOAP_PLUGIN_ERROR
.
soap_register_plugin
, http_get
, http_post
, logging
.SOAP_OK
or a soap_status
error code soap | soap context |
fcreate | plugin registration function |
arg | argument passed to the plugin registration function |