Annotation of multiplexer/error.h, revision 1.5
1.1 oskar 1: /*
2: * ISO 13818 stream multiplexer
3: * Copyright (C) 2001 Convergence Integrated Media GmbH Berlin
4: * Author: Oskar Schirmer (oskar@convergence.de)
5: */
6:
7: #include <string.h>
8: #include <errno.h>
9: #include <stdio.h>
10:
1.5 ! oskar 11: #define EINI 0x01 /* init */
! 12: #define EDIS 0x02 /* dispatch */
! 13: #define EERR 0x03 /* error */
! 14: #define EINP 0x04 /* input */
! 15: #define EOUT 0x05 /* output */
! 16: #define ECOM 0x06 /* command */
! 17: #define EGLO 0x07 /* global */
! 18: #define EPES 0x08 /* splitpes */
! 19: #define EPST 0x09 /* splitps */
! 20: #define ETST 0x0A /* splitts */
! 21: #define EPSC 0x0B /* spliceps */
! 22: #define ETSC 0x0C /* splicets */
! 23: #define ESPC 0x0D /* splice */
! 24: #define EDES 0x0E /* descref */
1.1 oskar 25:
26: #define LERR 0x01 /* program error */
27: #define LWAR 0x02 /* input data error */
28: #define LIMP 0x03 /* constellation change */
29: #define LINF 0x04 /* sporadic information */
30: #define LSEC 0x05 /* running information */
31: #define LDEB 0x06 /* debug level */
32:
33: extern char *warn_level_name[];
34: extern char *warn_module_name[];
35:
36: extern int verbose_level;
37:
38: void do_warn (int level1,
39: char *text,
40: int module1,
41: int func,
42: int numb,
43: long value);
44:
45: #define warn(level,text,module,function,number,value) \
1.4 oskar 46: (((level) > verbose_level) ? 0 : \
47: (do_warn ((level-1),(text),(module-1),(function),(number),(long)(value)), 0))
1.1 oskar 48:
LinuxTV legacy CVS <linuxtv.org/cvs>