Apama
10.7.2.2
|
Go to the source code of this file.
Classes | |
struct | AP_PluginCorrelatorInterface_Functions |
[DEPRECATED] CorrelatorInterface function API. More... | |
struct | AP_PluginCorrelatorInterface_API |
[DEPRECATED] CorrelatorInterface. More... | |
struct | AP_PluginContext_Functions |
[DEPRECATED] PluginContext function API. More... | |
struct | AP_PluginContext_API |
[DEPRECATED] PluginContext. More... | |
struct | AP_PluginChunk_Functions |
[DEPRECATED] PluginChunk function API. More... | |
struct | AP_PluginChunk_Callbacks |
[DEPRECATED] PluginChunk callback API. More... | |
struct | AP_PluginChunk_API |
[DEPRECATED] PluginChunk. More... | |
struct | AP_PluginType_Functions |
[DEPRECATED] AP_Type function API More... | |
struct | AP_PluginType_API |
[DEPRECATED] AP_Type More... | |
struct | AP_PluginTypeList_Functions |
[DEPRECATED] AP_TypeList function API More... | |
struct | AP_PluginTypeList_API |
[DEPRECATED] AP_TypeList More... | |
struct | AP_PluginFunction |
[DEPRECATED] Plugin function descriptor. More... | |
Macros | |
#define | AP_CORRELATOR_PLUGIN_VERSION 0x00090000 |
Typedefs | |
typedef void(AP_PLUGIN_CALL * | AP_PluginFunctionPtr) (const AP_PluginContext *ctx, const AP_PluginTypeList *args, AP_PluginType *rval, AP_TypeDiscriminator rtype) |
typedef AP_PLUGIN_DLL_SYM AP_ErrorCode(AP_PLUGIN_CALL * | AP_PluginInitFunctionPtr) (const AP_PluginContext *ctx, AP_uint32 *version, AP_uint32 *nFunctions, AP_PluginFunction **functions) |
typedef AP_PLUGIN_DLL_SYM AP_ErrorCode(AP_PLUGIN_CALL * | AP_PluginShutdownFunctionPtr) (const AP_PluginContext *ctx) |
typedef AP_PLUGIN_DLL_SYM AP_ErrorCode(AP_PLUGIN_CALL * | AP_PluginVersionFunctionPtr) (const AP_PluginContext *ctx, AP_uint32 *version) |
typedef AP_PLUGIN_DLL_SYM AP_Capabilities(AP_PLUGIN_CALL * | AP_PluginGetCapabilitiesFunctionPtr) (const AP_PluginContext *ctx) |
typedef AP_PLUGIN_DLL_SYM AP_ErrorCode(AP_PLUGIN_CALL * | AP_PluginThreadEndedFunctionPtr) (const AP_PluginContext *ctx) |
Enumerations | |
enum | AP_CorrelatorPluginExceptionType { AP_PLUGIN_EXCEPTION, AP_PLUGIN_TYPE_EXCEPTION, AP_PLUGIN_UNIMPLEMENTED_EXCEPTION, AP_PLUGIN_BOUNDS_EXCEPTION } |
Apama Plugin C API definitions. Used by plugin libraries and the plugin support code within the Engine itself.
$Copyright(c) 2002, 2004-2006, 2008-2009, 2011-2013 Progress Software Corporation (PSC). All rights reserved.$ $Copyright (c) 2013, 2016-2018 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.$ Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG
Contains the C API for writing EPL plugins.
#define AP_CORRELATOR_PLUGIN_VERSION 0x00090000 |
The upper 16 bits identify the major release of the API; the lower 16 bits indicate minor versions within that release. No changes that break backward binary compatibility will be made within a given major release of the API. That is, minor releases may add functionality and fix bugs, but will not change or remove any documented behaviour. AP_PluginCommon.h provides two _VERSION_MASK symbols for convenience in performing fine-grained version checks.
typedef void(AP_PLUGIN_CALL* AP_PluginFunctionPtr) (const AP_PluginContext *ctx, const AP_PluginTypeList *args, AP_PluginType *rval, AP_TypeDiscriminator rtype) |
All functions exported by a plugin library must follow this interface.
ctx | Execution context for this invocation of the function. |
args | Function parameters, passed by reference. |
rval | Function return value, to be filled in by plugin. |
typedef AP_PLUGIN_DLL_SYM AP_Capabilities(AP_PLUGIN_CALL* AP_PluginGetCapabilitiesFunctionPtr) (const AP_PluginContext *ctx) |
Each plugin must export a single function with this signature, named using the AP_PLUGIN_GET_CAPABILITIES_FUNCTION_NAME macro, with "C" linkage. The get capabilities function is called after the version function and before the library initialisation function to determine the capabilities/ features of the plugin API supported by the library without triggering any side-effects that the initialisation function might have. If the function is not present, the plugin API will assume that the library conforms to an earlier version of the API and proceed accordingly.
ctx | Execution context for the function call. |
typedef AP_PLUGIN_DLL_SYM AP_ErrorCode(AP_PLUGIN_CALL* AP_PluginInitFunctionPtr) (const AP_PluginContext *ctx, AP_uint32 *version, AP_uint32 *nFunctions, AP_PluginFunction **functions) |
Each plugin must export a single function with this signature, named using the AP_INIT_FUNCTION_NAME macro, with "C" linkage. The initialisation function will be called immediately after the library is loaded by the Engine.
ctx | Execution context for the function call. |
version | Active plugin API version. The plugin should verify it is compatible with this version (and return AP_VERSION_MISMATCH_ERROR if not) and update version to indicate the API version the plugin was compiled against. |
nFunctions | The plugin should set this to the number of functions it exports. |
functions | The plugin should set this to the address of an array of AP_Functions structures, of length nFunctions, describing the functions exported by the plugin. This data will be read and copied by the plugin API. |
typedef AP_PLUGIN_DLL_SYM AP_ErrorCode(AP_PLUGIN_CALL* AP_PluginShutdownFunctionPtr) (const AP_PluginContext *ctx) |
Each plugin must export a single function with this signature, named using the AP_SHUTDOWN_FUNCTION_NAME macro, with "C" linkage. The shutdown function will be called immediately before the library is unloaded by the Engine, either when the last import of the plugin is deleted or the correlator is shut down.
typedef AP_PLUGIN_DLL_SYM AP_ErrorCode(AP_PLUGIN_CALL* AP_PluginThreadEndedFunctionPtr) (const AP_PluginContext *ctx) |
The function is called by the correlator when a thread ends. The function is optional, but not implementing it may lead to leaks as the plugin will not be told if a thread has ended.
This function pointer is not guaranteed to be called before AP_ShutdownFunctionPtr Any plugin using this will have to free resources in AP_ShutdownFunctionPtr as if AP_ThreadEndedFunctionPtr may have not been called.
ctx | Execution context for the function call. |
typedef AP_PLUGIN_DLL_SYM AP_ErrorCode(AP_PLUGIN_CALL* AP_PluginVersionFunctionPtr) (const AP_PluginContext *ctx, AP_uint32 *version) |
Each plugin must export a single function with this signature, named using the AP_LIBRARY_VERSION_FUNCTION_NAME macro, with "C" linkage. The version function is called before the library initialisation function to determine the version of the plugin API supported by the library without triggering any side-effects that the initialisation function might have. If the function is not present, the plugin API will assume that the library conforms to an earlier version of the API and proceed accordingly.
ctx | Execution context for the function call. |
version | The plugin should fill this in with the version of the API it was compiled against. |
Enumerator | |
---|---|
AP_PLUGIN_EXCEPTION | Generic exception. |
AP_PLUGIN_TYPE_EXCEPTION | Incorrect type. |
AP_PLUGIN_UNIMPLEMENTED_EXCEPTION | Unimplemented method. |
AP_PLUGIN_BOUNDS_EXCEPTION | Out of bands. |