File:  [DVB] / multiplexer / command.h
Revision 1.2: download - view: text, annotated - select for diffs
Thu Apr 5 14:50:42 2001 UTC (23 years, 2 months ago) by oskar
Branches: MAIN
CVS tags: HEAD
add commands --file, --close, --append. See --help.

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


enum {
  C_HELP = 1,
  C_VERS,
  C_QUIT,
  C_VERB,
  C_OPES,
  C_OPS,
  C_OTS,
  C_CLOS,
  C_APPE,
  C_FILE,
  C_CROP,
  C_REPT,
  C_TSID,
  C_FROP,
  C_BUSY,
  C_TIMD,
  C_FPSI,
  C_BSCR
};

typedef struct {
  byte token;
  byte width;
  short comshort;
  char *comlong;
  char *explain;
  char *explmulti;
} command_list;

typedef struct filerefer_list {
  struct filerefer_list *next;
  int filerefnum;
  char *filename;
} filerefer_list;

boolean command_init (int cargc,
    char **cargv);
boolean command_expected (unsigned int *nfds,
    struct pollfd *ufds);
void command_process (boolean readable);


LinuxTV legacy CVS <linuxtv.org/cvs>