1 krisbash 1.1 #ifndef _FrogEvents_h
2 #define _FrogEvents_h
3
4 #include "oi.h"
5
6 /* The three functions below are the public interface of the Frog example */
7
8 void Frog_Jump(int number);
9
10 /* Below are the definitions of the Open Instrtumentation events generated
11 by the Frog example */
12
13 /* The Priority attribute is the only SysLog attribute that applies to individual
14 events. The Facility and LogOptions are passed to the Oi generator as they
15 apply to the entire log, not to the individula events. */
16
17 OI_SETDEFAULT(PRIORITY(LOG_NOTICE))
18
19 OI_EVENT("I have jumped %d feet")
20 void FrogEvents_JumpEvent(int number);
21
22 krisbash 1.1 OI_SETDEFAULT(PRIORITY(LOG_WARNING))
23
24 OI_EVENT("I have eaten %d flys")
25 void FrogEvents_EatFlysEvent(int number);
26
27 #endif /* _FrogEvents_h */
|