OpenClovis Logo

clAmfPluginApi.h
1 #ifndef CL_AMF_PLUGIN_API_H
2 #define CL_AMF_PLUGIN_API_H
3 
4 #include <clPluginApi.h>
5 #include <clDebugApi.h>
6 
7 #ifdef __cplusplus
8 extern "C"
9 {
10 #endif
11 
12 #define CL_AMF_PLUGIN_VERSION 1
13 #define CL_AMF_PLUGIN_ID 0x20130909
14 #define CL_AMF_PLUGIN_NAME "amfPlugin.so"
15 
16 typedef enum
17 {
18  ClNodeStatusDown,
19  ClNodeStatusUp,
20  ClNodeStatusUnknown, // plugin cannot determine the status of this node.
21 } ClNodeStatus;
22 
23 typedef void (*clAmfPluginNotificationCallbackT)(ClIocNodeAddressT node, ClNodeStatus status);
24 
25 /*
26  * Function loop forever
27  */
28 typedef ClRcT (*clAmfPluginNotificationRunT)(clAmfPluginNotificationCallbackT callback);
29 
30 typedef ClNodeStatus (*clAmfPluginNodeStatusT)(ClIocNodeAddressT node);
31 
32 typedef struct
33 {
34  ClPlugin pluginInfo;
35  clAmfPluginNotificationCallbackT clAmfNotificationCallback;
36  clAmfPluginNotificationRunT clAmfRunTask;
37  clAmfPluginNodeStatusT clAmfNodeStatus;
38 } ClAmfPluginApi;
39 
40 
41 /*
42  * Global AMF plugin variables
43  */
44 ClPluginHandle* clAmfPluginHandle = NULL;
45 ClAmfPluginApi* clAmfPlugin = NULL;
46 
47 #ifdef __cplusplus
48 }
49 #endif
50 #endif
Header file of Debug Service Related APIs.
ClUint32T ClRcT
Clovis return code type.
Definition: clCommon.h:168
ClUint32T ClIocNodeAddressT
The IOC node address.
Definition: clIocApi.h:343

Generated on Tue Jan 10 10:29:15 PST 2012 for OpenClovis SDK using Doxygen