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

LinuxTV legacy CVS <linuxtv.org/cvs>