]>
Commit | Line | Data |
---|---|---|
7fa2d1a0 | 1 | /* |
6606c3ae | 2 | * Copyright (C) 2003-2004 Sistina Software, Inc. All rights reserved. |
be684599 | 3 | * Copyright (C) 2004-2007 Red Hat, Inc. All rights reserved. |
7fa2d1a0 | 4 | * |
6606c3ae AK |
5 | * This file is part of LVM2. |
6 | * | |
7 | * This copyrighted material is made available to anyone wishing to use, | |
8 | * modify, copy, or redistribute it subject to the terms and conditions | |
be684599 | 9 | * of the GNU Lesser General Public License v.2.1. |
6606c3ae | 10 | * |
be684599 | 11 | * You should have received a copy of the GNU Lesser General Public License |
6606c3ae AK |
12 | * along with this program; if not, write to the Free Software Foundation, |
13 | * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
7fa2d1a0 AK |
14 | */ |
15 | ||
16 | #ifndef _LVM_CMDLINE_H | |
17 | #define _LVM_CMDLINE_H | |
18 | ||
6711231a AK |
19 | struct cmd_context; |
20 | ||
f359c9b8 | 21 | struct cmdline_context { |
f8452d8c | 22 | struct arg_props *arg_props; |
f359c9b8 AK |
23 | struct command *commands; |
24 | int num_commands; | |
25 | int commands_size; | |
26 | int interactive; | |
27 | }; | |
28 | ||
02961979 | 29 | int lvm2_main(int argc, char **argv); |
6711231a | 30 | |
d6b42282 | 31 | void *cmdlib_lvm2_init(unsigned static_compile); |
6711231a AK |
32 | void lvm_fin(struct cmd_context *cmd); |
33 | ||
02961979 | 34 | struct cmd_context *init_lvm(void); |
6711231a AK |
35 | void lvm_register_commands(void); |
36 | int lvm_split(char *str, int *argc, char **argv, int max); | |
37 | int lvm_run_command(struct cmd_context *cmd, int argc, char **argv); | |
94d4a90f | 38 | int lvm_return_code(int ret); |
f359c9b8 | 39 | int lvm_shell(struct cmd_context *cmd, struct cmdline_context *cmdline); |
7fa2d1a0 AK |
40 | |
41 | #endif |