aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Lezcano <daniel.lezcano@free.fr>2009-07-15 23:48:22 +0200
committerDaniel Lezcano <dlezcano@fr.ibm.com>2009-07-15 23:48:22 +0200
commitfa7eddbbbbaf493268941bb013ed7477a5cc25b1 (patch)
tree03f05d3838bcffb41c0791754000483d267a034f /src/lxc/arguments.h
parentcleanup lxc-init (diff)
downloadlxc-fa7eddbbbbaf493268941bb013ed7477a5cc25b1.tar.gz
lxc-fa7eddbbbbaf493268941bb013ed7477a5cc25b1.tar.bz2
lxc-fa7eddbbbbaf493268941bb013ed7477a5cc25b1.zip
add a helper to dup the lxc arguments
Add a helper to dup the lxc_arguments, so the code making the copy of the arguments will be more clear. Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
Diffstat (limited to 'src/lxc/arguments.h')
-rw-r--r--src/lxc/arguments.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lxc/arguments.h b/src/lxc/arguments.h
index ffb436f..d38de89 100644
--- a/src/lxc/arguments.h
+++ b/src/lxc/arguments.h
@@ -73,8 +73,11 @@ struct lxc_arguments {
/* option keys for long only options */
#define OPT_USAGE 0x1000
-extern int lxc_arguments_parse(struct lxc_arguments *a_args,
+extern int lxc_arguments_parse(struct lxc_arguments *args,
int argc, char *const argv[]);
+
+extern char **lxc_arguments_dup(const char *file, struct lxc_arguments *args);
+
extern const char *lxc_strerror(int errnum);
#define lxc_error(arg, fmt, args...) if (!(arg)->quiet) \