151 lines
5.1 KiB
C
151 lines
5.1 KiB
C
/* wvLib.h - event log header */
|
|
|
|
/* Copyright 1994-2004 Wind River Systems, Inc. */
|
|
|
|
/*
|
|
modification history
|
|
--------------------
|
|
01x,29apr04,ymz added definition of wvSalInst.
|
|
01x,25mar04,tcr add wvObjInstModeSet(), backward compatible OBJ_ defines
|
|
01w,05nov03,tcr add parameter to wvObjNameBuffAdd()
|
|
01v,17oct03,tcr code review changes
|
|
01u,15oct03,tcr add wvAllObjsSet() prototype; change INSTRUMENT_xx defines
|
|
change prototype for wvObjInst() and similar
|
|
01t,01oct03,tcr wvEvtLogStart() verifies evtBuffer; add wvLogCountGet()
|
|
01s,18sep03,tcr modify prototypes
|
|
01r,10sep03,tcr change prototype of wvObjInst(), fix obj type defines
|
|
01q,17jul03,tcr make hash table more generic, base6 changes
|
|
01p,13may98,cth added protype for wvUploadTaskConfig
|
|
01o,20apr98,cth added protypes for wvLogHeaderCreate/Upload, modified
|
|
wvEvtLogInit definition, changed wvUploadTaskPriority to 01l
|
|
01n,17apr98,cth changed prototype of wvEvtLogInit
|
|
01m,15apr98,cth added prototypes for task name storage, and wvEvtBufferGet,
|
|
renamed wvContinuousUploadStop to wvUploadStop
|
|
01l,17mar98,pr added memory instrumentation support
|
|
01k,27jan98,cth added wvEvtLogInit function declaration, updated copyright
|
|
01j,18dec97,cth removed temporary references used for WV2.0 integration,
|
|
updated include files, removed wvOn/Off, fixed prototypes
|
|
01i,16nov97,cth more work for WindView 2.0
|
|
01h,30jul97,nps major rework for WindView 2.0.
|
|
01g,08mar94,smb changed prototype for OSE functionality
|
|
removed PASSIVE_MODE
|
|
01f,04mar94,smb changed prototype for wvHostInfoInit (SPR #3089)
|
|
01e,22feb94,smb changed typedef EVENT_TYPE to event_t (SPR #3064)
|
|
01d,15feb94,smb renamed collection modes
|
|
01c,19jan94,smb removed wvEvtLog, added wvEvtLogEnable and wvEvtLogEnable
|
|
removed ALL_LEVELS and changed OBJECT_STATE to OBJECT_STATUS
|
|
added wvOn(), wvOff(), and wvEvtLogStop().
|
|
01b,30dec93,c_s changed prototype of wvServerInit (). SPR #2790.
|
|
01a,10dec93,smb written.
|
|
*/
|
|
|
|
#ifndef __INCwvlibh
|
|
#define __INCwvlibh
|
|
|
|
#include "vxWorks.h"
|
|
|
|
#include "rBuffLib.h"
|
|
|
|
#include "private/wvLibP.h"
|
|
#include "private/wvBufferP.h"
|
|
#include "private/wvUploadPathP.h"
|
|
|
|
#include "private/eventP.h"
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* defines */
|
|
|
|
/* define the old object types in terms of the new ones */
|
|
|
|
#define OBJ_TASK windTaskClass /* task objects */
|
|
#define OBJ_SEM windSemClass /* semaphore objects */
|
|
#define OBJ_MSG windMsgQClass /* message queue objects */
|
|
#define OBJ_WD windWdClass /* watch-dog timer objects */
|
|
#define OBJ_MEM windMemPartClass /* memory objects */
|
|
|
|
|
|
#define INSTRUMENT_OFF 0 /* create objects with instrumentation off */
|
|
#define INSTRUMENT_ON 1 /* create objects with instrumentation on */
|
|
|
|
|
|
/* types */
|
|
|
|
typedef struct wvUploadTaskDescriptor * WV_UPLOADTASK_ID;
|
|
|
|
/* globals */
|
|
|
|
extern char * wvLogMsgString1;
|
|
extern char * wvLogMsgString2;
|
|
extern char * wvUploadName;
|
|
|
|
extern int wvMaximumLogs;
|
|
|
|
extern FUNCPTR _func_wvOnUploadPathCreate;
|
|
extern FUNCPTR _func_wvOnUploadPathClose;
|
|
|
|
/* function declarations */
|
|
|
|
extern void wvLibInit (void);
|
|
extern void wvLibInit2 (void);
|
|
extern STATUS wvEvtLogInit (WV_LOG * pWvLog);
|
|
|
|
extern STATUS wvEvtLogStart (void);
|
|
extern void wvEvtLogStop (void);
|
|
|
|
extern void wvEvtClassSet (UINT32 classDescription);
|
|
extern UINT32 wvEvtClassGet (void);
|
|
extern void wvEvtClassClear (UINT32 classDescription);
|
|
extern void wvEvtClassClearAll (void);
|
|
extern int wvObjInst (enum windObjClassType type, void *objId,
|
|
BOOL evtLoggingOn);
|
|
extern int wvEventInst (int mode);
|
|
extern int wvSigInst (int mode);
|
|
extern int wvSalInst (int mode);
|
|
extern void wvAllObjsSet (int mode);
|
|
extern STATUS wvObjInstModeSet (int mode);
|
|
|
|
|
|
|
|
extern BUFFER_ID wvEvtBufferGet (void);
|
|
extern void wvUploadTaskConfig (int stackSize, int priority);
|
|
extern STATUS wvUploadStop (WV_UPLOADTASK_ID upTaskId);
|
|
extern WV_UPLOADTASK_ID wvUploadStart (WV_LOG * bufId, UPLOAD_ID pathId,
|
|
BOOL uploadContinuously);
|
|
|
|
extern PART_ID wvPartitionGet (void);
|
|
extern void wvPartitionSet (PART_ID part);
|
|
|
|
extern WV_LOG_LIST * wvCurrentLogListGet (void);
|
|
extern void wvCurrentLogListSet (WV_LOG_LIST * pWvLogList);
|
|
|
|
extern WV_LOG * wvLogCreate (BUFFER_ID evtBuffer);
|
|
extern STATUS wvLogDelete (WV_LOG_LIST * pWvLogList,
|
|
WV_LOG * pWvLog);
|
|
extern WV_LOG * wvCurrentLogGet (void);
|
|
extern void wvCurrentLogSet (WV_LOG * pWvLog);
|
|
|
|
extern WV_LOG * wvLogFirstGet (void);
|
|
extern WV_LOG * wvLogNextGet (WV_LOG * pWvLog);
|
|
extern int wvLogCountGet (void);
|
|
|
|
|
|
|
|
extern WV_LOG_LIST * wvLogListCreate (void);
|
|
extern STATUS wvLogListDelete (WV_LOG_LIST * pLogList);
|
|
|
|
|
|
extern STATUS wvEvent (event_t usrEventId, char *buffer,
|
|
size_t bufSize);
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* __INCwvlibh*/
|
|
|