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
26 struct guestfs_cat_args {
30 struct guestfs_cat_ret {
36 struct guestfs_ll_args {
40 struct guestfs_ll_ret {
46 struct guestfs_ls_args {
50 struct guestfs_ls_ret {
56 struct guestfs_mount_args {
65 struct guestfs_touch_args {
69 enum guestfs_procedure {
73 GUESTFS_PROC_MOUNT = 1,
74 GUESTFS_PROC_SYNC = 2,
75 GUESTFS_PROC_TOUCH = 3,
79 const GUESTFS_MESSAGE_MAX = 4194304;
81 const GUESTFS_PROGRAM = 0x2000F5F5;
82 const GUESTFS_PROTOCOL_VERSION = 1;
84 enum guestfs_message_direction {
85 GUESTFS_DIRECTION_CALL = 0, /* client -> daemon */
86 GUESTFS_DIRECTION_REPLY = 1 /* daemon -> client */
89 enum guestfs_message_status {
90 GUESTFS_STATUS_OK = 0,
91 GUESTFS_STATUS_ERROR = 1
94 const GUESTFS_ERROR_LEN = 256;
96 struct guestfs_message_error {
97 string error<GUESTFS_ERROR_LEN>; /* error message */
100 struct guestfs_message_header {
101 unsigned prog; /* GUESTFS_PROGRAM */
102 unsigned vers; /* GUESTFS_PROTOCOL_VERSION */
103 guestfs_procedure proc; /* GUESTFS_PROC_x */
104 guestfs_message_direction direction;
105 unsigned serial; /* message serial number */
106 guestfs_message_status status;