MACSio  0.9
Multi-purpose, Application-Centric, Scalable I/O Proxy App
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
debug.c File Reference
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include "debug.h"

Go to the source code of this file.

Functions

void mc_set_debug (int debug)
 
int mc_get_debug (void)
 
void mc_set_syslog (int syslog)
 
void mc_debug (const char *msg,...)
 
void mc_error (const char *msg,...)
 
void mc_info (const char *msg,...)
 

Variables

static int _syslog = 0
 
static int _debug = 0
 

Function Documentation

void mc_set_debug ( int  debug)

Definition at line 36 of file debug.c.

int mc_get_debug ( void  )

Definition at line 37 of file debug.c.

void mc_set_syslog ( int  syslog)

Definition at line 39 of file debug.c.

void mc_debug ( const char *  msg,
  ... 
)

Definition at line 44 of file debug.c.

void mc_error ( const char *  msg,
  ... 
)

Definition at line 59 of file debug.c.

void mc_info ( const char *  msg,
  ... 
)

Definition at line 72 of file debug.c.

Variable Documentation

int _syslog = 0
static

Definition at line 33 of file debug.c.

int _debug = 0
static

Definition at line 34 of file debug.c.