diff options
author | Daniel Lezcano <daniel.lezcano@free.fr> | 2009-07-15 23:48:22 +0200 |
---|---|---|
committer | Daniel Lezcano <dlezcano@fr.ibm.com> | 2009-07-15 23:48:22 +0200 |
commit | fa7eddbbbbaf493268941bb013ed7477a5cc25b1 (patch) | |
tree | 03f05d3838bcffb41c0791754000483d267a034f /src/lxc/arguments.h | |
parent | cleanup lxc-init (diff) | |
download | lxc-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.h | 5 |
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) \ |