NetBurner 3.5.0
PDF Version
 
serial_extensions.h
1
2#ifndef NB_SERIAL_EXTENSIONS_H
3#define NB_SERIAL_EXTENSIONS_H
4class fifo_buffer_storage;
5
6typedef void (*ExtendedCommand)(int fd, fifo_buffer_storage &rest_of_command);
7
8const uint32_t CommandFlagHidden=1; //Dont show in help
9const uint32_t CommandFlagCaseInsensitive=2; //Case insensitive command
10
11
12struct CommandElement
13{
14 const char *CommandText;
15 const char *CommandHelpText;
16 ExtendedCommand pCmd;
17 uint32_t flag;
18};
19
20// Pass in an array of commands to add, last element should have NULL CommandText
21extern const CommandElement *pPlatformCommands;
22extern const CommandElement *pExtendedCommands;
23
24#endif