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_lvm_int_pv {
34 hyper pv_pe_alloc_count;
41 typedef struct guestfs_lvm_int_pv guestfs_lvm_int_pv_list<>;
43 struct guestfs_lvm_int_vg {
52 hyper vg_extent_count;
65 typedef struct guestfs_lvm_int_vg guestfs_lvm_int_vg_list<>;
67 struct guestfs_lvm_int_lv {
73 hyper lv_kernel_major;
74 hyper lv_kernel_minor;
86 typedef struct guestfs_lvm_int_lv guestfs_lvm_int_lv_list<>;
88 struct guestfs_mount_args {
93 struct guestfs_touch_args {
97 struct guestfs_cat_args {
101 struct guestfs_cat_ret {
105 struct guestfs_ll_args {
109 struct guestfs_ll_ret {
113 struct guestfs_ls_args {
117 struct guestfs_ls_ret {
121 struct guestfs_list_devices_ret {
125 struct guestfs_list_partitions_ret {
129 struct guestfs_pvs_ret {
133 struct guestfs_vgs_ret {
137 struct guestfs_lvs_ret {
141 struct guestfs_pvs_full_ret {
142 guestfs_lvm_int_pv_list physvols;
145 struct guestfs_vgs_full_ret {
146 guestfs_lvm_int_vg_list volgroups;
149 struct guestfs_lvs_full_ret {
150 guestfs_lvm_int_lv_list logvols;
153 struct guestfs_read_lines_args {
157 struct guestfs_read_lines_ret {
161 struct guestfs_aug_init_args {
166 struct guestfs_aug_defvar_args {
171 struct guestfs_aug_defvar_ret {
175 struct guestfs_aug_defnode_args {
181 struct guestfs_aug_defnode_ret {
186 struct guestfs_aug_get_args {
190 struct guestfs_aug_get_ret {
194 struct guestfs_aug_set_args {
199 struct guestfs_aug_insert_args {
205 struct guestfs_aug_rm_args {
209 struct guestfs_aug_rm_ret {
213 struct guestfs_aug_mv_args {
218 struct guestfs_aug_match_args {
222 struct guestfs_aug_match_ret {
226 struct guestfs_aug_ls_args {
230 struct guestfs_aug_ls_ret {
234 struct guestfs_rm_args {
238 struct guestfs_rmdir_args {
242 struct guestfs_rm_rf_args {
246 struct guestfs_mkdir_args {
250 struct guestfs_mkdir_p_args {
254 struct guestfs_chmod_args {
259 struct guestfs_chown_args {
265 struct guestfs_exists_args {
269 struct guestfs_exists_ret {
273 struct guestfs_is_file_args {
277 struct guestfs_is_file_ret {
281 struct guestfs_is_dir_args {
285 struct guestfs_is_dir_ret {
289 struct guestfs_pvcreate_args {
293 struct guestfs_vgcreate_args {
298 struct guestfs_lvcreate_args {
304 struct guestfs_mkfs_args {
309 struct guestfs_sfdisk_args {
317 struct guestfs_write_file_args {
323 struct guestfs_umount_args {
324 string pathordevice<>;
327 struct guestfs_mounts_ret {
331 struct guestfs_file_args {
335 struct guestfs_file_ret {
336 string description<>;
339 struct guestfs_command_args {
343 struct guestfs_command_ret {
347 struct guestfs_command_lines_args {
351 struct guestfs_command_lines_ret {
355 enum guestfs_procedure {
356 GUESTFS_PROC_MOUNT = 1,
357 GUESTFS_PROC_SYNC = 2,
358 GUESTFS_PROC_TOUCH = 3,
359 GUESTFS_PROC_CAT = 4,
362 GUESTFS_PROC_LIST_DEVICES = 7,
363 GUESTFS_PROC_LIST_PARTITIONS = 8,
364 GUESTFS_PROC_PVS = 9,
365 GUESTFS_PROC_VGS = 10,
366 GUESTFS_PROC_LVS = 11,
367 GUESTFS_PROC_PVS_FULL = 12,
368 GUESTFS_PROC_VGS_FULL = 13,
369 GUESTFS_PROC_LVS_FULL = 14,
370 GUESTFS_PROC_READ_LINES = 15,
371 GUESTFS_PROC_AUG_INIT = 16,
372 GUESTFS_PROC_AUG_CLOSE = 26,
373 GUESTFS_PROC_AUG_DEFVAR = 17,
374 GUESTFS_PROC_AUG_DEFNODE = 18,
375 GUESTFS_PROC_AUG_GET = 19,
376 GUESTFS_PROC_AUG_SET = 20,
377 GUESTFS_PROC_AUG_INSERT = 21,
378 GUESTFS_PROC_AUG_RM = 22,
379 GUESTFS_PROC_AUG_MV = 23,
380 GUESTFS_PROC_AUG_MATCH = 24,
381 GUESTFS_PROC_AUG_SAVE = 25,
382 GUESTFS_PROC_AUG_LOAD = 27,
383 GUESTFS_PROC_AUG_LS = 28,
384 GUESTFS_PROC_RM = 29,
385 GUESTFS_PROC_RMDIR = 30,
386 GUESTFS_PROC_RM_RF = 31,
387 GUESTFS_PROC_MKDIR = 32,
388 GUESTFS_PROC_MKDIR_P = 33,
389 GUESTFS_PROC_CHMOD = 34,
390 GUESTFS_PROC_CHOWN = 35,
391 GUESTFS_PROC_EXISTS = 36,
392 GUESTFS_PROC_IS_FILE = 37,
393 GUESTFS_PROC_IS_DIR = 38,
394 GUESTFS_PROC_PVCREATE = 39,
395 GUESTFS_PROC_VGCREATE = 40,
396 GUESTFS_PROC_LVCREATE = 41,
397 GUESTFS_PROC_MKFS = 42,
398 GUESTFS_PROC_SFDISK = 43,
399 GUESTFS_PROC_WRITE_FILE = 44,
400 GUESTFS_PROC_UMOUNT = 45,
401 GUESTFS_PROC_MOUNTS = 46,
402 GUESTFS_PROC_UMOUNT_ALL = 47,
403 GUESTFS_PROC_LVM_REMOVE_ALL = 48,
404 GUESTFS_PROC_FILE = 49,
405 GUESTFS_PROC_COMMAND = 50,
406 GUESTFS_PROC_COMMAND_LINES = 51,
410 const GUESTFS_MESSAGE_MAX = 4194304;
412 const GUESTFS_PROGRAM = 0x2000F5F5;
413 const GUESTFS_PROTOCOL_VERSION = 1;
415 enum guestfs_message_direction {
416 GUESTFS_DIRECTION_CALL = 0, /* client -> daemon */
417 GUESTFS_DIRECTION_REPLY = 1 /* daemon -> client */
420 enum guestfs_message_status {
421 GUESTFS_STATUS_OK = 0,
422 GUESTFS_STATUS_ERROR = 1
425 const GUESTFS_ERROR_LEN = 256;
427 struct guestfs_message_error {
428 string error<GUESTFS_ERROR_LEN>; /* error message */
431 struct guestfs_message_header {
432 unsigned prog; /* GUESTFS_PROGRAM */
433 unsigned vers; /* GUESTFS_PROTOCOL_VERSION */
434 guestfs_procedure proc; /* GUESTFS_PROC_x */
435 guestfs_message_direction direction;
436 unsigned serial; /* message serial number */
437 guestfs_message_status status;