aboutsummaryrefslogtreecommitdiffstats
path: root/src/swanctl/command.h
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2014-06-12 22:57:15 +0200
committerAndreas Steffen <andreas.steffen@strongswan.org>2014-06-14 15:40:22 +0200
commitdacb75f5c04b19e142762c81d5b13d3005c57c71 (patch)
tree12c863a85455b2354854c01880b756f31d1c9b11 /src/swanctl/command.h
parent12d618e280c4e8c54d94ecddf23ef937a3cbae39 (diff)
downloadstrongswan-dacb75f5c04b19e142762c81d5b13d3005c57c71.tar.bz2
strongswan-dacb75f5c04b19e142762c81d5b13d3005c57c71.tar.xz
Split swanctl --raw mode into single-line and --pretty mode
Diffstat (limited to 'src/swanctl/command.h')
-rw-r--r--src/swanctl/command.h12
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);