2
definition file for basic yaf commands
3
Copyright (C) 1998 Martin Vogt
5
This program is free software; you can redistribute it and/or modify
6
it under the terms of the GNU Library General Public License as published by
7
the Free Software Foundation.
9
For more information look at the file COPYRIGHT in this package
16
#ifndef __YAF_COMMAND_DEFS
17
#define __YAF_COMMAND_DEFS
19
#include "commandTable.h" // defines CommandDesc-Struct...
23
#define _YAF_I_COMMAND 1
26
#define _YAF_I_RUNTIME 4
29
#define _YAF_I_PROTOCOL 7
30
#define _YAF_I_NOPROTOCOL 8
31
#define _YAF_I_WHATIS 9
32
#define _YAF_I_SELECT_A_LAYER 10
33
#define _YAF_I_SELECT_V_LAYER 11
34
#define _YAF_I_PLAYTIME 12
35
#define _YAF_I_WRITE 13
48
// The commands as String. The Syntax is :
51
// { lexternalUse,lReturnMsg,longName,shortName,number,helpText }
53
// lexternal use ist true when the text should be written when
59
static struct CommandDescriptionStruct yafCommands[]={
61
{0,1,"Command","",_YAF_I_COMMAND,"internal identifier"},
62
{0,1,"Msg","",_YAF_I_MSG,"identifier for unstructured String"},
63
{1,1,"help","h",_YAF_I_HELP,"show this help"},
64
{1,1,"ping","",_YAF_I_PING,"command tests if client is alive"},
65
{1,1,"runtime","r",_YAF_I_RUNTIME,"runtime [on|off] shows runtime infos"},
66
{1,1,"protocol","",_YAF_I_NOPROTOCOL,"internal protocol wrapper on [def]"},
67
{1,1,"noprotocol","",_YAF_I_PROTOCOL,"internal protocol wrapper off"},
68
{1,1,"whatis" ,"",_YAF_I_WHATIS,"gives a short introduction" },
69
{1,1,"audioLayer","", _YAF_I_SELECT_A_LAYER,
70
"selects audio layer from stream [0..31]"},
71
{1,1,"videoLayer" ,"", _YAF_I_SELECT_V_LAYER,
72
"selects video layer from stream [0..15]" },
73
{1,1,"playtime","", _YAF_I_PLAYTIME,
74
"retrives the current playtime" },
75
{1,1,"write","", _YAF_I_WRITE,
76
"writes stream to disk [on|off] default[off]" },
77
{1,1,"quit","q",_YAF_I_QUIT,"ends program"}
83
// How much Commands are in the Array :
84
#define YAFCOMMANDS_SIZE 13