lvm2cmdline.h revision 1.1.1.1.2.1 1 1.1.1.1.2.1 jym /* $NetBSD: lvm2cmdline.h,v 1.1.1.1.2.1 2009/05/13 18:52:47 jym Exp $ */
2 1.1 haad
3 1.1 haad /*
4 1.1 haad * Copyright (C) 2003-2004 Sistina Software, Inc. All rights reserved.
5 1.1 haad * Copyright (C) 2004-2007 Red Hat, Inc. All rights reserved.
6 1.1 haad *
7 1.1 haad * This file is part of LVM2.
8 1.1 haad *
9 1.1 haad * This copyrighted material is made available to anyone wishing to use,
10 1.1 haad * modify, copy, or redistribute it subject to the terms and conditions
11 1.1 haad * of the GNU Lesser General Public License v.2.1.
12 1.1 haad *
13 1.1 haad * You should have received a copy of the GNU Lesser General Public License
14 1.1 haad * along with this program; if not, write to the Free Software Foundation,
15 1.1 haad * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16 1.1 haad */
17 1.1 haad
18 1.1 haad #ifndef _LVM_CMDLINE_H
19 1.1 haad #define _LVM_CMDLINE_H
20 1.1 haad
21 1.1 haad struct cmd_context;
22 1.1 haad
23 1.1 haad struct cmdline_context {
24 1.1 haad struct arg *the_args;
25 1.1 haad struct command *commands;
26 1.1 haad int num_commands;
27 1.1 haad int commands_size;
28 1.1 haad int interactive;
29 1.1 haad };
30 1.1 haad
31 1.1.1.1.2.1 jym int lvm2_main(int argc, char **argv);
32 1.1 haad
33 1.1.1.1.2.1 jym void *cmdlib_lvm2_init(unsigned static_compile);
34 1.1 haad void lvm_fin(struct cmd_context *cmd);
35 1.1 haad
36 1.1.1.1.2.1 jym struct cmd_context *init_lvm(void);
37 1.1 haad void lvm_register_commands(void);
38 1.1 haad int lvm_split(char *str, int *argc, char **argv, int max);
39 1.1 haad int lvm_run_command(struct cmd_context *cmd, int argc, char **argv);
40 1.1 haad int lvm_shell(struct cmd_context *cmd, struct cmdline_context *cmdline);
41 1.1 haad
42 1.1 haad #endif
43