Annotation of multiplexer/error.h, revision 1.8

1.1       oskar       1: /*
                      2:  * ISO 13818 stream multiplexer
                      3:  * Copyright (C) 2001 Convergence Integrated Media GmbH Berlin
1.8     ! oskar       4:  * Author: Oskar Schirmer (schirmer@scara.com)
1.7       oskar       5:  *
                      6:  * This program is free software; you can redistribute it and/or modify
                      7:  * it under the terms of the GNU General Public License as published by
                      8:  * the Free Software Foundation; either version 2 of the License, or
                      9:  * (at your option) any later version.
                     10:  *
                     11:  * This program is distributed in the hope that it will be useful,
                     12:  * but WITHOUT ANY WARRANTY; without even the implied warranty of
                     13:  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                     14:  * GNU General Public License for more details.
                     15:  *
                     16:  * You should have received a copy of the GNU General Public License
                     17:  * along with this program; if not, write to the Free Software
                     18:  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
1.1       oskar      19:  */
                     20: 
                     21: #include <string.h>
                     22: #include <errno.h>
                     23: #include <stdio.h>
                     24: 
1.5       oskar      25: #define EINI 0x01 /* init */
                     26: #define EDIS 0x02 /* dispatch */
                     27: #define EERR 0x03 /* error */
                     28: #define EINP 0x04 /* input */
                     29: #define EOUT 0x05 /* output */
                     30: #define ECOM 0x06 /* command */
                     31: #define EGLO 0x07 /* global */
                     32: #define EPES 0x08 /* splitpes */
                     33: #define EPST 0x09 /* splitps */
                     34: #define ETST 0x0A /* splitts */
                     35: #define EPSC 0x0B /* spliceps */
                     36: #define ETSC 0x0C /* splicets */
                     37: #define ESPC 0x0D /* splice */
                     38: #define EDES 0x0E /* descref */
1.1       oskar      39: 
                     40: #define LERR 0x01 /* program error */
                     41: #define LWAR 0x02 /* input data error */
                     42: #define LIMP 0x03 /* constellation change */
                     43: #define LINF 0x04 /* sporadic information */
                     44: #define LSEC 0x05 /* running information */
                     45: #define LDEB 0x06 /* debug level */
                     46: 
                     47: extern char *warn_level_name[];
                     48: extern char *warn_module_name[];
                     49: 
                     50: extern int verbose_level;
                     51: 
                     52: void do_warn (int level1,
                     53:     char *text,
                     54:     int module1,
                     55:     int func,
                     56:     int numb,
                     57:     long value);
                     58: 
                     59: #define warn(level,text,module,function,number,value) \
1.4       oskar      60:   (((level) > verbose_level) ? 0 : \
                     61:   (do_warn ((level-1),(text),(module-1),(function),(number),(long)(value)), 0))
1.1       oskar      62: 

LinuxTV legacy CVS <linuxtv.org/cvs>