Main Page | Modules | Namespace List | Class Hierarchy | Data Structures | Directories | File List | Namespace Members | Data Fields | Globals

traces_main.c File Reference


Detailed Description

Main file for traces library.

>

#include <dlfcn.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
#include <ctype.h>
#include <sys/time.h>
#include <hiker/traces.h>
#include <hiker/fail.h>
#include "traces_conf.h"
#include "traces_helper.h"
#include "traces_init.h"
#include "traces_fac.h"

Defines

#define MAJOR_FILTER   (int) 0xFFFF0000
#define FILTER_ARRAY_SIZE   (int) 512

Functions

int alp_prv_gb_settings_initialize (void)
void alp_trace_setoutput (const char *aTracerKind, const char *config)
void alp_trace_getoutput (char *aOutput, int nBufferLen)
void alp_trace_init (unsigned long anInstance, const char *aTracerKind, const char *config)
void alp_trace_close (void)
void alp_trace_local_add (int traceModule)
void alp_trace_local_remove (int traceModule)
void alp_trace_reload (void)
long alp_trace_getoutputport_status (void)
void alp_trace_get_capabilities (char *buffer, size_t *len)
void alp_prv_trace_outputVT (int aModule, const char *aFormatString, va_list anArgs)
void alp_prv_trace_outputT (int aModule, const char *aFormatString,...)
void alp_prv_trace_outputVTL (int aModule, const char *aFormatString, va_list anArgs)
void alp_prv_trace_outputTL (int aModule, const char *aFormatString,...)
void alp_prv_trace_outputB (int aModule, unsigned char *aBuffer, size_t aBufferLen)


Define Documentation

#define FILTER_ARRAY_SIZE   (int) 512
 

#define MAJOR_FILTER   (int) 0xFFFF0000
 


Function Documentation

int alp_prv_gb_settings_initialize void   ) 
 

void alp_prv_trace_outputB int  aModule,
unsigned char *  aBuffer,
size_t  aBufferLen
 

void alp_prv_trace_outputT int  aModule,
const char *  aFormatString,
  ...
 

void alp_prv_trace_outputTL int  aModule,
const char *  aFormatString,
  ...
 

void alp_prv_trace_outputVT int  aModule,
const char *  aFormatString,
va_list  anArgs
 

void alp_prv_trace_outputVTL int  aModule,
const char *  aFormatString,
va_list  anArgs
 

void alp_trace_close void   ) 
 

Close the trace library

Parameters:
[in] @return 

void alp_trace_get_capabilities char *  buffer,
size_t *  len
 

void alp_trace_getoutput char *  aOutput,
int  nBufferLen
 

Retrieve the current output settings.

Parameters:
[in] nBufferLen buffer length
[in] aOutput A pointer to a buffer
[out] aOutput A pointer to a buffer filled with output setting
Returns:

long alp_trace_getoutputport_status void   ) 
 

void alp_trace_init unsigned long  anInstance,
const char *  aTracerKind,
const char *  config
 

Initialize the traces library with output string.

Parameters:
[in] anInstance An instance ID to the process
[in] aTracerKind kind of trace ("tcp","file", "stderr", "null",...)
[in] config Additionnal settings
Returns:

void alp_trace_local_add int  traceModule  ) 
 

Add a trace module ID that will be used locally.

Parameters:
[in] traceModule Add a trace module ID that will be used locally
Returns:

void alp_trace_local_remove int  traceModule  ) 
 

Remove a trace module ID that will be used locally

Parameters:
[in] traceModule Remove a trace module ID that will be used locally
Returns:

void alp_trace_reload void   ) 
 

Force a reload of configuration file.

Parameters:
[in] @return 

void alp_trace_setoutput const char *  aTracerKind,
const char *  config
 

This API allows to select the default output where traces will be send. This setting is global to system.

Parameters:
[in] aTracerKind kind of trace ("tcp","file", "stderr", "null",...)
[in] config Additionnal settings
Returns:


Generated on Sat Dec 16 20:29:49 2006 for hiker-0.9 by  doxygen 1.4.4