Apama  9.12.0.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
correlator_plugin.h
Go to the documentation of this file.
1 
29 #ifndef CORRELATOR_PLUGIN_H
30 #define CORRELATOR_PLUGIN_H
31 
32 
33 #include <AP_Types.h>
34 #include <AP_Platform.h>
35 #include <AP_PluginCommon.h>
36 #include <stdio.h>
37 
38 
48 /* Version history:
49  * 1.0 First version released in Apama Engine 2.0.3
50  * Win32 support added in Apama Engine 2.0.4
51  * 2.0 Add serialisation support for Apama Engine 2.1 release
52  * Unfortunately this breaks back compatibility of chunks
53  * 3.0 First C-compatible version of the API, in Apama Engine 2.1.2
54  * Note that the 2.0 C++ API still exists in this release; the
55  * 2.x (C++) and 3.x (C) versions will be maintained in parallel.
56  * 4.0 Major version number change to force users to re-compile for VS7.1
57  * and/or check the correct free implementation is used (result of
58  * InputStream's getString must be freed with AP_Context's char8free)
59  * Also adds support for the getCorrelator() context function and the
60  * AP_PluginCorrelatorInterface type that can be used to send events
61  * back into the correlator. This brings the C++ and C plugin APIs
62  * back into sync - future changes should be made to both APIs.
63  * 5.0 Add getContextId and sendEventTo. Also added the optional
64  * GET_CAPABILITIES and THREAD_ENDED functions that the plugin may
65  * provide. Improved some function prototypes.
66  * 6.0 Improved the interface's const-correctness. Increased the
67  * performance of AP_TypeList, made AP_Chunk construction and
68  * destruction cheaper, especially in a multi-threaded
69  * environment. Added AP_Type::visitSequenceElements.
70  * 7.0 Remove serialisation support for Apama 5.0 release
71  * 8.0 No changes here, but to keep it in sync with the .hpp
72  * 9.0 Add support for modifying sequence lengths and returning sequences
73  */
74 #define AP_CORRELATOR_PLUGIN_VERSION 0x00090000
75 
77 typedef enum {
86  AP_PLUGIN_SERIALISATION_EXCEPTION
88 
89 
90 
91 #ifdef __cplusplus
92 extern "C" {
93 #endif /* __cplusplus */
94 
96  struct AP_PluginContext_API;
97  struct AP_PluginType_API;
98  struct AP_PluginChunk_API;
99  struct AP_PluginTypeList_API;
100 
102 
103 #ifdef __cplusplus
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;
109 
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;
115 #else
116  typedef struct AP_PluginCorrelatorInterface_API AP_PluginCorrelatorInterface;
117  typedef struct AP_PluginContext_API AP_PluginContext;
118  typedef struct AP_PluginType_API AP_PluginType;
119  typedef struct AP_PluginChunk_API AP_PluginChunk;
120  typedef struct AP_PluginTypeList_API AP_PluginTypeList;
121 #endif /* __cplusplus */
122 
127  {
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);
147  };
148 
153  {
154  void* reserved;
157  };
158 
159  struct AP_PluginCorrelatorInterface_Stubs {
161 
162 #ifdef __cplusplus
163  void sendEvent(char* event) {
164  api.functions->sendEvent(this, event);
165  }
166 
167  void sendEvent(char* event, AP_uint64 targetCtx, AP_uint64 sourceCtx) {
168  api.functions->sendEventTo(this, event, targetCtx, sourceCtx);
169  }
170 #endif /* __ cplusplus */
171  };
172 
177  {
179  AP_uint32 (AP_PLUGIN_CALL* version)(const AP_PluginContext* ctx);
186  AP_PluginChunk* (AP_PLUGIN_CALL* createChunk)(const AP_PluginContext* ctx, const struct AP_PluginChunk_Callbacks* callbacks, void* userData);
192  void (AP_PLUGIN_CALL* deleteChunk)(const AP_PluginContext* ctx, AP_PluginChunk* chunk);
194  AP_bool (AP_PLUGIN_CALL* checkException)(const AP_PluginContext* ctx);
196  AP_CorrelatorPluginExceptionType (AP_PLUGIN_CALL* getExceptionType)(const AP_PluginContext* ctx);
198  const AP_char8* (AP_PLUGIN_CALL* getExceptionMessage)(const AP_PluginContext* ctx);
200  void (AP_PLUGIN_CALL* clearException)(const AP_PluginContext* ctx);
204  AP_PluginCorrelatorInterface* (AP_PLUGIN_CALL* getCorrelator)(const AP_PluginContext* ctx);
209  void (AP_PLUGIN_CALL* char8free)(AP_char8* ptr);
214  AP_uint64 (AP_PLUGIN_CALL* getContextId)(const AP_PluginContext* ctx);
215  };
216 
221  {
222  const void* reserved;
225  };
226 
227  struct AP_PluginContext_Stubs {
228  struct AP_PluginContext_API api;
229 
230 #ifdef __cplusplus
231  AP_uint32 version() const {
232  return api.functions->version(this);
233  }
234 
235  AP_PluginChunk* createChunk(const struct AP_PluginChunk_Callbacks* callbacks, void* userData) const {
236  return api.functions->createChunk(this, callbacks, userData);
237  }
238 
239  void deleteChunk(AP_PluginChunk* chunk) const {
240  api.functions->deleteChunk(this, chunk);
241  }
242 
243  AP_bool checkException() const {
244  return api.functions->checkException(this);
245  }
246 
247  AP_CorrelatorPluginExceptionType getExceptionType() const {
248  return api.functions->getExceptionType(this);
249  }
250 
251  const AP_char8* getExceptionMessage() const {
252  return api.functions->getExceptionMessage(this);
253  }
254 
255  void clearException() const {
256  api.functions->clearException(this);
257  }
258 
259  const AP_PluginCorrelatorInterface* getCorrelator() const{
260  return api.functions->getCorrelator(this);
261  }
262 
263  void char8free(AP_char8* ptr) const{
264  api.functions->char8free(ptr);
265  }
266 
267  AP_uint64 getContextId() const{
268  return api.functions->getContextId(this);
269  }
270 #endif /* __ cplusplus */
271  };
272 
273 
276  {
278  void* (AP_PLUGIN_CALL* getUserData)(const AP_PluginChunk* chunk);
284  void (AP_PLUGIN_CALL* setUserData)(AP_PluginChunk* chunk, void* userData);
285  };
286 
292  {
294  void (AP_PLUGIN_CALL* freeUserData)(AP_PluginChunk* chunk);
296  void* (AP_PLUGIN_CALL* copyUserData)(const AP_PluginChunk* chunk);
297  };
298 
303  {
304  void* reserved;
309  };
310 
311  struct AP_PluginChunk_Stubs {
312  struct AP_PluginChunk_API api;
313 
314 #ifdef __cplusplus
315  void* getUserData() const {
316  return api.functions->getUserData(this);
317  }
318 
319  void setUserData(void* userData) {
320  api.functions->setUserData(this, userData);
321  }
322 
323  void freeUserData() {
324  api.callbacks->freeUserData(this);
325  }
326 
327  void* copyUserData() {
328  return api.callbacks->copyUserData(this);
329  }
330 #endif /* __cplusplus */
331  };
332 
333 
334 
337  {
339  AP_TypeDiscriminator (AP_PLUGIN_CALL* getDiscriminator)(const AP_PluginType* obj);
340 
342  AP_PluginChunk* (AP_PLUGIN_CALL* getChunkValue)(const AP_PluginType* obj);
351  void (AP_PLUGIN_CALL* setChunkValue)(const AP_PluginType* obj, AP_PluginChunk* val);
352 
354  AP_int64 (AP_PLUGIN_CALL* getIntegerValue)(const AP_PluginType* obj);
356  void (AP_PLUGIN_CALL* setIntegerValue)(AP_PluginType* obj, AP_int64 val);
357 
359  AP_float64 (AP_PLUGIN_CALL* getFloatValue)(const AP_PluginType* obj);
361  void (AP_PLUGIN_CALL* setFloatValue)(AP_PluginType* obj, AP_float64 val);
362 
364  AP_decimal (AP_PLUGIN_CALL* getDecimalValue)(const AP_PluginType* obj);
366  void (AP_PLUGIN_CALL* setDecimalValue)(AP_PluginType* obj, AP_decimal val);
367 
369  AP_bool (AP_PLUGIN_CALL* getBooleanValue)(const AP_PluginType* obj);
371  void (AP_PLUGIN_CALL* setBooleanValue)(AP_PluginType* obj, AP_bool val);
372 
374  const AP_char8* (AP_PLUGIN_CALL* getStringValue)(const AP_PluginType* obj);
379  void (AP_PLUGIN_CALL* setStringValue)(AP_PluginType* obj, const AP_char8* val);
380 
382  AP_uint32 (AP_PLUGIN_CALL* getSequenceLength)(const AP_PluginType* obj);
390  void (AP_PLUGIN_CALL* setSequenceLength)(const AP_PluginType* obj, AP_uint32 len);
392  AP_TypeDiscriminator (AP_PLUGIN_CALL* getSequenceType)(const AP_PluginType* obj);
401  void (AP_PLUGIN_CALL* createSequence)(const AP_PluginType *obj, AP_TypeDiscriminator inner);
402 
408  AP_PluginType* (AP_PLUGIN_CALL* getSequenceElement)(const AP_PluginType* obj, AP_uint32 index);
409 
411  void (AP_PLUGIN_CALL *copyFrom)(const AP_PluginType *obj, const AP_PluginType *other);
412 
418  AP_PluginType* const * (AP_PLUGIN_CALL* getSequenceElements)(const AP_PluginType* obj, AP_uint32 start, AP_uint32 length);
428  void (AP_PLUGIN_CALL* releaseSequenceElements)(const AP_PluginType* obj);
429 
440  AP_PluginChunk* const * (AP_PLUGIN_CALL* getChunkSequenceElements)(const AP_PluginType* obj, AP_uint32 start, AP_uint32 length);
449  void (AP_PLUGIN_CALL* releaseChunkSequenceElements)(const AP_PluginType* obj);
450 
456  AP_int64* (AP_PLUGIN_CALL* getIntegerSequenceElements)(const AP_PluginType* obj, AP_uint32 start, AP_uint32 length);
466  void (AP_PLUGIN_CALL* releaseIntegerSequenceElements)(const AP_PluginType* obj);
467 
473  AP_float64* (AP_PLUGIN_CALL* getFloatSequenceElements)(const AP_PluginType* obj, AP_uint32 start, AP_uint32 length);
483  void (AP_PLUGIN_CALL* releaseFloatSequenceElements)(const AP_PluginType* obj);
484 
490  AP_decimal* (AP_PLUGIN_CALL* getDecimalSequenceElements)(const AP_PluginType* obj, AP_uint32 start, AP_uint32 length);
500  void (AP_PLUGIN_CALL* releaseDecimalSequenceElements)(const AP_PluginType* obj);
501 
507  AP_bool* (AP_PLUGIN_CALL* getBooleanSequenceElements)(const AP_PluginType* obj, AP_uint32 start, AP_uint32 length);
517  void (AP_PLUGIN_CALL* releaseBooleanSequenceElements)(const AP_PluginType* obj);
518 
526  const AP_char8** (AP_PLUGIN_CALL* getStringSequenceElements)(const AP_PluginType* obj, AP_uint32 start, AP_uint32 length);
544  void (AP_PLUGIN_CALL* releaseStringSequenceElements)(const AP_PluginType* obj);
545  };
546 
551  {
552  void* reserved;
555  };
556 
557  struct AP_PluginType_Stubs {
558  struct AP_PluginType_API api;
559 
560 #ifdef __cplusplus
561  AP_TypeDiscriminator getDiscriminator() const {
562  return api.functions->getDiscriminator(this);
563  }
564 
565  AP_PluginChunk* getChunkValue() const {
566  return api.functions->getChunkValue(this);
567  }
568 
569  void setChunkValue(AP_PluginChunk* val) const {
570  api.functions->setChunkValue(this, val);
571  }
572 
573  AP_int64 getIntegerValue() const {
574  return api.functions->getIntegerValue(this);
575  }
576 
577  void setIntegerValue(AP_int64 val) {
578  api.functions->setIntegerValue(this, val);
579  }
580 
581  AP_float64 getFloatValue() const {
582  return api.functions->getFloatValue(this);
583  }
584 
585  void setFloatValue(AP_float64 val) {
586  api.functions->setFloatValue(this, val);
587  }
588 
589  AP_decimal getDecimalValue() const {
590  return api.functions->getDecimalValue(this);
591  }
592 
593  void setDecimalValue(AP_decimal val) {
594  api.functions->setDecimalValue(this, val);
595  }
596 
597  AP_bool getBooleanValue() const {
598  return api.functions->getBooleanValue(this);
599  }
600 
601  void setBooleanValue(AP_bool val) {
602  api.functions->setBooleanValue(this, val);
603  }
604 
605  const AP_char8* getStringValue() const {
606  return api.functions->getStringValue(this);
607  }
608 
609  void setStringValue(const AP_char8* val) {
610  api.functions->setStringValue(this, val);
611  }
612 
613  AP_uint32 getSequenceLength() const {
614  return api.functions->getSequenceLength(this);
615  }
616 
617  AP_TypeDiscriminator getSequenceType() const {
618  return api.functions->getSequenceType(this);
619  }
620 
621  AP_PluginType* getSequenceElement(AP_uint32 index) const {
622  return api.functions->getSequenceElement(this, index);
623  }
624 
625  void copyFrom(const AP_PluginType *other) {
626  return api.functions->copyFrom(this, other);
627  }
628 
629  AP_PluginType* const *getSequenceElements(AP_uint32 start = 0, AP_uint32 length = ~0U) const {
630  return api.functions->getSequenceElements(this, start, length);
631  }
632 
633  void releaseSequenceElements() const {
634  api.functions->releaseSequenceElements(this);
635  }
636 
637  AP_PluginChunk* const * getChunkSequenceElements(AP_uint32 start = 0, AP_uint32 length = ~0U) const {
638  return api.functions->getChunkSequenceElements(this, start, length);
639  }
640 
641  void releaseChunkSequenceElements() const {
642  api.functions->releaseChunkSequenceElements(this);
643  }
644 
645  AP_int64* getIntegerSequenceElements(AP_uint32 start = 0, AP_uint32 length = ~0U) const {
646  return api.functions->getIntegerSequenceElements(this, start, length);
647  }
648 
649  void releaseIntegerSequenceElements() const {
650  api.functions->releaseIntegerSequenceElements(this);
651  }
652 
653  AP_float64* getFloatSequenceElements(AP_uint32 start = 0, AP_uint32 length = ~0U) const {
654  return api.functions->getFloatSequenceElements(this, start, length);
655  }
656 
657  void releaseFloatSequenceElements() const {
658  api.functions->releaseFloatSequenceElements(this);
659  }
660 
661  AP_decimal* getDecimalSequenceElements(AP_uint32 start = 0, AP_uint32 length = ~0U) const {
662  return api.functions->getDecimalSequenceElements(this, start, length);
663  }
664 
665  void releaseDecimalSequenceElements() const {
666  api.functions->releaseDecimalSequenceElements(this);
667  }
668 
669  AP_bool* getBooleanSequenceElements(AP_uint32 start = 0, AP_uint32 length = ~0U) const {
670  return api.functions->getBooleanSequenceElements(this, start, length);
671  }
672 
673  void releaseBooleanSequenceElements() const {
674  api.functions->releaseBooleanSequenceElements(this);
675  }
676 
677  const AP_char8** getStringSequenceElements(AP_uint32 start = 0, AP_uint32 length = ~0U) const {
678  return api.functions->getStringSequenceElements(this, start, length);
679  }
680 
681  void releaseStringSequenceElements() const {
682  api.functions->releaseStringSequenceElements(this);
683  }
684 #endif /* __cplusplus */
685  };
686 
687 
688 
693  {
695  AP_uint32 (AP_PLUGIN_CALL* getSize)(const AP_PluginTypeList* list);
697  AP_bool (AP_PLUGIN_CALL* isEmpty)(const AP_PluginTypeList* list);
699  const AP_PluginType* (AP_PLUGIN_CALL* getElement)(const AP_PluginTypeList* list, AP_uint32 index);
700  };
701 
706  {
707  void* reserved;
710  };
711 
712  struct AP_PluginTypeList_Stubs {
713  struct AP_PluginTypeList_API api;
714 
715 #ifdef __cplusplus
716  AP_uint32 getSize() const {
717  return api.functions->getSize(this);
718  }
719 
720  AP_bool isEmpty() const {
721  return api.functions->isEmpty(this);
722  }
723 
724  const AP_PluginType* getElement(AP_uint32 index) const {
725  return api.functions->getElement(this, index);
726  }
727 #endif /* __cplusplus */
728  };
729 
730 
739  typedef void (AP_PLUGIN_CALL* AP_PluginFunctionPtr)(const AP_PluginContext* ctx, const AP_PluginTypeList* args, AP_PluginType* rval, AP_TypeDiscriminator rtype);
740 
748  typedef struct
749  {
751  const AP_char8* name;
752 
755 
757  AP_uint32 nParams;
758 
760  const AP_char8** paramTypes;
761 
763  const AP_char8* returnType;
764 
766 
791  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);
792 
801  typedef AP_PLUGIN_DLL_SYM AP_ErrorCode (AP_PLUGIN_CALL* AP_PluginShutdownFunctionPtr)(const AP_PluginContext* ctx);
802 
821  typedef AP_PLUGIN_DLL_SYM AP_ErrorCode (AP_PLUGIN_CALL* AP_PluginVersionFunctionPtr)(const AP_PluginContext* ctx, AP_uint32* version);
822 
839  typedef AP_PLUGIN_DLL_SYM AP_Capabilities (AP_PLUGIN_CALL* AP_PluginGetCapabilitiesFunctionPtr)(const AP_PluginContext* ctx);
840 
856  typedef AP_PLUGIN_DLL_SYM AP_ErrorCode (AP_PLUGIN_CALL* AP_PluginThreadEndedFunctionPtr) (const AP_PluginContext* ctx);
857 
858 #ifdef __cplusplus
859 } /* extern "C" */
860 #endif /* __cplusplus */
861 
862 #endif /* CORRELATOR_PLUGIN_H */
AP_TypeList.
Definition: correlator_plugin.h:705
const AP_char8 *AP_PLUGIN_CALL * getExceptionMessage(const AP_PluginContext *ctx)
Returns the message of the most recent exception.
void *AP_PLUGIN_CALL * copyUserData(const AP_PluginChunk *chunk)
return a copy of the user data
AP_PluginCorrelatorInterface *AP_PLUGIN_CALL * getCorrelator(const AP_PluginContext *ctx)
Return the correlator implementation.
CorrelatorInterface.
Definition: correlator_plugin.h:152
AP_uint32(AP_PLUGIN_CALL *getSequenceLength)(const AP_PluginType *obj)
Get the number of elements in a sequence object.
AP_bool(AP_PLUGIN_CALL *checkException)(const AP_PluginContext *ctx)
Returns true if an exception has occurred since the last time that clearException was called...
AP_Capabilities
Plugin capabilities.
Definition: AP_PluginCommon.h:86
void(AP_PLUGIN_CALL * AP_PluginFunctionPtr)(const AP_PluginContext *ctx, const AP_PluginTypeList *args, AP_PluginType *rval, AP_TypeDiscriminator rtype)
Type of a plugin function.
Definition: correlator_plugin.h:739
CorrelatorInterface function API.
Definition: correlator_plugin.h:126
AP_TypeList function API.
Definition: correlator_plugin.h:692
const struct AP_PluginTypeList_Functions * functions
Pointer to function API.
Definition: correlator_plugin.h:709
AP_int64 *AP_PLUGIN_CALL * getIntegerSequenceElements(const AP_PluginType *obj, AP_uint32 start, AP_uint32 length)
Generate an array of integers encapsulating elements [start..start+length-1] of the sequence object...
AP_PluginType *const *AP_PLUGIN_CALL * getSequenceElements(const AP_PluginType *obj, AP_uint32 start, AP_uint32 length)
Generate an array of pointers to AP_Type objects, encapsulating elements [start..start+length-1] of t...
AP_PluginType *AP_PLUGIN_CALL * getSequenceElement(const AP_PluginType *obj, AP_uint32 index)
Get a pointer to a single sequence element.
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)
Generate an array of decimals encapsulating elements [start..start+length-1] of the sequence object...
AP_uint32(AP_PLUGIN_CALL *getSize)(const AP_PluginTypeList *list)
Return the number of objects in the list.
const AP_char8 * returnType
Return type.
Definition: correlator_plugin.h:763
const AP_char8 *AP_PLUGIN_CALL * getStringValue(const AP_PluginType *obj)
Get the string value of the object.
AP_uint64(AP_PLUGIN_CALL *getContextId)(const AP_PluginContext *ctx)
Return the identifier of the EPL (parallelism) context associated with this plugin execution context...
const struct AP_PluginType_Functions * functions
Pointer to function API.
Definition: correlator_plugin.h:554
PluginChunk function API.
Definition: correlator_plugin.h:275
AP_TypeDiscriminator
A typed discriminator for the contents of an AP_Type object.
Definition: AP_PluginCommon.h:47
PluginContext.
Definition: correlator_plugin.h:220
AP_PLUGIN_DLL_SYM AP_ErrorCode(AP_PLUGIN_CALL * AP_PluginShutdownFunctionPtr)(const AP_PluginContext *ctx)
Pointer to a plugin library shutdown function.
Definition: correlator_plugin.h:801
AP_PluginFunctionPtr fptr
Pointer to function implementation.
Definition: correlator_plugin.h:754
Shared definitions for the C and C++ plugin APIs.
AP_uint32 nParams
Argument count.
Definition: correlator_plugin.h:757
AP_float64(AP_PLUGIN_CALL *getFloatValue)(const AP_PluginType *obj)
Get the float value of the object.
AP_Type function API.
Definition: correlator_plugin.h:336
const struct AP_PluginChunk_Functions * functions
Pointer to function API.
Definition: correlator_plugin.h:306
PluginChunk.
Definition: correlator_plugin.h:302
const struct AP_PluginChunk_Callbacks * callbacks
Pointer to the user callbacks for this chunk.
Definition: correlator_plugin.h:308
void(AP_PLUGIN_CALL *sendEvent)(AP_PluginCorrelatorInterface *_interface
Send an event to the correlator.
PluginChunk callback API.
Definition: correlator_plugin.h:291
const AP_char8 **AP_PLUGIN_CALL * getStringSequenceElements(const AP_PluginType *obj, AP_uint32 start, AP_uint32 length)
Generate an array of string pointers encapsulating elements [start..start+length-1] of the sequence o...
const AP_char8 ** paramTypes
Argument types - nParams elements, unterminated.
Definition: correlator_plugin.h:760
AP_float64 *AP_PLUGIN_CALL * getFloatSequenceElements(const AP_PluginType *obj, AP_uint32 start, AP_uint32 length)
Generate an array of floats encapsulating elements [start..start+length-1] of the sequence object...
const struct AP_PluginCorrelatorInterface_Functions * functions
Pointer to the function API.
Definition: correlator_plugin.h:156
const AP_PluginType *AP_PLUGIN_CALL * getElement(const AP_PluginTypeList *list, AP_uint32 index)
Return a pointer to an element of the list.
AP_TypeDiscriminator(AP_PLUGIN_CALL *getDiscriminator)(const AP_PluginType *obj)
Return the type contained in this object.
AP_CorrelatorPluginExceptionType
Typed differentiator for different exceptions in the plugin interface.
Definition: correlator_plugin.h:77
AP_decimal(AP_PLUGIN_CALL *getDecimalValue)(const AP_PluginType *obj)
Get the decimal value of the object.
AP_int64(AP_PLUGIN_CALL *getIntegerValue)(const AP_PluginType *obj)
Get the integer value of the object.
void *AP_PLUGIN_CALL * getUserData(const AP_PluginChunk *chunk)
Return the user data stored in this chunk.
AP_PluginChunk *AP_PLUGIN_CALL * createChunk(const AP_PluginContext *ctx, const struct AP_PluginChunk_Callbacks *callbacks, void *userData)
Create a chunk.
AP_CorrelatorPluginExceptionType(AP_PLUGIN_CALL *getExceptionType)(const AP_PluginContext *ctx)
Returns the type of the most recent exception.
const struct AP_PluginContext_Functions * functions
Pointer to the function API.
Definition: correlator_plugin.h:224
const AP_char8 * name
Function name.
Definition: correlator_plugin.h:751
Out of bands.
Definition: correlator_plugin.h:85
PluginContext function API.
Definition: correlator_plugin.h:176
AP_bool(AP_PLUGIN_CALL *getBooleanValue)(const AP_PluginType *obj)
Get the boolean value of the object.
AP_PLUGIN_DLL_SYM AP_ErrorCode(AP_PLUGIN_CALL * AP_PluginVersionFunctionPtr)(const AP_PluginContext *ctx, AP_uint32 *version)
Type of a plugin library version function.
Definition: correlator_plugin.h:821
AP_PluginChunk *const *AP_PLUGIN_CALL * getChunkSequenceElements(const AP_PluginType *obj, AP_uint32 start, AP_uint32 length)
Generate an array of pointers to chunks encapsulating elements [start..start+length-1] of the sequenc...
void(AP_PLUGIN_CALL *freeUserData)(AP_PluginChunk *chunk)
Free the specified user data.
AP_PLUGIN_DLL_SYM AP_ErrorCode(AP_PLUGIN_CALL *AP_PluginThreadEndedFunctionPtr)(const AP_PluginContext *ctx)
Type of a plugin library thread ended function.
Definition: correlator_plugin.h:856
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)
Type of a plugin library initialisation function.
Definition: correlator_plugin.h:791
AP_bool *AP_PLUGIN_CALL * getBooleanSequenceElements(const AP_PluginType *obj, AP_uint32 start, AP_uint32 length)
Generate an array of booleans encapsulating elements [start..start+length-1] of the sequence object...
AP_PLUGIN_DLL_SYM AP_Capabilities(AP_PLUGIN_CALL * AP_PluginGetCapabilitiesFunctionPtr)(const AP_PluginContext *ctx)
Type of a plugin capability function.
Definition: correlator_plugin.h:839
Plugin function descriptor.
Definition: correlator_plugin.h:748
AP_uint32(AP_PLUGIN_CALL *version)(const AP_PluginContext *ctx)
Return active plugin API version.
AP_Type.
Definition: correlator_plugin.h:550
void(AP_PLUGIN_CALL *setChunkValue)(const AP_PluginType *obj
Set the chunk value of the object.
Unimplemented method.
Definition: correlator_plugin.h:83
AP_bool(AP_PLUGIN_CALL *isEmpty)(const AP_PluginTypeList *list)
Return true iff size() == 0.
AP_PluginChunk *AP_PLUGIN_CALL * getChunkValue(const AP_PluginType *obj)
Get the chunk value of the object.