/*
  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

