|
libRoadRunner Plugin C API
1.0.0
Plugin Framework for libRoadRunner
|
Functions operating on Plugin Handles. More...
Functions | |
| char * | getPluginName (RRPluginHandle handle) |
| Get the name of a Plugin. More... | |
| char * | getPluginInfo (RRPluginHandle handle) |
| Return some information about a Plugin. More... | |
| unsigned char * | getPluginManualAsPDF (RRPluginHandle handle) |
| Get Plugin manual as PDF. A plugin may embedd a help manual as a PDF. This function return such as a pointer to a string. Use the function getPluginManualNrOfBytes to get the exact length of this string. More... | |
| unsigned int | getPluginManualNrOfBytes (RRPluginHandle handle) |
| Get the byte size for the PDF manual. More... | |
| bool | assignRoadRunnerInstance (RRPluginHandle pHandle, RRHandle rrHandle) |
| Assign a roadrunner instance handle for the plugin to use. A plugin may use an externally created roadrunner instance for its internal work. More... | |
| bool | executePlugin (RRPluginHandle handle) |
| The executePlugin function is the function designated to fire of a Plugins "worker". What is done when this function is entered is plugin dependent. More... | |
| bool | executePluginEx (RRPluginHandle handle, bool inAThread) |
| The executePluginEx is similar to the executePlugin function, except it takes two extra arguments. More... | |
| char * | getPluginStatus (RRPluginHandle handle) |
| Get some status of a plugin. See the plugins documentation on what to expect. More... | |
| char * | getPluginResult (RRPluginHandle handle) |
| Returns a plugins result, as a string. See the plugins documentation on what to expect. More... | |
| bool | resetPlugin (RRPluginHandle handle) |
| Reset a Plugin. Plugin dependent. A reset function should bring the internal state of a plugin to a known state. More... | |
| bool | isPluginWorking (RRPluginHandle handle) |
| check if plugin is actively working More... | |
| void | terminateWork (RRPluginHandle handle) |
| Terminate any work that is in progress in a plugin. If the plugins worker is executed in a thread, this function will signal the internals of the plugin to terminate. More... | |
| bool | isBeingTerminated (RRPluginHandle handle) |
| Check if the work of a plugin is currently being terminated. More... | |
| bool | wasTerminated (RRPluginHandle handle) |
| wasTerminated. query a plugin if work was terminated before completion More... | |
| bool | assignOnStartedEvent (RRPluginHandle handle, PluginEvent cb, void *userData1, void *userData2) |
| Assign event function fired when a plugin starts its work. More... | |
| bool | assignOnProgressEvent (RRPluginHandle handle, PluginEvent cb, void *userData1, void *userData2) |
| Assign event function fired as a plugin progresses. More... | |
| bool | assignOnFinishedEvent (RRPluginHandle handle, PluginEvent cb, void *userData1, void *userData2) |
| Assign event function fired when a plugin finishes its work. More... | |
| bool | assignPluginInput (RRPluginHandle handle, void *userData) |
| Hand external data to a plugin. More... | |
| RRHandle | getRRHandleFromPlugin (RRPluginHandle handle) |
| Get roadrunner instance handle from plugin. More... | |
| char * | getPluginPropertiesAsXML (RRPluginHandle handle) |
| Get a Plugins Parameterse as an xml document. The string returned from this function is formated as xml. More... | |
| RRParametersHandle | getPluginParameters (RRPluginHandle handle) |
| Get a handle to a plugins parameters. More... | |
| char * | getListOfPluginParameterNames (RRPluginHandle handle) |
| Get a list of a plugin parameter names, as a string. Space being the delimiter. More... | |
| RRParameterHandle | getPluginParameter (RRPluginHandle handle, const char *parameterName) |
| Get a parameter handle to a parameter. More... | |
| bool | setPluginParameter (RRPluginHandle handle, const char *parameterName, const char *value) |
| Set the value of a PluginParameter by a string. More... | |
| char * | getNamesFromParameterList (RRParametersHandle handle) |
| Get a list of names for a plugins parameters. More... | |
| bool | clearParameterList (RRParametersHandle handle) |
| Clear a list of parameters. More... | |
Functions operating on Plugin Handles.
| bool assignOnFinishedEvent | ( | RRPluginHandle | handle, |
| PluginEvent | cb, | ||
| void * | userData1, | ||
| void * | userData2 | ||
| ) |
Assign event function fired when a plugin finishes its work.
| handle | Handle to a plugin |
| cb | Function pointer to event routine |
| userData1 | void* pointer to user data. |
| userData2 | void* pointer to user data. |
| bool assignOnProgressEvent | ( | RRPluginHandle | handle, |
| PluginEvent | cb, | ||
| void * | userData1, | ||
| void * | userData2 | ||
| ) |
Assign event function fired as a plugin progresses.
| handle | Handle to a plugin |
| cb | Function pointer to event routine |
| userData1 | void* pointer to user data. |
| userData2 | void* pointer to user data. |
| bool assignOnStartedEvent | ( | RRPluginHandle | handle, |
| PluginEvent | cb, | ||
| void * | userData1, | ||
| void * | userData2 | ||
| ) |
Assign event function fired when a plugin starts its work.
| handle | Handle to a plugin |
| cb | Function pointer to event routine |
| userData1 | void* pointer to user data. |
| userData2 | void* pointer to user data. |
| bool assignPluginInput | ( | RRPluginHandle | handle, |
| void * | userData | ||
| ) |
Hand external data to a plugin.
| handle | Handle to a plugin |
| userData | void* pointer to user data. Plugin dependent. |
| bool assignRoadRunnerInstance | ( | RRPluginHandle | pHandle, |
| RRHandle | rrHandle | ||
| ) |
Assign a roadrunner instance handle for the plugin to use. A plugin may use an externally created roadrunner instance for its internal work.
| pHandle | Handle to a plugin |
| rrHandle | Handle to a RoadRunner instance |
| bool clearParameterList | ( | RRParametersHandle | handle | ) |
Clear a list of parameters.
| handle | Handle to a Parameters list |
| bool executePlugin | ( | RRPluginHandle | handle | ) |
The executePlugin function is the function designated to fire of a Plugins "worker". What is done when this function is entered is plugin dependent.
| handle | Handle to a plugin |
| bool executePluginEx | ( | RRPluginHandle | handle, |
| bool | inAThread | ||
| ) |
The executePluginEx is similar to the executePlugin function, except it takes two extra arguments.
| handle | Handle to a plugin |
| inAThread | bool indicating if the plugin should be executed in a thread. |
| char* getListOfPluginParameterNames | ( | RRPluginHandle | handle | ) |
Get a list of a plugin parameter names, as a string. Space being the delimiter.
| handle | Handle to a plugin |
| char* getNamesFromParameterList | ( | RRParametersHandle | handle | ) |
Get a list of names for a plugins parameters.
| handle | Handle to a plugin |
| char* getPluginInfo | ( | RRPluginHandle | handle | ) |
Return some information about a Plugin.
| handle | Handle to a plugin |
| unsigned char* getPluginManualAsPDF | ( | RRPluginHandle | handle | ) |
Get Plugin manual as PDF. A plugin may embedd a help manual as a PDF. This function return such as a pointer to a string. Use the function getPluginManualNrOfBytes to get the exact length of this string.
| handle | Handle to a plugin |
| unsigned int getPluginManualNrOfBytes | ( | RRPluginHandle | handle | ) |
Get the byte size for the PDF manual.
| handle | Handle to a plugin |
| char* getPluginName | ( | RRPluginHandle | handle | ) |
Get the name of a Plugin.
| handle | Handle to a plugin |
| RRParameterHandle getPluginParameter | ( | RRPluginHandle | handle, |
| const char * | parameterName | ||
| ) |
Get a parameter handle to a parameter.
| handle | Handle to a plugin |
| parameterName | Name of the parameter |
| RRParametersHandle getPluginParameters | ( | RRPluginHandle | handle | ) |
Get a handle to a plugins parameters.
| handle | Handle to a plugin |
| char* getPluginPropertiesAsXML | ( | RRPluginHandle | handle | ) |
Get a Plugins Parameterse as an xml document. The string returned from this function is formated as xml.
| handle | Handle to a plugin |
| char* getPluginResult | ( | RRPluginHandle | handle | ) |
Returns a plugins result, as a string. See the plugins documentation on what to expect.
| handle | Handle to a plugin |
| char* getPluginStatus | ( | RRPluginHandle | handle | ) |
Get some status of a plugin. See the plugins documentation on what to expect.
| handle | Handle to a plugin |
| RRHandle getRRHandleFromPlugin | ( | RRPluginHandle | handle | ) |
Get roadrunner instance handle from plugin.
| handle | Handle to a Plugin instance |
| bool isBeingTerminated | ( | RRPluginHandle | handle | ) |
Check if the work of a plugin is currently being terminated.
| handle | Handle to the plugin |
| bool isPluginWorking | ( | RRPluginHandle | handle | ) |
check if plugin is actively working
| handle | Handle to a plugin |
| bool resetPlugin | ( | RRPluginHandle | handle | ) |
Reset a Plugin. Plugin dependent. A reset function should bring the internal state of a plugin to a known state.
| handle | Handle to a plugin |
| bool setPluginParameter | ( | RRPluginHandle | handle, |
| const char * | parameterName, | ||
| const char * | value | ||
| ) |
Set the value of a PluginParameter by a string.
| handle | Handle to a plugin |
| parameterName | Name of parameter |
| value | Value of parameter, as string |
| void terminateWork | ( | RRPluginHandle | handle | ) |
Terminate any work that is in progress in a plugin. If the plugins worker is executed in a thread, this function will signal the internals of the plugin to terminate.
| handle | Handle to a plugin |
| bool wasTerminated | ( | RRPluginHandle | handle | ) |
wasTerminated. query a plugin if work was terminated before completion
| handle | Handle to the plugin |
1.8.5