libvirt/src/remote/qemu_protocol.h
Chris Lalancette 337d201ef2 Qemu remote protocol.
Since we are adding a new "per-hypervisor" protocol, we
make it so that the qemu remote protocol uses a new
PROTOCOL and PROGRAM number.  This allows us to easily
distinguish it from the normal REMOTE protocol.

This necessitates changing the proc in remote_message_header
from a "remote_procedure" to an "unsigned", which should
be the same size (and thus preserve the on-wire protocol).

Changes since v1:
 - Fixed up a couple of script problems in remote_generate_stubs.pl
 - Switch an int flag to a bool in dispatch.c

Changes since v2:
 - None

Changes since v3:
 - Change unsigned proc to signed proc, to conform to spec

Signed-off-by: Chris Lalancette <clalance@redhat.com>
2010-07-23 17:30:33 -04:00

58 lines
1.3 KiB
C

/*
* Please do not edit this file.
* It was generated using rpcgen.
*/
#ifndef _RP_QEMU_H_RPCGEN
#define _RP_QEMU_H_RPCGEN
#include <rpc/rpc.h>
#ifdef __cplusplus
extern "C" {
#endif
#include "internal.h"
#include "remote_protocol.h"
#include <arpa/inet.h>
struct qemu_monitor_command_args {
remote_nonnull_domain domain;
remote_nonnull_string cmd;
int flags;
};
typedef struct qemu_monitor_command_args qemu_monitor_command_args;
struct qemu_monitor_command_ret {
remote_nonnull_string result;
};
typedef struct qemu_monitor_command_ret qemu_monitor_command_ret;
#define QEMU_PROGRAM 0x20008087
#define QEMU_PROTOCOL_VERSION 1
enum qemu_procedure {
QEMU_PROC_MONITOR_COMMAND = 1,
};
typedef enum qemu_procedure qemu_procedure;
/* the xdr functions */
#if defined(__STDC__) || defined(__cplusplus)
extern bool_t xdr_qemu_monitor_command_args (XDR *, qemu_monitor_command_args*);
extern bool_t xdr_qemu_monitor_command_ret (XDR *, qemu_monitor_command_ret*);
extern bool_t xdr_qemu_procedure (XDR *, qemu_procedure*);
#else /* K&R C */
extern bool_t xdr_qemu_monitor_command_args ();
extern bool_t xdr_qemu_monitor_command_ret ();
extern bool_t xdr_qemu_procedure ();
#endif /* K&R C */
#ifdef __cplusplus
}
#endif
#endif /* !_RP_QEMU_H_RPCGEN */