Genivia Home Documentation
Plugins and plugin registry functions

updated Mon Apr 22 2024 by Robert van Engelen
 
Plugins and plugin registry functions

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...
 

Detailed Description

This module defines plugin registry functions to register plugins.

Available plugins:

Modules and extensions:

Threads and mutex:

Other:

Function Documentation

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.

See also
soap_register_plugin_arg, http_get, http_post, logging.
Returns
SOAP_OK or a soap_status error code
Parameters
soapsoap context
fcreateplugin 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.

See also
soap_register_plugin, http_get, http_post, logging.
Returns
SOAP_OK or a soap_status error code
Parameters
soapsoap context
fcreateplugin registration function
argargument passed to the plugin registration function