slave: Use slightly modified event_callback.
[guestfs-browser.git] / cmdline.mli
1 (* Guestfs Browser.
2  * Copyright (C) 2010 Red Hat Inc.
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License along
15  * with this program; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17  *)
18
19 (** Handle the command line arguments. *)
20
21 type cli_request =
22   | Empty_window
23   | Open_guest of string
24   | Open_images of (string * string option) list
25       (** The initial action requested by the user on the command line.
26
27           [Empty_window] means nothing was requested on the command line.
28
29           [Open_guest] means to open a guest (-d option).
30
31           [Open_images] means to open a list of disk images (-a option). *)
32
33 val command_line : unit -> cli_request
34   (** Read the command line and return {!cli_request}. *)