summaryrefslogtreecommitdiff
path: root/src/openvpn/argv.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/openvpn/argv.h')
-rw-r--r--src/openvpn/argv.h46
1 files changed, 26 insertions, 20 deletions
diff --git a/src/openvpn/argv.h b/src/openvpn/argv.h
index 9aee641..1dd6dd7 100644
--- a/src/openvpn/argv.h
+++ b/src/openvpn/argv.h
@@ -5,7 +5,7 @@
* packet encryption, packet authentication, and
* packet compression.
*
- * Copyright (C) 2002-2010 OpenVPN Technologies, Inc. <sales@openvpn.net>
+ * Copyright (C) 2002-2017 OpenVPN Technologies, Inc. <sales@openvpn.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2
@@ -34,37 +34,43 @@
#include "buffer.h"
struct argv {
- size_t capacity;
- size_t argc;
- char **argv;
+ size_t capacity;
+ size_t argc;
+ char **argv;
};
-struct argv argv_new (void);
-void argv_reset (struct argv *a);
-const char *argv_str (const struct argv *a, struct gc_arena *gc, const unsigned int flags);
-struct argv argv_insert_head (const struct argv *a, const char *head);
-void argv_msg (const int msglev, const struct argv *a);
-void argv_msg_prefix (const int msglev, const struct argv *a, const char *prefix);
-void argv_parse_cmd (struct argv *a, const char *s);
+struct argv argv_new(void);
-void argv_printf (struct argv *a, const char *format, ...)
+void argv_reset(struct argv *a);
+
+const char *argv_str(const struct argv *a, struct gc_arena *gc, const unsigned int flags);
+
+struct argv argv_insert_head(const struct argv *a, const char *head);
+
+void argv_msg(const int msglev, const struct argv *a);
+
+void argv_msg_prefix(const int msglev, const struct argv *a, const char *prefix);
+
+void argv_parse_cmd(struct argv *a, const char *s);
+
+void argv_printf(struct argv *a, const char *format, ...)
#ifdef __GNUC__
#if __USE_MINGW_ANSI_STDIO
- __attribute__ ((format (gnu_printf, 2, 3)))
+__attribute__ ((format(gnu_printf, 2, 3)))
#else
- __attribute__ ((format (__printf__, 2, 3)))
+__attribute__ ((format(__printf__, 2, 3)))
#endif
#endif
- ;
+;
-void argv_printf_cat (struct argv *a, const char *format, ...)
+void argv_printf_cat(struct argv *a, const char *format, ...)
#ifdef __GNUC__
#if __USE_MINGW_ANSI_STDIO
- __attribute__ ((format (gnu_printf, 2, 3)))
+__attribute__ ((format(gnu_printf, 2, 3)))
#else
- __attribute__ ((format (__printf__, 2, 3)))
+__attribute__ ((format(__printf__, 2, 3)))
#endif
#endif
- ;
+;
-#endif
+#endif /* ifndef ARGV_H */