Annotation of multiplexer/command.h, revision 1.3
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_TSID,
24: C_FROP,
25: C_BUSY,
26: C_TIMD,
27: C_FPSI,
28: C_BSCR
29: };
1.1 oskar 30:
31: typedef struct {
1.3 ! oskar 32: byte token; /* 0, if com* is not set */
! 33: byte width; /* size of field to print comlong in help, 0 to term list */
! 34: short comshort; /* -1, if no short version */
! 35: char *comlong; /* NULL for purely explanatory lines */
! 36: char *explain; /* exaplanatory string, may contain %s to insert explmulti*/
! 37: char *explmulti; /* is inserted only when splice_multipleprograms is TRUE */
! 38: } command_list; /* otherwise if explmulti is NULL, ignore the whole line */
1.2 oskar 39:
1.3 ! oskar 40: /* Linked list to hold pairs of filerefnum and filenames, as
! 41: * long as not used during an "open" or "append" operation:
! 42: */
1.2 oskar 43: typedef struct filerefer_list {
44: struct filerefer_list *next;
45: int filerefnum;
46: char *filename;
47: } filerefer_list;
1.1 oskar 48:
49: boolean command_init (int cargc,
50: char **cargv);
51: boolean command_expected (unsigned int *nfds,
52: struct pollfd *ufds);
53: void command_process (boolean readable);
54:
LinuxTV legacy CVS <linuxtv.org/cvs>