Apama  9.10.0.4.289795
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AP_PluginCommon.h
Go to the documentation of this file.
1 /*
2  * AP_PluginCommon.h
3  *
4  * $Copyright(c) 2002, 2004-2006, 2008-2009, 2012-2013 Progress Software Corporation (PSC). All rights reserved.$
5  * $Copyright (c) 2013, 2016 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.$
6  * Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG
7  *
8  * $Id: AP_PluginCommon.h 274995 2016-02-08 17:08:39Z shd $
9  */
10 
14 #ifndef APAMA_PLUGIN_COMMON_H
15 #define APAMA_PLUGIN_COMMON_H
16 
17 
18 #define AP_PLUGIN_MAJOR_VERSION_MASK 0xffff0000
19 #define AP_PLUGIN_MINOR_VERSION_MASK 0x0000ffff
20 
22 #define AP_INIT_FUNCTION_NAME InitLibrary
23 
24 #define AP_SHUTDOWN_FUNCTION_NAME ShutdownLibrary
25 
29 #define AP_LIBRARY_VERSION_FUNCTION_NAME LibraryVersion
30 
34 #define AP_PLUGIN_VERSION_FUNCTION_NAME PluginVersion
35 /* The name of the capabilities function which must be exported from a plugin library.
36  * optional - implement if plugins need to be able to describe their capabilities
37  */
38 #define AP_PLUGIN_GET_CAPABILITIES_FUNCTION_NAME PluginGetCapabilities
39 /* The name of the thread ended function which must be exported from a plugin library.
40  * optional - implement if need to free thread local storage. Not called on shutdown and called on thread that is ending
41  */
42 #define AP_THREAD_ENDED_FUNCTION_NAME ThreadEnded
43 
47 typedef enum {
56 
57 
61 typedef enum {
65  AP_SERIALISATION_ERROR // Chunk (de)serialisation failed
66 } AP_ErrorCode;
67 
68 
69 
74 typedef enum {
78 
79 
80 #endif /* APAMA_PLUGIN_COMMON_H */
none of the below capabilities
Definition: AP_PluginCommon.h:75
AP_Capabilities
Plugin capabilities.
Definition: AP_PluginCommon.h:74
MonitorScript float.
Definition: AP_PluginCommon.h:51
Plugin private data, opaque to MonitorScript.
Definition: AP_PluginCommon.h:49
Any other problem.
Definition: AP_PluginCommon.h:63
MonitorScript integer.
Definition: AP_PluginCommon.h:50
AP_TypeDiscriminator
A typed discriminator for the contents of an AP_Type object.
Definition: AP_PluginCommon.h:47
AP_ErrorCode
A typed error code discriminator.
Definition: AP_PluginCommon.h:61
plugin functions will not block (blocking includes calling sendEventTo)
Definition: AP_PluginCommon.h:76
MonitorScript boolean.
Definition: AP_PluginCommon.h:52
No type yet (e.g. uninitialised return value)
Definition: AP_PluginCommon.h:48
MonitorScript string.
Definition: AP_PluginCommon.h:53
Plugin and API versions are incompatible.
Definition: AP_PluginCommon.h:64
Success.
Definition: AP_PluginCommon.h:62
MonitorScript sequence (of any supported type)
Definition: AP_PluginCommon.h:54