openalbridge/errlib.h
author nemo
Fri, 16 Oct 2009 22:46:58 +0000
changeset 2514 df9d0728c5bb
parent 2444 ace11b7d8eab
child 2529 51e5df1c8462
permissions -rw-r--r--
Make hedgies just hop a bit on flames so they are more likely to get properly scorched
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2418
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
     1
/*
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
     2
 
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
     3
 module: errlib.h
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
     4
 
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
     5
 purpose: definitions of function sin errlib.c
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
     6
 
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
     7
 reference: Stevens, Unix network programming (2ed), p.922
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
     8
 
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
     9
 */
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
    10
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
    11
#ifndef _ERRLIB_H
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
    12
#define _ERRLIB_H
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
    13
2443
fececcbc2189 Smaxx patch for fixing all sound related issues on any system
koda
parents: 2421
diff changeset
    14
#include "common.h"
2418
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
    15
        
2444
ace11b7d8eab code cleanup and restore the mute call
koda
parents: 2443
diff changeset
    16
extern int daemon_proc;
2418
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
    17
        
2444
ace11b7d8eab code cleanup and restore the mute call
koda
parents: 2443
diff changeset
    18
void err_msg (const char *fmt, ...);
ace11b7d8eab code cleanup and restore the mute call
koda
parents: 2443
diff changeset
    19
void err_quit (const char *fmt, ...);
ace11b7d8eab code cleanup and restore the mute call
koda
parents: 2443
diff changeset
    20
void err_ret (const char *fmt, ...);
ace11b7d8eab code cleanup and restore the mute call
koda
parents: 2443
diff changeset
    21
void err_sys (const char *fmt, ...);
ace11b7d8eab code cleanup and restore the mute call
koda
parents: 2443
diff changeset
    22
void err_dump (const char *fmt, ...);
2418
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
    23
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
    24
#endif /*_ERRLIB_H*/
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
    25
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
    26
/*
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
    27
 suggested error string ( PROG ) LEVEL - TEXT : ERRNO
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
    28
 
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
    29
            errno?  closeprog? log level 
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
    30
 err_msg      no       no       LOG_INFO 
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
    31
 err_quit     no     exit(1)    LOG_ERR 
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
    32
 err_ret      si       no       LOG_INFO 
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
    33
 err_sys      si     exit(1)    LOG_ERR 
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
    34
 err_dump     si    abort( )    LOG_ERR
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
    35
 */