diff options
author | Chris Wilson <chris+github@qwirx.com> | 2010-02-25 23:20:27 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2010-02-25 23:20:27 +0000 |
commit | 27ab8a2537deaff65a9bb68b2a03bb267361e91f (patch) | |
tree | 2225f568915e1d1dac8e9fb1cb0f51d127a88f9b /bin/bbackupquery/BackupQueries.h | |
parent | 25203d94333f492a928278b1abb8642302242502 (diff) |
First attempt at tab completion for readline/libedit in bbackupquery,
with commands and local file names, because it's easy and will help to
find compatibility problems.
Diffstat (limited to 'bin/bbackupquery/BackupQueries.h')
-rw-r--r-- | bin/bbackupquery/BackupQueries.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/bin/bbackupquery/BackupQueries.h b/bin/bbackupquery/BackupQueries.h index 392aa428..dfca7130 100644 --- a/bin/bbackupquery/BackupQueries.h +++ b/bin/bbackupquery/BackupQueries.h @@ -20,6 +20,39 @@ class BackupProtocolClient; class Configuration; class ExcludeList; +typedef struct +{ + const char* name; + const char* opts; +} +QueryCommandSpecification; + +// Data about commands +extern QueryCommandSpecification commands[]; + +typedef enum +{ + Command_Quit = 0, + Command_Exit, + Command_List, + Command_pwd, + Command_cd, + Command_lcd, + Command_sh, + Command_GetObject, + Command_Get, + Command_Compare, + Command_Restore, + Command_Help, + Command_Usage, + Command_Undelete, + Command_Delete, +} +CommandType; + +extern const char *alias[]; +extern const int aliasIs[]; + // -------------------------------------------------------------------------- // // Class |