Changeset 3611:e33c2cfeb17e in roaraudio for include


Ignore:
Timestamp:
03/01/10 03:08:04 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added support for syslog, wrote additional interface roar_debug_msg()

Location:
include/libroar
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • include/libroar/debug.h

    r3607 r3611  
    4343#define ROAR_WARNING_ALWAYS      2 
    4444 
     45#define ROAR_DEBUG_TYPE_ERROR    1 
     46#define ROAR_DEBUG_TYPE_WARNING  2 
     47#define ROAR_DEBUG_TYPE_INFO     3 
     48#define ROAR_DEBUG_TYPE_DEBUG    4 
     49 
     50#define ROAR_DEBUG_MODE_SYSIO    0 
     51#define ROAR_DEBUG_MODE_VIO      1 
     52#define ROAR_DEBUG_MODE_SYSLOG   2 
     53 
    4554#if 1 
    4655#define roar_debug_warn_sysio(f,n,i) roar_debug_warn_sysio_real((f),(n),(i)) 
     
    5564 
    5665void   roar_debug_set_stderr_fh(int fh); 
     66void   roar_debug_set_stderr_mode(int mode); 
    5767 
    5868struct roar_vio_calls * roar_debug_get_stderr(void); 
     
    6070void roar_debug_msg_simple(const char *format, ...); 
    6171 
     72void roar_debug_msg(int type, unsigned long int line, char * file, char * prefix, char * format, ...); 
     73 
    6274#endif 
    6375 
  • include/libroar/libroar.h

    r3567 r3611  
    5353#ifdef ROAR_HAVE_H_SIGNAL 
    5454#include <signal.h> 
     55#endif 
     56 
     57#ifdef ROAR_HAVE_SYSLOG 
     58#include <syslog.h> 
    5559#endif 
    5660 
Note: See TracChangeset for help on using the changeset viewer.