Ignore:
Timestamp:
25/02/2010 23:20:27 (2 years ago)
Author:
chris
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/bin/bbackupquery/BackupQueries.h

    r2430 r2641  
    2020class Configuration; 
    2121class ExcludeList; 
     22 
     23typedef struct 
     24{ 
     25        const char* name; 
     26        const char* opts; 
     27} 
     28QueryCommandSpecification; 
     29 
     30// Data about commands 
     31extern QueryCommandSpecification commands[]; 
     32 
     33typedef enum 
     34{ 
     35        Command_Quit = 0, 
     36        Command_Exit, 
     37        Command_List, 
     38        Command_pwd, 
     39        Command_cd, 
     40        Command_lcd, 
     41        Command_sh, 
     42        Command_GetObject, 
     43        Command_Get, 
     44        Command_Compare, 
     45        Command_Restore, 
     46        Command_Help, 
     47        Command_Usage, 
     48        Command_Undelete, 
     49        Command_Delete, 
     50} 
     51CommandType; 
     52 
     53extern const char *alias[]; 
     54extern const int aliasIs[]; 
    2255 
    2356// -------------------------------------------------------------------------- 
Note: See TracChangeset for help on using the changeset viewer.