21 #ifndef CORRELATOR_PLUGIN_H
22 #define CORRELATOR_PLUGIN_H
24 #ifndef _AP_NO_DEPRECATED_PLUGINAPI_WARNING
26 #warning This API for writing EPL plugins is deprecated. Please use the API located in epl_plugin.hpp instead
28 #pragma message("engine_client_c.h(0) Warning: This API for writing EPL plugins is deprecated. Please use the API located in epl_plugin.hpp instead")
33 #include <AP_Platform.h>
73 #define AP_CORRELATOR_PLUGIN_VERSION 0x00090000
86 AP_PLUGIN_SERIALISATION_EXCEPTION
104 struct AP_PluginCorrelatorInterface_Stubs;
105 struct AP_PluginContext_Stubs;
106 struct AP_PluginType_Stubs;
107 struct AP_PluginChunk_Stubs;
108 struct AP_PluginTypeList_Stubs;
110 typedef struct AP_PluginCorrelatorInterface_Stubs AP_PluginCorrelatorInterface;
111 typedef struct AP_PluginContext_Stubs AP_PluginContext;
112 typedef struct AP_PluginType_Stubs AP_PluginType;
113 typedef struct AP_PluginChunk_Stubs AP_PluginChunk;
114 typedef struct AP_PluginTypeList_Stubs AP_PluginTypeList;
135 void (AP_PLUGIN_CALL* sendEvent)(AP_PluginCorrelatorInterface* _interface,
const char* event);
146 void (AP_PLUGIN_CALL* sendEventTo)(AP_PluginCorrelatorInterface* _interface,
const char* event, AP_uint64 targetCtx, AP_uint64 sourceCtx);
160 struct AP_PluginCorrelatorInterface_Stubs {
164 void sendEvent(
char* event) {
168 void sendEvent(
char* event, AP_uint64 targetCtx, AP_uint64 sourceCtx) {
169 api.
functions->sendEventTo(
this, event, targetCtx, sourceCtx);
181 AP_uint32 (AP_PLUGIN_CALL* version)(
const AP_PluginContext* ctx);
194 void (AP_PLUGIN_CALL* deleteChunk)(
const AP_PluginContext* ctx, AP_PluginChunk* chunk);
197 AP_bool (AP_PLUGIN_CALL* checkException)(
const AP_PluginContext* ctx);
206 void (AP_PLUGIN_CALL* clearException)(
const AP_PluginContext* ctx);
210 AP_PluginCorrelatorInterface* (AP_PLUGIN_CALL*
getCorrelator)(
const AP_PluginContext* ctx);
220 AP_uint64 (AP_PLUGIN_CALL* getContextId)(
const AP_PluginContext* ctx);
228 const void* reserved;
234 struct AP_PluginContext_Stubs {
238 AP_uint32 version()
const {
246 void deleteChunk(AP_PluginChunk* chunk)
const {
250 AP_bool checkException()
const {
251 return api.
functions->checkException(
this);
255 return api.
functions->getExceptionType(
this);
258 const AP_char8* getExceptionMessage()
const {
262 void clearException()
const {
266 const AP_PluginCorrelatorInterface* getCorrelator()
const{
274 AP_uint64 getContextId()
const{
275 return api.
functions->getContextId(
this);
287 void* (AP_PLUGIN_CALL*
getUserData)(
const AP_PluginChunk* chunk);
294 void (AP_PLUGIN_CALL* setUserData)(AP_PluginChunk* chunk,
void* userData);
305 void (AP_PLUGIN_CALL* freeUserData)(AP_PluginChunk* chunk);
308 void* (AP_PLUGIN_CALL*
copyUserData)(
const AP_PluginChunk* chunk);
325 struct AP_PluginChunk_Stubs {
329 void* getUserData()
const {
333 void setUserData(
void* userData) {
334 api.
functions->setUserData(
this, userData);
337 void freeUserData() {
341 void* copyUserData() {
359 AP_PluginChunk* (AP_PLUGIN_CALL*
getChunkValue)(
const AP_PluginType* obj);
368 void (AP_PLUGIN_CALL* setChunkValue)(
const AP_PluginType* obj, AP_PluginChunk* val);
372 AP_int64 (AP_PLUGIN_CALL* getIntegerValue)(
const AP_PluginType* obj);
375 void (AP_PLUGIN_CALL* setIntegerValue)(AP_PluginType* obj,
AP_int64 val);
379 AP_float64 (AP_PLUGIN_CALL* getFloatValue)(
const AP_PluginType* obj);
382 void (AP_PLUGIN_CALL* setFloatValue)(AP_PluginType* obj,
AP_float64 val);
386 AP_decimal (AP_PLUGIN_CALL* getDecimalValue)(
const AP_PluginType* obj);
389 void (AP_PLUGIN_CALL* setDecimalValue)(AP_PluginType* obj,
AP_decimal val);
393 AP_bool (AP_PLUGIN_CALL* getBooleanValue)(
const AP_PluginType* obj);
396 void (AP_PLUGIN_CALL* setBooleanValue)(AP_PluginType* obj,
AP_bool val);
400 const AP_char8* (AP_PLUGIN_CALL*
getStringValue)(
const AP_PluginType* obj);
406 void (AP_PLUGIN_CALL* setStringValue)(AP_PluginType* obj,
const AP_char8* val);
410 AP_uint32 (AP_PLUGIN_CALL* getSequenceLength)(
const AP_PluginType* obj);
419 void (AP_PLUGIN_CALL* setSequenceLength)(
const AP_PluginType* obj,
AP_uint32 len);
442 void (AP_PLUGIN_CALL *copyFrom)(
const AP_PluginType *obj,
const AP_PluginType *other);
459 void (AP_PLUGIN_CALL* releaseSequenceElements)(
const AP_PluginType* obj);
480 void (AP_PLUGIN_CALL* releaseChunkSequenceElements)(
const AP_PluginType* obj);
497 void (AP_PLUGIN_CALL* releaseIntegerSequenceElements)(
const AP_PluginType* obj);
514 void (AP_PLUGIN_CALL* releaseFloatSequenceElements)(
const AP_PluginType* obj);
531 void (AP_PLUGIN_CALL* releaseDecimalSequenceElements)(
const AP_PluginType* obj);
548 void (AP_PLUGIN_CALL* releaseBooleanSequenceElements)(
const AP_PluginType* obj);
575 void (AP_PLUGIN_CALL* releaseStringSequenceElements)(
const AP_PluginType* obj);
589 struct AP_PluginType_Stubs {
594 return api.
functions->getDiscriminator(
this);
597 AP_PluginChunk* getChunkValue()
const {
601 void setChunkValue(AP_PluginChunk* val)
const {
605 AP_int64 getIntegerValue()
const {
606 return api.
functions->getIntegerValue(
this);
609 void setIntegerValue(AP_int64 val) {
610 api.
functions->setIntegerValue(
this, val);
613 AP_float64 getFloatValue()
const {
614 return api.
functions->getFloatValue(
this);
617 void setFloatValue(AP_float64 val) {
621 AP_decimal getDecimalValue()
const {
622 return api.
functions->getDecimalValue(
this);
625 void setDecimalValue(AP_decimal val) {
626 api.
functions->setDecimalValue(
this, val);
629 AP_bool getBooleanValue()
const {
630 return api.
functions->getBooleanValue(
this);
633 void setBooleanValue(AP_bool val) {
634 api.
functions->setBooleanValue(
this, val);
637 const AP_char8* getStringValue()
const {
641 void setStringValue(
const AP_char8* val) {
642 api.
functions->setStringValue(
this, val);
645 AP_uint32 getSequenceLength()
const {
646 return api.
functions->getSequenceLength(
this);
650 return api.
functions->getSequenceType(
this);
653 AP_PluginType* getSequenceElement(AP_uint32 index)
const {
657 void copyFrom(
const AP_PluginType *other) {
658 return api.
functions->copyFrom(
this, other);
661 AP_PluginType*
const *getSequenceElements(AP_uint32 start = 0, AP_uint32 length = ~0U)
const {
665 void releaseSequenceElements()
const {
666 api.
functions->releaseSequenceElements(
this);
669 AP_PluginChunk*
const * getChunkSequenceElements(AP_uint32 start = 0, AP_uint32 length = ~0U)
const {
673 void releaseChunkSequenceElements()
const {
674 api.
functions->releaseChunkSequenceElements(
this);
677 AP_int64* getIntegerSequenceElements(AP_uint32 start = 0, AP_uint32 length = ~0U)
const {
681 void releaseIntegerSequenceElements()
const {
682 api.
functions->releaseIntegerSequenceElements(
this);
685 AP_float64* getFloatSequenceElements(AP_uint32 start = 0, AP_uint32 length = ~0U)
const {
689 void releaseFloatSequenceElements()
const {
690 api.
functions->releaseFloatSequenceElements(
this);
693 AP_decimal* getDecimalSequenceElements(AP_uint32 start = 0, AP_uint32 length = ~0U)
const {
697 void releaseDecimalSequenceElements()
const {
698 api.
functions->releaseDecimalSequenceElements(
this);
701 AP_bool* getBooleanSequenceElements(AP_uint32 start = 0, AP_uint32 length = ~0U)
const {
705 void releaseBooleanSequenceElements()
const {
706 api.
functions->releaseBooleanSequenceElements(
this);
709 const AP_char8** getStringSequenceElements(AP_uint32 start = 0, AP_uint32 length = ~0U)
const {
713 void releaseStringSequenceElements()
const {
714 api.
functions->releaseStringSequenceElements(
this);
728 AP_uint32 (AP_PLUGIN_CALL* getSize)(
const AP_PluginTypeList* list);
731 AP_bool (AP_PLUGIN_CALL* isEmpty)(
const AP_PluginTypeList* list);
734 const AP_PluginType* (AP_PLUGIN_CALL*
getElement)(
const AP_PluginTypeList* list,
AP_uint32 index);
748 struct AP_PluginTypeList_Stubs {
752 AP_uint32 getSize()
const {
756 AP_bool isEmpty()
const {
760 const AP_PluginType* getElement(AP_uint32 index)
const {
897 typedef AP_PLUGIN_DLL_SYM
AP_ErrorCode (AP_PLUGIN_CALL* AP_PluginThreadEndedFunctionPtr) (
const AP_PluginContext* ctx);
Definition: correlator_plugin.h:740
const AP_char8 *AP_PLUGIN_CALL * getExceptionMessage(const AP_PluginContext *ctx)
void *AP_PLUGIN_CALL * copyUserData(const AP_PluginChunk *chunk)
AP_PluginCorrelatorInterface *AP_PLUGIN_CALL * getCorrelator(const AP_PluginContext *ctx)
Definition: correlator_plugin.h:152
AP_uint32(AP_PLUGIN_CALL *getSequenceLength)(const AP_PluginType *obj)
AP_bool(AP_PLUGIN_CALL *checkException)(const AP_PluginContext *ctx)
AP_Capabilities
Definition: AP_PluginCommon.h:108
void(AP_PLUGIN_CALL * AP_PluginFunctionPtr)(const AP_PluginContext *ctx, const AP_PluginTypeList *args, AP_PluginType *rval, AP_TypeDiscriminator rtype)
Definition: correlator_plugin.h:775
Definition: correlator_plugin.h:126
Definition: correlator_plugin.h:724
const struct AP_PluginTypeList_Functions * functions
Definition: correlator_plugin.h:745
AP_int64 *AP_PLUGIN_CALL * getIntegerSequenceElements(const AP_PluginType *obj, AP_uint32 start, AP_uint32 length)
AP_PluginType *const *AP_PLUGIN_CALL * getSequenceElements(const AP_PluginType *obj, AP_uint32 start, AP_uint32 length)
AP_PluginType *AP_PLUGIN_CALL * getSequenceElement(const AP_PluginType *obj, AP_uint32 index)
Incorrect type.
Definition: correlator_plugin.h:81
Generic exception.
Definition: correlator_plugin.h:79
AP_decimal *AP_PLUGIN_CALL * getDecimalSequenceElements(const AP_PluginType *obj, AP_uint32 start, AP_uint32 length)
AP_uint32(AP_PLUGIN_CALL *getSize)(const AP_PluginTypeList *list)
const AP_char8 * returnType
Definition: correlator_plugin.h:804
const AP_char8 *AP_PLUGIN_CALL * getStringValue(const AP_PluginType *obj)
AP_uint64(AP_PLUGIN_CALL *getContextId)(const AP_PluginContext *ctx)
const struct AP_PluginType_Functions * functions
Definition: correlator_plugin.h:586
Definition: correlator_plugin.h:283
AP_TypeDiscriminator
Definition: AP_PluginCommon.h:56
Definition: correlator_plugin.h:226
AP_PLUGIN_DLL_SYM AP_ErrorCode(AP_PLUGIN_CALL * AP_PluginShutdownFunctionPtr)(const AP_PluginContext *ctx)
Definition: correlator_plugin.h:842
AP_PluginFunctionPtr fptr
Definition: correlator_plugin.h:792
AP_uint32 nParams
Definition: correlator_plugin.h:796
AP_float64(AP_PLUGIN_CALL *getFloatValue)(const AP_PluginType *obj)
Definition: correlator_plugin.h:351
const struct AP_PluginChunk_Functions * functions
Definition: correlator_plugin.h:319
void(AP_PLUGIN_CALL *deleteChunk)(const AP_PluginContext *ctx
Definition: correlator_plugin.h:314
const struct AP_PluginChunk_Callbacks * callbacks
Definition: correlator_plugin.h:322
void(AP_PLUGIN_CALL *sendEvent)(AP_PluginCorrelatorInterface *_interface
Definition: correlator_plugin.h:301
const AP_char8 **AP_PLUGIN_CALL * getStringSequenceElements(const AP_PluginType *obj, AP_uint32 start, AP_uint32 length)
const AP_char8 ** paramTypes
Definition: correlator_plugin.h:800
AP_float64 *AP_PLUGIN_CALL * getFloatSequenceElements(const AP_PluginType *obj, AP_uint32 start, AP_uint32 length)
const struct AP_PluginCorrelatorInterface_Functions * functions
Definition: correlator_plugin.h:157
const AP_PluginType *AP_PLUGIN_CALL * getElement(const AP_PluginTypeList *list, AP_uint32 index)
AP_TypeDiscriminator(AP_PLUGIN_CALL *getDiscriminator)(const AP_PluginType *obj)
AP_CorrelatorPluginExceptionType
Definition: correlator_plugin.h:77
AP_decimal(AP_PLUGIN_CALL *getDecimalValue)(const AP_PluginType *obj)
AP_int64(AP_PLUGIN_CALL *getIntegerValue)(const AP_PluginType *obj)
void *AP_PLUGIN_CALL * getUserData(const AP_PluginChunk *chunk)
AP_PluginChunk *AP_PLUGIN_CALL * createChunk(const AP_PluginContext *ctx, const struct AP_PluginChunk_Callbacks *callbacks, void *userData)
AP_CorrelatorPluginExceptionType(AP_PLUGIN_CALL *getExceptionType)(const AP_PluginContext *ctx)
const struct AP_PluginContext_Functions * functions
Definition: correlator_plugin.h:231
const AP_char8 * name
Definition: correlator_plugin.h:788
Out of bands.
Definition: correlator_plugin.h:85
Definition: correlator_plugin.h:177
AP_bool(AP_PLUGIN_CALL *getBooleanValue)(const AP_PluginType *obj)
AP_PLUGIN_DLL_SYM AP_ErrorCode(AP_PLUGIN_CALL * AP_PluginVersionFunctionPtr)(const AP_PluginContext *ctx, AP_uint32 *version)
Definition: correlator_plugin.h:862
AP_PluginChunk *const *AP_PLUGIN_CALL * getChunkSequenceElements(const AP_PluginType *obj, AP_uint32 start, AP_uint32 length)
void(AP_PLUGIN_CALL *freeUserData)(AP_PluginChunk *chunk)
AP_PLUGIN_DLL_SYM AP_ErrorCode(AP_PLUGIN_CALL *AP_PluginThreadEndedFunctionPtr)(const AP_PluginContext *ctx)
Definition: correlator_plugin.h:897
AP_ENGINE_CLIENT_API void char8free(char *string)
Free any char* string returned from the client API.
AP_PLUGIN_DLL_SYM AP_ErrorCode(AP_PLUGIN_CALL * AP_PluginInitFunctionPtr)(const AP_PluginContext *ctx, AP_uint32 *version, AP_uint32 *nFunctions, AP_PluginFunction **functions)
Definition: correlator_plugin.h:832
AP_bool *AP_PLUGIN_CALL * getBooleanSequenceElements(const AP_PluginType *obj, AP_uint32 start, AP_uint32 length)
AP_PLUGIN_DLL_SYM AP_Capabilities(AP_PLUGIN_CALL * AP_PluginGetCapabilitiesFunctionPtr)(const AP_PluginContext *ctx)
Definition: correlator_plugin.h:880
Definition: correlator_plugin.h:784
AP_uint32(AP_PLUGIN_CALL *version)(const AP_PluginContext *ctx)
Definition: correlator_plugin.h:581
void(AP_PLUGIN_CALL *setChunkValue)(const AP_PluginType *obj
Unimplemented method.
Definition: correlator_plugin.h:83
void(AP_PLUGIN_CALL *setUserData)(AP_PluginChunk *chunk
AP_bool(AP_PLUGIN_CALL *isEmpty)(const AP_PluginTypeList *list)
AP_PluginChunk *AP_PLUGIN_CALL * getChunkValue(const AP_PluginType *obj)