File:  [DVB] / multiplexer / error.h
Revision 1.5: download - view: text, annotated - select for diffs
Fri Oct 26 17:56:50 2001 UTC (22 years, 7 months ago) by oskar
Branches: MAIN
CVS tags: HEAD
Fix bug that caused PMT version number increment too often.

/*
 * ISO 13818 stream multiplexer
 * Copyright (C) 2001 Convergence Integrated Media GmbH Berlin
 * Author: Oskar Schirmer (oskar@convergence.de)
 */

#include <string.h>
#include <errno.h>
#include <stdio.h>

#define EINI 0x01 /* init */
#define EDIS 0x02 /* dispatch */
#define EERR 0x03 /* error */
#define EINP 0x04 /* input */
#define EOUT 0x05 /* output */
#define ECOM 0x06 /* command */
#define EGLO 0x07 /* global */
#define EPES 0x08 /* splitpes */
#define EPST 0x09 /* splitps */
#define ETST 0x0A /* splitts */
#define EPSC 0x0B /* spliceps */
#define ETSC 0x0C /* splicets */
#define ESPC 0x0D /* splice */
#define EDES 0x0E /* descref */

#define LERR 0x01 /* program error */
#define LWAR 0x02 /* input data error */
#define LIMP 0x03 /* constellation change */
#define LINF 0x04 /* sporadic information */
#define LSEC 0x05 /* running information */
#define LDEB 0x06 /* debug level */

extern char *warn_level_name[];
extern char *warn_module_name[];

extern int verbose_level;

void do_warn (int level1,
    char *text,
    int module1,
    int func,
    int numb,
    long value);

#define warn(level,text,module,function,number,value) \
  (((level) > verbose_level) ? 0 : \
  (do_warn ((level-1),(text),(module-1),(function),(number),(long)(value)), 0))


LinuxTV legacy CVS <linuxtv.org/cvs>