summaryrefslogtreecommitdiffstats
path: root/tools/lvm2cmdline.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/lvm2cmdline.h')
-rw-r--r--tools/lvm2cmdline.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/lvm2cmdline.h b/tools/lvm2cmdline.h
index 07cade97..c7db9eed 100644
--- a/tools/lvm2cmdline.h
+++ b/tools/lvm2cmdline.h
@@ -18,6 +18,14 @@
struct cmd_context;
+struct cmdline_context {
+ struct arg *the_args;
+ struct command *commands;
+ int num_commands;
+ int commands_size;
+ int interactive;
+};
+
int lvm2_main(int argc, char **argv, unsigned is_static);
void *cmdlib_lvm2_init(unsigned is_static);
@@ -27,5 +35,6 @@ struct cmd_context *init_lvm(unsigned is_static);
void lvm_register_commands(void);
int lvm_split(char *str, int *argc, char **argv, int max);
int lvm_run_command(struct cmd_context *cmd, int argc, char **argv);
+int lvm_shell(struct cmd_context *cmd, struct cmdline_context *cmdline);
#endif