69 lines
1.5 KiB
C
69 lines
1.5 KiB
C
/* logLib.h - message logging library header */
|
|
|
|
/* Copyright 1984-1992 Wind River Systems, Inc. */
|
|
|
|
/*
|
|
modification history
|
|
--------------------
|
|
01j,11feb93,jcf added __PROTOTYPE_5_0 for compatibility.
|
|
01i,22sep92,rrr added support for c++
|
|
01h,17jul92,gae undid 01e.
|
|
01g,04jul92,jcf cleaned up.
|
|
01f,26may92,rrr the tree shuffle
|
|
01e,05mar92,gae changed logMsg() to be true variable args.
|
|
01d,04oct91,rrr passed through the ansification filter
|
|
-changed VOID to void
|
|
-changed copyright notice
|
|
01c,19oct90,shl changed logMsg() to use variable length argument list.
|
|
01b,05oct90,shl added ANSI function prototypes.
|
|
made #endif ANSI style.
|
|
added copyright notice.
|
|
01a,10aug90,dnw written
|
|
*/
|
|
|
|
#ifndef __INClogLibh
|
|
#define __INClogLibh
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* function declarations */
|
|
|
|
|
|
#if defined(__STDC__) || defined(__cplusplus)
|
|
|
|
extern STATUS logFdAdd (int fd);
|
|
extern STATUS logFdDelete (int fd);
|
|
extern STATUS logInit (int fd, int maxMsgs);
|
|
|
|
#ifdef __PROTOTYPE_5_0
|
|
extern int logMsg (char *fmt, ...);
|
|
#else
|
|
extern int logMsg (char *fmt, int arg1, int arg2,
|
|
int arg3, int arg4, int arg5, int arg6);
|
|
#endif /* __PROTOTYPE_5_0 */
|
|
|
|
extern void logFdSet (int fd);
|
|
extern void logShow (void);
|
|
extern void logTask (void);
|
|
|
|
#else /* __STDC__ */
|
|
|
|
extern STATUS logFdAdd ();
|
|
extern STATUS logFdDelete ();
|
|
extern STATUS logInit ();
|
|
extern int logMsg ();
|
|
extern void logFdSet ();
|
|
extern void logShow ();
|
|
extern void logTask ();
|
|
|
|
#endif /* __STDC__ */
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* __INClogLibh */
|