Main Page | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

logging.h File Reference

Go to the source code of this file.

Typedefs

typedef void(* message_handler_func_t )(int level, const char *text)
typedef void(* error_handler_func_t )(const char *text)
typedef logging_state_s logging_state_t

Enumerations

enum  {
  SPAN_LOG_SEVERITY_MASK = 0x00FF, SPAN_LOG_SHOW_DATE = 0x0100, SPAN_LOG_SHOW_SAMPLE_TIME = 0x0200, SPAN_LOG_SHOW_SEVERITY = 0x0400,
  SPAN_LOG_SHOW_PROTOCOL = 0x0800, SPAN_LOG_SHOW_VARIANT = 0x1000, SPAN_LOG_SHOW_TAG = 0x2000, SPAN_LOG_SUPPRESS_LABELLING = 0x8000
}
enum  {
  SPAN_LOG_NONE = 0, SPAN_LOG_ERROR = 1, SPAN_LOG_WARNING = 2, SPAN_LOG_PROTOCOL_ERROR = 3,
  SPAN_LOG_PROTOCOL_WARNING = 4, SPAN_LOG_FLOW = 5, SPAN_LOG_FLOW_2 = 6, SPAN_LOG_FLOW_3 = 7,
  SPAN_LOG_DEBUG = 8, SPAN_LOG_DEBUG_2 = 9, SPAN_LOG_DEBUG_3 = 10
}

Functions

 SPAN_DECLARE (int) span_log_test(logging_state_t *s
 Release a V.8 context.
 SPAN_DECLARE (void) span_log_set_message_handler(logging_state_t *s
 Cleanup a T.30 context if the call terminates.
 SPAN_DECLARE (logging_state_t *) span_log_init(logging_state_t *s
 Get a pointer to the logging context associated with a T.38 context.

Variables

int level
int const char * format
int const char * tag
int const char const uint8_t * buf
int const char const uint8_t
int 
len
const char * protocol
int samples_per_second
int samples
message_handler_func_t func


Detailed Description


Typedef Documentation

typedef void(* error_handler_func_t)(const char *text)
 

Error logging function for spandsp logging.

typedef struct logging_state_s logging_state_t
 

Logging descriptor. This defines the working state for a single instance of the logging facility for spandsp.

typedef void(* message_handler_func_t)(int level, const char *text)
 

General logging function for spandsp logging.


Function Documentation

SPAN_DECLARE logging_state_t  ) 
 

Get a pointer to the logging context associated with a T.38 context.

Get a pointer to the logging context associated with a FAX context.

Parameters:
s The FAX context.
Returns:
A pointer to the logging context, or NULL.

SPAN_DECLARE void   ) 
 

Cleanup a T.30 context if the call terminates.

Change the put_bit function associated with an HDLC receiver context.

Parameters:
s A pointer to an HDLC receiver context.
handler The function to be called when a good HDLC frame is received.
user_data An opaque parameter for the callback routine.

SPAN_DECLARE int   ) 
 

Release a V.8 context.

Test if logging of a specified severity level is enabled.

Parameters:
s The logging context.
level The severity level to be tested.
Returns:
TRUE if logging is enable, else FALSE.


Generated on Fri Aug 28 20:12:28 2009 for spandsp by  doxygen 1.3.9.1