forked from VendanAndrews/LSMIPC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEvents.h
38 lines (27 loc) · 1.08 KB
/
Events.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef EVENT
#define EVENT_SELF
#define EVENT(_eventname_,_variable_) extern unsigned int _variable_
#endif
// ----------------------------------------------------
// Events
/*
* Our sample event is called IPCEvent. There is no restriction on naming schemes, but it may
* be easier to describe events to other developers if your event names follow the rules of function naming.
*
* The event will be executed later with our Event_IPC variable. This will be populated in the
* default initialize sequence with an ID number to this registered event.
*
* Our event will use one parameter, and it will be an integer, so we can describe the event as in the
* comment below, which would indicate that our event named IPCEvent has one parameter that
* we call Value, and it is an int type.
*/
EVENT("IPCIndex", pIPCIndexEvent);
EVENT("IPCSet", pIPCSetEvent);
EVENT("IPCCollection", pIPCCollectionEvent);
EVENT("IPCQueue", pIPCQueueEvent);
EVENT("IPCStack", pIPCStackEvent);
// ----------------------------------------------------
#ifdef EVENT_SELF
#undef EVENT_SELF
#undef EVENT
#endif