Annotation of multiplexer/command.h, revision 1.8
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:
1.3 oskar 8: /* Tokens to denote main commands:
9: */
1.2 oskar 10: enum {
11: C_HELP = 1,
12: C_VERS,
13: C_QUIT,
14: C_VERB,
15: C_OPES,
16: C_OPS,
17: C_OTS,
18: C_CLOS,
19: C_APPE,
20: C_FILE,
21: C_CROP,
22: C_REPT,
23: C_FROP,
24: C_BUSY,
25: C_TIMD,
26: C_FPSI,
1.4 oskar 27: C_TSID,
28: C_TSSI,
1.7 oskar 29: C_TSSP,
1.8 ! oskar 30: C_DSCR,
! 31: C_DSCS,
! 32: C_DSCP,
1.6 oskar 33: C_TRGI,
34: C_TRGO,
1.5 oskar 35: C_CONF,
36: C_STAT,
1.2 oskar 37: C_BSCR
38: };
1.1 oskar 39:
40: typedef struct {
1.3 oskar 41: byte token; /* 0, if com* is not set */
42: byte width; /* size of field to print comlong in help, 0 to term list */
43: short comshort; /* -1, if no short version */
44: char *comlong; /* NULL for purely explanatory lines */
45: char *explain; /* exaplanatory string, may contain %s to insert explmulti*/
46: char *explmulti; /* is inserted only when splice_multipleprograms is TRUE */
47: } command_list; /* otherwise if explmulti is NULL, ignore the whole line */
1.2 oskar 48:
1.3 oskar 49: /* Linked list to hold pairs of filerefnum and filenames, as
50: * long as not used during an "open" or "append" operation:
51: */
1.2 oskar 52: typedef struct filerefer_list {
53: struct filerefer_list *next;
54: int filerefnum;
55: char *filename;
56: } filerefer_list;
1.1 oskar 57:
58: boolean command_init (int cargc,
59: char **cargv);
60: boolean command_expected (unsigned int *nfds,
61: struct pollfd *ufds);
62: void command_process (boolean readable);
63:
LinuxTV legacy CVS <linuxtv.org/cvs>