Split swanctl --raw mode into single-line and --pretty mode

This commit is contained in:
Andreas Steffen
2014-06-14 15:40:22 +02:00
parent 12d618e280
commit dacb75f5c0
18 changed files with 310 additions and 185 deletions
+11 -1
View File
@@ -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
@@ -75,6 +75,16 @@ struct command_t {
command_option_t options[MAX_OPTIONS];
};
/**
* 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.
*/