XDAS LAF Logger
[Logging Modules]


Defines

#define XDMAPI
#define XDMEXP
#define XDM_DEF_LAF_AMSG_TYPE   2901
 The default LAF message type for XDAS.

Functions

XDMEXP int XDMAPI xdm_append (const char **msgflds)
 XDM module append routine.
XDMEXP int XDMAPI xdm_init (void(*logmsg)(int level, const char *msg,...), char *(*getcnfstr)(const char *, char *, size_t *))
 XDM module initialization routine.
XDMEXP void XDMAPI xdm_exit (void)
 XDM module exit routine.

Variables

static int s_afd = -1
 The global LAF audit handle.
static void(* s_fplogmsg )(int level, const char *msg,...)=0
 A pointer to the xdasd logmsg function.

Define Documentation

#define XDM_DEF_LAF_AMSG_TYPE   2901

The default LAF message type for XDAS.

Definition at line 55 of file xdm_laf.c.

Referenced by xdm_append().

#define XDMAPI

Definition at line 50 of file xdm_laf.c.

#define XDMEXP

Definition at line 51 of file xdm_laf.c.


Function Documentation

XDMEXP int XDMAPI xdm_append ( const char **  msgflds  ) 

XDM module append routine.

Parameters:
[in] msgflds - an array of 34 char ptrs that point into the message at the start of each field. The last pointer (numbered 33) points to the byte that is 2 beyond the last printable character of the last field.
Returns:
Zero on success, -1 if the audit record cannot be written to storage.

For internal use only.

Todo:
Get MessageType from event data.

Definition at line 73 of file xdm_laf.c.

References int(), s_afd, XDM_DEF_LAF_AMSG_TYPE, and XPRSD_OUTCOME.

XDMEXP void XDMAPI xdm_exit ( void   ) 

XDM module exit routine.

For internal use only.

Definition at line 115 of file xdm_laf.c.

References s_afd.

XDMEXP int XDMAPI xdm_init ( void(*)(int level, const char *msg,...)  logmsg,
char *(*)(const char *, char *, size_t *)  getcnfstr 
)

XDM module initialization routine.

Returns:
Zero on success, or -1 on initialization failure.

For internal use only.

Definition at line 96 of file xdm_laf.c.

References s_afd, s_fplogmsg, and void().


Variable Documentation

int s_afd = -1 [static]

The global LAF audit handle.

Definition at line 58 of file xdm_laf.c.

Referenced by xdm_append(), xdm_exit(), and xdm_init().

void(* s_fplogmsg)(int level, const char *msg,...)=0 [static]

A pointer to the xdasd logmsg function.


Generated on Thu Aug 20 22:33:07 2009 for OpenXDAS by  doxygen 1.5.6