Tellurium Plugin C API
1.0.0
Plugin Framework for Tellurium
|
Functions operating on Plugin Handles. More...
Functions | |
char * | tpGetPluginName (TELHandle handle) |
Get the name of a Plugin. More... | |
char * | tpGetPluginCategory (TELHandle handle) |
Return a plugins Category. A plugin developer may assign this information. More... | |
char * | tpGetPluginDescription (TELHandle handle) |
Return a plugins description. This is assigned by the plugin developer. More... | |
char * | tpGetPluginHint (TELHandle handle) |
Return a plugins Hint. This information is assigned by the plugin developer. More... | |
char * | tpGetPluginInfo (TELHandle handle) |
Return information about a Plugin. More... | |
char * | tpGetPluginAuthor (TELHandle handle) |
Return plugin author information. More... | |
char * | tpGetPluginCopyright (TELHandle handle) |
Return plugin copyright information. More... | |
char * | tpGetPluginVersion (TELHandle handle) |
Return plugin version information. More... | |
unsigned char * | tpGetPluginManualAsPDF (TELHandle 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 | tpGetPluginManualNrOfBytes (TELHandle handle) |
Get the byte size for the PDF manual. More... | |
bool | tpAssignRoadRunnerInstance (TELHandle pHandle, TELHandle 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 | tpExecutePlugin (TELHandle 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 | tpExecutePluginEx (TELHandle handle, bool inAThread) |
The executePluginEx is similar to the executePlugin function, except it takes two extra arguments. More... | |
char * | tpGetPluginStatus (TELHandle handle) |
Get some status of a plugin. See the plugins documentation on what to expect. More... | |
char * | tpGetPluginResult (TELHandle handle) |
Returns a plugins result, as a string. See the plugins documentation on what to expect. More... | |
bool | tpResetPlugin (TELHandle handle) |
Reset a Plugin. Plugin dependent. A reset function should bring the internal state of a plugin to a known state. More... | |
bool | tpIsPluginWorking (TELHandle handle) |
check if plugin is actively working More... | |
void | tpTerminateWork (TELHandle 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 | tpIsBeingTerminated (TELHandle handle) |
Check if the work of a plugin is currently being terminated. More... | |
bool | tpWasTerminated (TELHandle handle) |
wasTerminated. query a plugin if work was terminated before completion More... | |
bool | tpAssignOnStartedEvent (TELHandle handle, PluginEvent cb, void *userData1, void *userData2) |
Assign event function fired when a plugin starts its work. More... | |
bool | tpAssignOnProgressEvent (TELHandle handle, PluginEvent cb, void *userData1, void *userData2) |
Assign event function fired as a plugin progresses. More... | |
bool | tpAssignOnFinishedEvent (TELHandle handle, PluginEvent cb, void *userData1, void *userData2) |
Assign event function fired when a plugin finishes its work. More... | |
TELHandle | tpGetRoadRunnerHandleFromPlugin (TELHandle handle) |
Get roadrunner instance handle from plugin. More... | |
char * | tpGetPluginPropertiesAsXML (TELHandle handle) |
Get a Plugins Propertiese as an xml document. The string returned from this function is formated as xml. More... | |
TELHandle | tpGetPluginProperties (TELHandle handle) |
Get a handle to a plugins properties. More... | |
char * | tpGetListOfPluginPropertyNames (TELHandle handle) |
Get a list of a plugins property names, as a string. Space being the delimiter. More... | |
TELHandle | tpGetPluginProperty (TELHandle handle, const char *propertyName) |
Get a handle to a property. More... | |
TELHandle | tpGetPluginPropertyValueHandle (TELHandle handle, const char *propertyName) |
Get a handle to a property value. More... | |
char * | tpGetPluginPropertyValueAsString (TELHandle handle, const char *propertyName) |
Get a property value as string. More... | |
bool | tpSetPluginProperty (TELHandle handle, const char *propertyName, const char *value) |
Set the value of a PluginProperty by a string. More... | |
char * | tpGetNamesFromPropertyList (TELHandle handle) |
Get a list of names for a plugins property's. More... | |
TELHandle | tpGetProperty (TELHandle handle, const char *name) |
Get a handle to a particular property. More... | |
bool | tpClearPropertyList (TELHandle handle) |
Clear a list of properties. More... | |
Functions operating on Plugin Handles.
bool tpAssignOnFinishedEvent | ( | TELHandle | 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 tpAssignOnProgressEvent | ( | TELHandle | 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 tpAssignOnStartedEvent | ( | TELHandle | 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. |
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 tpClearPropertyList | ( | TELHandle | handle) |
Clear a list of properties.
handle | Handle to a Properties list |
bool tpExecutePlugin | ( | TELHandle | 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 tpExecutePluginEx | ( | TELHandle | 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* tpGetListOfPluginPropertyNames | ( | TELHandle | handle) |
Get a list of a plugins property names, as a string. Space being the delimiter.
handle | Handle to a plugin |
char* tpGetNamesFromPropertyList | ( | TELHandle | handle) |
Get a list of names for a plugins property's.
handle | Handle to a plugin |
char* tpGetPluginAuthor | ( | TELHandle | handle) |
Return plugin author information.
handle | Handle to a plugin |
char* tpGetPluginCategory | ( | TELHandle | handle) |
Return a plugins Category. A plugin developer may assign this information.
handle | Handle to a plugin |
char* tpGetPluginCopyright | ( | TELHandle | handle) |
Return plugin copyright information.
handle | Handle to a plugin |
char* tpGetPluginDescription | ( | TELHandle | handle) |
Return a plugins description. This is assigned by the plugin developer.
handle | Handle to a plugin |
char* tpGetPluginHint | ( | TELHandle | handle) |
Return a plugins Hint. This information is assigned by the plugin developer.
handle | Handle to a plugin |
char* tpGetPluginInfo | ( | TELHandle | handle) |
Return information about a Plugin.
handle | Handle to a plugin |
unsigned char* tpGetPluginManualAsPDF | ( | TELHandle | 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 tpGetPluginManualNrOfBytes | ( | TELHandle | handle) |
Get the byte size for the PDF manual.
handle | Handle to a plugin |
char* tpGetPluginName | ( | TELHandle | handle) |
Get the name of a Plugin.
handle | Handle to a plugin |
Get a handle to a plugins properties.
handle | Handle to a plugin |
char* tpGetPluginPropertiesAsXML | ( | TELHandle | handle) |
Get a Plugins Propertiese as an xml document. The string returned from this function is formated as xml.
handle | Handle to a plugin |
Get a handle to a property.
handle | Handle to a plugin |
propertyName | Name of the property |
char* tpGetPluginPropertyValueAsString | ( | TELHandle | handle, |
const char * | propertyName | ||
) |
Get a property value as string.
handle | Handle to a plugin |
propertyName | Name of the property |
Get a handle to a property value.
handle | Handle to a plugin |
propertyName | Name of the property |
char* tpGetPluginResult | ( | TELHandle | handle) |
Returns a plugins result, as a string. See the plugins documentation on what to expect.
handle | Handle to a plugin |
char* tpGetPluginStatus | ( | TELHandle | handle) |
Get some status of a plugin. See the plugins documentation on what to expect.
handle | Handle to a plugin |
char* tpGetPluginVersion | ( | TELHandle | handle) |
Return plugin version information.
handle | Handle to a plugin |
Get a handle to a particular property.
handle | Handle to a property list object |
name | Name of the property. |
Get roadrunner instance handle from plugin.
handle | Handle to a RoadRunner instance |
bool tpIsBeingTerminated | ( | TELHandle | handle) |
Check if the work of a plugin is currently being terminated.
handle | Handle to the plugin |
bool tpIsPluginWorking | ( | TELHandle | handle) |
check if plugin is actively working
handle | Handle to a plugin |
bool tpResetPlugin | ( | TELHandle | 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 tpSetPluginProperty | ( | TELHandle | handle, |
const char * | propertyName, | ||
const char * | value | ||
) |
Set the value of a PluginProperty by a string.
handle | Handle to a plugin |
propertyName | Name of property |
value | Value of property, as string |
void tpTerminateWork | ( | TELHandle | 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 tpWasTerminated | ( | TELHandle | handle) |
wasTerminated. query a plugin if work was terminated before completion
handle | Handle to the plugin |