diff options
Diffstat (limited to 'src/swanctl/command.h')
-rw-r--r-- | src/swanctl/command.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/swanctl/command.h b/src/swanctl/command.h index a394796d1..3c21484cd 100644 --- a/src/swanctl/command.h +++ b/src/swanctl/command.h @@ -41,7 +41,7 @@ typedef struct command_t command_t; typedef struct command_option_t command_option_t; -typedef enum command_type_t command_type_t; +typedef enum command_format_options_t command_format_options_t; /** * Option specification @@ -76,6 +76,16 @@ struct command_t { }; /** + * Command format options +*/ +enum command_format_options_t { + COMMAND_FORMAT_NONE = 0, + COMMAND_FORMAT_RAW = (1<<0), + COMMAND_FORMAT_PRETTY = (1<<1), + COMMAND_FORMAT_PEM = (1<<2), +}; + +/** * Get the next option, as with getopt. */ int command_getopt(char **arg); |