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("correlator_plugin.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;
137 void (AP_PLUGIN_CALL* sendEvent)(AP_PluginCorrelatorInterface* _interface,
const char* event);
152 void (AP_PLUGIN_CALL* sendEventTo)(AP_PluginCorrelatorInterface* _interface,
const char* event, AP_uint64 targetContext, AP_uint64 sourceContext);
166 struct AP_PluginCorrelatorInterface_Stubs {
170 void sendEvent(
char* event) {
174 void sendEvent(
char* event, AP_uint64 targetCtx, AP_uint64 sourceCtx) {
175 api.
functions->sendEventTo(
this, event, targetCtx, sourceCtx);
189 AP_uint32 (AP_PLUGIN_CALL* version)(
const AP_PluginContext* ctx);
205 void (AP_PLUGIN_CALL* deleteChunk)(
const AP_PluginContext* ctx, AP_PluginChunk* chunk);
208 AP_bool (AP_PLUGIN_CALL* checkException)(
const AP_PluginContext* ctx);
217 void (AP_PLUGIN_CALL* clearException)(
const AP_PluginContext* ctx);
221 AP_PluginCorrelatorInterface* (AP_PLUGIN_CALL*
getCorrelator)(
const AP_PluginContext* ctx);
232 AP_uint64 (AP_PLUGIN_CALL* getContextId)(
const AP_PluginContext* ctx);
240 const void* reserved;
246 struct AP_PluginContext_Stubs {
250 AP_uint32 version()
const {
258 void deleteChunk(AP_PluginChunk* chunk)
const {
262 AP_bool checkException()
const {
263 return api.
functions->checkException(
this);
267 return api.
functions->getExceptionType(
this);
270 const AP_char8* getExceptionMessage()
const {
274 void clearException()
const {
278 const AP_PluginCorrelatorInterface* getCorrelator()
const{
286 AP_uint64 getContextId()
const{
287 return api.
functions->getContextId(
this);
299 void* (AP_PLUGIN_CALL*
getUserData)(
const AP_PluginChunk* chunk);
306 void (AP_PLUGIN_CALL* setUserData)(AP_PluginChunk* chunk,
void* userData);
317 void (AP_PLUGIN_CALL* freeUserData)(AP_PluginChunk* chunk);
320 void* (AP_PLUGIN_CALL*
copyUserData)(
const AP_PluginChunk* chunk);
337 struct AP_PluginChunk_Stubs {
341 void* getUserData()
const {
345 void setUserData(
void* userData) {
346 api.
functions->setUserData(
this, userData);
349 void freeUserData() {
353 void* copyUserData() {
371 AP_PluginChunk* (AP_PLUGIN_CALL*
getChunkValue)(
const AP_PluginType* obj);
380 void (AP_PLUGIN_CALL* setChunkValue)(
const AP_PluginType* obj, AP_PluginChunk* val);
384 AP_int64 (AP_PLUGIN_CALL* getIntegerValue)(
const AP_PluginType* obj);
387 void (AP_PLUGIN_CALL* setIntegerValue)(AP_PluginType* obj,
AP_int64 val);
391 AP_float64 (AP_PLUGIN_CALL* getFloatValue)(
const AP_PluginType* obj);
394 void (AP_PLUGIN_CALL* setFloatValue)(AP_PluginType* obj,
AP_float64 val);
398 AP_decimal (AP_PLUGIN_CALL* getDecimalValue)(
const AP_PluginType* obj);
401 void (AP_PLUGIN_CALL* setDecimalValue)(AP_PluginType* obj,
AP_decimal val);
405 AP_bool (AP_PLUGIN_CALL* getBooleanValue)(
const AP_PluginType* obj);
408 void (AP_PLUGIN_CALL* setBooleanValue)(AP_PluginType* obj,
AP_bool val);
412 const AP_char8* (AP_PLUGIN_CALL*
getStringValue)(
const AP_PluginType* obj);
418 void (AP_PLUGIN_CALL* setStringValue)(AP_PluginType* obj,
const AP_char8* val);
422 AP_uint32 (AP_PLUGIN_CALL* getSequenceLength)(
const AP_PluginType* obj);
431 void (AP_PLUGIN_CALL* setSequenceLength)(
const AP_PluginType* obj,
AP_uint32 len);
454 void (AP_PLUGIN_CALL *copyFrom)(
const AP_PluginType *obj,
const AP_PluginType *other);
471 void (AP_PLUGIN_CALL* releaseSequenceElements)(
const AP_PluginType* obj);
492 void (AP_PLUGIN_CALL* releaseChunkSequenceElements)(
const AP_PluginType* obj);
509 void (AP_PLUGIN_CALL* releaseIntegerSequenceElements)(
const AP_PluginType* obj);
526 void (AP_PLUGIN_CALL* releaseFloatSequenceElements)(
const AP_PluginType* obj);
543 void (AP_PLUGIN_CALL* releaseDecimalSequenceElements)(
const AP_PluginType* obj);
560 void (AP_PLUGIN_CALL* releaseBooleanSequenceElements)(
const AP_PluginType* obj);
587 void (AP_PLUGIN_CALL* releaseStringSequenceElements)(
const AP_PluginType* obj);
601 struct AP_PluginType_Stubs {
606 return api.
functions->getDiscriminator(
this);
609 AP_PluginChunk* getChunkValue()
const {
613 void setChunkValue(AP_PluginChunk* val)
const {
617 AP_int64 getIntegerValue()
const {
618 return api.
functions->getIntegerValue(
this);
621 void setIntegerValue(AP_int64 val) {
622 api.
functions->setIntegerValue(
this, val);
625 AP_float64 getFloatValue()
const {
626 return api.
functions->getFloatValue(
this);
629 void setFloatValue(AP_float64 val) {
633 AP_decimal getDecimalValue()
const {
634 return api.
functions->getDecimalValue(
this);
637 void setDecimalValue(AP_decimal val) {
638 api.
functions->setDecimalValue(
this, val);
641 AP_bool getBooleanValue()
const {
642 return api.
functions->getBooleanValue(
this);
645 void setBooleanValue(AP_bool val) {
646 api.
functions->setBooleanValue(
this, val);
649 const AP_char8* getStringValue()
const {
653 void setStringValue(
const AP_char8* val) {
654 api.
functions->setStringValue(
this, val);
657 AP_uint32 getSequenceLength()
const {
658 return api.
functions->getSequenceLength(
this);
662 return api.
functions->getSequenceType(
this);
665 AP_PluginType* getSequenceElement(AP_uint32 index)
const {
669 void copyFrom(
const AP_PluginType *other) {
670 return api.
functions->copyFrom(
this, other);
673 AP_PluginType*
const *getSequenceElements(AP_uint32 start = 0, AP_uint32 length = ~0U)
const {
677 void releaseSequenceElements()
const {
678 api.
functions->releaseSequenceElements(
this);
681 AP_PluginChunk*
const * getChunkSequenceElements(AP_uint32 start = 0, AP_uint32 length = ~0U)
const {
685 void releaseChunkSequenceElements()
const {
686 api.
functions->releaseChunkSequenceElements(
this);
689 AP_int64* getIntegerSequenceElements(AP_uint32 start = 0, AP_uint32 length = ~0U)
const {
693 void releaseIntegerSequenceElements()
const {
694 api.
functions->releaseIntegerSequenceElements(
this);
697 AP_float64* getFloatSequenceElements(AP_uint32 start = 0, AP_uint32 length = ~0U)
const {
701 void releaseFloatSequenceElements()
const {
702 api.
functions->releaseFloatSequenceElements(
this);
705 AP_decimal* getDecimalSequenceElements(AP_uint32 start = 0, AP_uint32 length = ~0U)
const {
709 void releaseDecimalSequenceElements()
const {
710 api.
functions->releaseDecimalSequenceElements(
this);
713 AP_bool* getBooleanSequenceElements(AP_uint32 start = 0, AP_uint32 length = ~0U)
const {
717 void releaseBooleanSequenceElements()
const {
718 api.
functions->releaseBooleanSequenceElements(
this);
721 const AP_char8** getStringSequenceElements(AP_uint32 start = 0, AP_uint32 length = ~0U)
const {
725 void releaseStringSequenceElements()
const {
726 api.
functions->releaseStringSequenceElements(
this);
740 AP_uint32 (AP_PLUGIN_CALL* getSize)(
const AP_PluginTypeList* list);
743 AP_bool (AP_PLUGIN_CALL* isEmpty)(
const AP_PluginTypeList* list);
746 const AP_PluginType* (AP_PLUGIN_CALL*
getElement)(
const AP_PluginTypeList* list,
AP_uint32 index);
760 struct AP_PluginTypeList_Stubs {
764 AP_uint32 getSize()
const {
768 AP_bool isEmpty()
const {
772 const AP_PluginType* getElement(AP_uint32 index)
const {
909 typedef AP_PLUGIN_DLL_SYM
AP_ErrorCode (AP_PLUGIN_CALL* AP_PluginThreadEndedFunctionPtr) (
const AP_PluginContext* ctx);
Definition: correlator_plugin.h:752
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:158
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:787
Definition: correlator_plugin.h:126
Definition: correlator_plugin.h:736
const struct AP_PluginTypeList_Functions * functions
Definition: correlator_plugin.h:757
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:816
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:598
Definition: correlator_plugin.h:295
AP_TypeDiscriminator
Definition: AP_PluginCommon.h:56
Definition: correlator_plugin.h:238
AP_PLUGIN_DLL_SYM AP_ErrorCode(AP_PLUGIN_CALL * AP_PluginShutdownFunctionPtr)(const AP_PluginContext *ctx)
Definition: correlator_plugin.h:854
AP_PluginFunctionPtr fptr
Definition: correlator_plugin.h:804
AP_uint32 nParams
Definition: correlator_plugin.h:808
AP_float64(AP_PLUGIN_CALL *getFloatValue)(const AP_PluginType *obj)
Definition: correlator_plugin.h:363
const struct AP_PluginChunk_Functions * functions
Definition: correlator_plugin.h:331
void(AP_PLUGIN_CALL *deleteChunk)(const AP_PluginContext *ctx
Definition: correlator_plugin.h:326
const struct AP_PluginChunk_Callbacks * callbacks
Definition: correlator_plugin.h:334
void(AP_PLUGIN_CALL *sendEvent)(AP_PluginCorrelatorInterface *_interface
Definition: correlator_plugin.h:313
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:812
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:163
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:243
const AP_char8 * name
Definition: correlator_plugin.h:800
Out of bands.
Definition: correlator_plugin.h:85
Definition: correlator_plugin.h:183
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:874
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:909
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:844
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:892
Definition: correlator_plugin.h:796
AP_uint32(AP_PLUGIN_CALL *version)(const AP_PluginContext *ctx)
Definition: correlator_plugin.h:593
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)