1 /* libguestfs generated file
2 * WARNING: THIS FILE IS GENERATED BY 'src/generator.ml'.
3 * ANY CHANGES YOU MAKE TO THIS FILE WILL BE LOST.
5 * Copyright (C) 2009 Red Hat Inc.
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
24 struct guestfs_mount_args {
33 struct guestfs_touch_args {
37 enum guestfs_procedure {
38 GUESTFS_PROC_MOUNT = 1,
39 GUESTFS_PROC_SYNC = 2,
40 GUESTFS_PROC_TOUCH = 3,
44 const GUESTFS_MESSAGE_MAX = 4194304;
46 const GUESTFS_PROGRAM = 0x2000F5F5;
47 const GUESTFS_PROTOCOL_VERSION = 1;
49 enum guestfs_message_direction {
50 GUESTFS_DIRECTION_CALL = 0, /* client -> daemon */
51 GUESTFS_DIRECTION_REPLY = 1 /* daemon -> client */
54 enum guestfs_message_status {
55 GUESTFS_STATUS_OK = 0,
56 GUESTFS_STATUS_ERROR = 1
59 const GUESTFS_ERROR_LEN = 256;
61 struct guestfs_message_error {
62 string error<GUESTFS_ERROR_LEN>; /* error message */
65 struct guestfs_message_header {
66 unsigned prog; /* GUESTFS_PROGRAM */
67 unsigned vers; /* GUESTFS_PROTOCOL_VERSION */
68 guestfs_procedure proc; /* GUESTFS_PROC_x */
69 guestfs_message_direction direction;
70 unsigned serial; /* message serial number */
71 guestfs_message_status status;