(file) Return to syslog3.txt CVS log (file) (dir) Up to [OMI] / omi / tests / oi

File: [OMI] / omi / tests / oi / syslog3.txt (download)
Revision: 1.1, Mon Apr 20 17:20:35 2015 UTC (9 years, 2 months ago) by krisbash
Branch: MAIN
CVS Tags: OMI_1_0_8_2, OMI_1_0_8_1, HEAD
OMI 1.0.8-1

#ifndef _FrogEvents_h
#define _FrogEvents_h

#include "oi.h"

/*  The three functions below are the public interface of the Frog example */

void Frog_Jump(int number);

/*  Below are the definitions of the Open Instrtumentation events generated
    by the Frog example */

/*  The Priority attribute is the only SysLog attribute that applies to individual
    events. The Facility and LogOptions are passed to the Oi generator as they
    apply to the entire log, not to the individula events. */

OI_SETDEFAULT(PRIORITY(LOG_NOTICE))
OI_SETDEFAULT(STARTID(1000))

OI_EVENT("I have jumped %d feet")
void trace_1(int number);

OI_EVENT("should be 1001")
void trace_2();

OI_SETDEFAULT(STARTID(2001))

OI_EVENT("should be 2001")
void trace_3();

OI_EVENT("should be 2002")
void trace_3a();

OI_SETDEFAULT(STARTID(3000))

OI_EVENT("should be 3000")
void trace_4();

#endif /* _FrogEvents_h */

ViewCVS 0.9.2