summaryrefslogtreecommitdiffstats
path: root/src/guestfs_protocol.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/guestfs_protocol.h')
-rw-r--r--src/guestfs_protocol.h85
1 files changed, 85 insertions, 0 deletions
diff --git a/src/guestfs_protocol.h b/src/guestfs_protocol.h
new file mode 100644
index 00000000..562d72fc
--- /dev/null
+++ b/src/guestfs_protocol.h
@@ -0,0 +1,85 @@
+/*
+ * Please do not edit this file.
+ * It was generated using rpcgen.
+ */
+
+#ifndef _GUESTFS_PROTOCOL_H_RPCGEN
+#define _GUESTFS_PROTOCOL_H_RPCGEN
+
+#include <rpc/rpc.h>
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+struct guestfs_mount_args {
+ char *device;
+ char *mountpoint;
+};
+typedef struct guestfs_mount_args guestfs_mount_args;
+
+struct guestfs_touch_args {
+ char *path;
+};
+typedef struct guestfs_touch_args guestfs_touch_args;
+
+enum guestfs_procedure {
+ GUESTFS_PROC_MOUNT = 1,
+ GUESTFS_PROC_SYNC = 2,
+ GUESTFS_PROC_TOUCH = 3,
+ GUESTFS_PROC_dummy = 3 + 1,
+};
+typedef enum guestfs_procedure guestfs_procedure;
+#define GUESTFS_MESSAGE_MAX 4194304
+#define GUESTFS_PROGRAM 0x2000F5F5
+#define GUESTFS_PROTOCOL_VERSION 1
+
+enum guestfs_message_direction {
+ GUESTFS_DIRECTION_CALL = 0,
+ GUESTFS_DIRECTION_REPLY = 1,
+};
+typedef enum guestfs_message_direction guestfs_message_direction;
+
+enum guestfs_message_status {
+ GUESTFS_STATUS_OK = 0,
+ GUESTFS_STATUS_ERROR = 1,
+};
+typedef enum guestfs_message_status guestfs_message_status;
+
+struct guestfs_message_header {
+ u_int prog;
+ u_int vers;
+ guestfs_procedure proc;
+ guestfs_message_direction direction;
+ u_int serial;
+ guestfs_message_status status;
+};
+typedef struct guestfs_message_header guestfs_message_header;
+
+/* the xdr functions */
+
+#if defined(__STDC__) || defined(__cplusplus)
+extern bool_t xdr_guestfs_mount_args (XDR *, guestfs_mount_args*);
+extern bool_t xdr_guestfs_touch_args (XDR *, guestfs_touch_args*);
+extern bool_t xdr_guestfs_procedure (XDR *, guestfs_procedure*);
+extern bool_t xdr_guestfs_message_direction (XDR *, guestfs_message_direction*);
+extern bool_t xdr_guestfs_message_status (XDR *, guestfs_message_status*);
+extern bool_t xdr_guestfs_message_header (XDR *, guestfs_message_header*);
+
+#else /* K&R C */
+extern bool_t xdr_guestfs_mount_args ();
+extern bool_t xdr_guestfs_touch_args ();
+extern bool_t xdr_guestfs_procedure ();
+extern bool_t xdr_guestfs_message_direction ();
+extern bool_t xdr_guestfs_message_status ();
+extern bool_t xdr_guestfs_message_header ();
+
+#endif /* K&R C */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* !_GUESTFS_PROTOCOL_H_RPCGEN */