~ubuntu-branches/ubuntu/hoary/kdemultimedia/hoary

« back to all changes in this revision

Viewing changes to mpeglib/example/yaf/yafcore/yafCommand.defs

  • Committer: Bazaar Package Importer
  • Author(s): Martin Schulze
  • Date: 2003-01-22 15:00:51 UTC
  • Revision ID: james.westby@ubuntu.com-20030122150051-uihwkdoxf15mi1tn
Tags: upstream-2.2.2
ImportĀ upstreamĀ versionĀ 2.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
  definition file for basic yaf commands
 
3
  Copyright (C) 1998  Martin Vogt
 
4
 
 
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.
 
8
 
 
9
  For more information look at the file COPYRIGHT in this package
 
10
 
 
11
 */
 
12
 
 
13
 
 
14
 
 
15
 
 
16
#ifndef __YAF_COMMAND_DEFS
 
17
#define __YAF_COMMAND_DEFS
 
18
 
 
19
#include "commandTable.h"   // defines CommandDesc-Struct...
 
20
 
 
21
// Command Numbers
 
22
 
 
23
#define _YAF_I_COMMAND          1                       
 
24
#define _YAF_I_MSG              2
 
25
#define _YAF_I_HELP             3
 
26
#define _YAF_I_RUNTIME          4
 
27
#define _YAF_I_QUIT             5
 
28
#define _YAF_I_PING             6
 
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
 
36
 
 
37
 
 
38
 
 
39
 
 
40
 
 
41
 
 
42
 
 
43
 
 
44
#define _YAF_START 40
 
45
 
 
46
 
 
47
 
 
48
// The commands as String. The Syntax is :
 
49
// 
 
50
 
 
51
//  { lexternalUse,lReturnMsg,longName,shortName,number,helpText }
 
52
// 
 
53
// lexternal use ist true when the text should be written when 
 
54
// user enters "help"
 
55
 
 
56
 
 
57
#ifdef _USE_YAF_STRUC
 
58
 
 
59
static struct CommandDescriptionStruct yafCommands[]={
 
60
 
 
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"}
 
78
 
 
79
};
 
80
#endif
 
81
 
 
82
 
 
83
// How much Commands are in the Array :
 
84
#define YAFCOMMANDS_SIZE 13
 
85
 
 
86
 
 
87
 
 
88
#endif
 
89