1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
/*
basic Runtime definitions for yaf
Copyright (C) 1998 Martin Vogt
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Library General Public License as published by
the Free Software Foundation.
For more information look at the file COPYRIGHT in this package
*/
#ifndef __YAF_RUNTIME_DEFS
#define __YAF_RUNTIME_DEFS
#include "../yafcore/commandTable.h" // defines CommandDesc-Struct...
// Command Numbers
// define the YAF debug -its not a real command, but I know
// what I'm doing (see: outputDecoder.cpp)
#define _YAF_DEBUG 1
// For all other commands use the following schema:
#define _YAF_RUN_COMMENT _CT_START+1
#define _YAF_RUN_DECODER _CT_START+2
#define _YAF_RUN_PROTOCOL _CT_START+3
#define _YAF_RUN_IMPLEMENTS _CT_START+4
#define _YAF_RUN_EXIT _CT_START+5
#define _YAF_RUN_START _CT_START+100
// The commands as String. The Syntax is :
//
// { lexternalUse,lReturnMsg,longName,shortName,number,helpText }
//
// lexternal use ist true when the text should be written when
// user enters "help"
#ifdef _USE_RUNTIME_YAF_STRUC
static struct CommandDescriptionStruct yafRuntime[]={
{ 0,1,"comment","",_YAF_RUN_COMMENT,"commands should not be interpreted"},
{ 0,1,"decoder", "",_YAF_RUN_DECODER, "Name of decoder"},
{ 0,1,"implements", "",_YAF_RUN_IMPLEMENTS, "basic behaviour"},
{ 0,1,"exit", "",_YAF_RUN_EXIT, "yaf protocol terminated"},
{ 0,1,"protocol", "",_YAF_RUN_PROTOCOL, "yaf protocol version"}
};
#endif
// How much Commands are in the Array :
#define YAFRUNTIME_SIZE 5
#endif
|