mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-08 22:39:56 +00:00
1006 lines
22 KiB
C
1006 lines
22 KiB
C
|
/*
|
||
|
* Please do not edit this file.
|
||
|
* It was generated using rpcgen.
|
||
|
*/
|
||
|
|
||
|
#include "remote_protocol.h"
|
||
|
#include "libvirt/libvirt.h"
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_nonnull_string (XDR *xdrs, remote_nonnull_string *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_string (xdrs, objp, REMOTE_STRING_MAX))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_string (XDR *xdrs, remote_string *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_pointer (xdrs, (char **)objp, sizeof (remote_nonnull_string), (xdrproc_t) xdr_remote_nonnull_string))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_uuid (XDR *xdrs, remote_uuid objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_opaque (xdrs, objp, VIR_UUID_BUFLEN))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_nonnull_domain (XDR *xdrs, remote_nonnull_domain *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_remote_nonnull_string (xdrs, &objp->name))
|
||
|
return FALSE;
|
||
|
if (!xdr_remote_uuid (xdrs, objp->uuid))
|
||
|
return FALSE;
|
||
|
if (!xdr_int (xdrs, &objp->id))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_nonnull_network (XDR *xdrs, remote_nonnull_network *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_remote_nonnull_string (xdrs, &objp->name))
|
||
|
return FALSE;
|
||
|
if (!xdr_remote_uuid (xdrs, objp->uuid))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_domain (XDR *xdrs, remote_domain *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_pointer (xdrs, (char **)objp, sizeof (remote_nonnull_domain), (xdrproc_t) xdr_remote_nonnull_domain))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_network (XDR *xdrs, remote_network *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_pointer (xdrs, (char **)objp, sizeof (remote_nonnull_network), (xdrproc_t) xdr_remote_nonnull_network))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_error (XDR *xdrs, remote_error *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_int (xdrs, &objp->code))
|
||
|
return FALSE;
|
||
|
if (!xdr_int (xdrs, &objp->domain))
|
||
|
return FALSE;
|
||
|
if (!xdr_remote_string (xdrs, &objp->message))
|
||
|
return FALSE;
|
||
|
if (!xdr_int (xdrs, &objp->level))
|
||
|
return FALSE;
|
||
|
if (!xdr_remote_domain (xdrs, &objp->dom))
|
||
|
return FALSE;
|
||
|
if (!xdr_remote_string (xdrs, &objp->str1))
|
||
|
return FALSE;
|
||
|
if (!xdr_remote_string (xdrs, &objp->str2))
|
||
|
return FALSE;
|
||
|
if (!xdr_remote_string (xdrs, &objp->str3))
|
||
|
return FALSE;
|
||
|
if (!xdr_int (xdrs, &objp->int1))
|
||
|
return FALSE;
|
||
|
if (!xdr_int (xdrs, &objp->int2))
|
||
|
return FALSE;
|
||
|
if (!xdr_remote_network (xdrs, &objp->net))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_vcpu_info (XDR *xdrs, remote_vcpu_info *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_u_int (xdrs, &objp->number))
|
||
|
return FALSE;
|
||
|
if (!xdr_int (xdrs, &objp->state))
|
||
|
return FALSE;
|
||
|
if (!xdr_u_quad_t (xdrs, &objp->cpu_time))
|
||
|
return FALSE;
|
||
|
if (!xdr_int (xdrs, &objp->cpu))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_open_args (XDR *xdrs, remote_open_args *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_remote_string (xdrs, &objp->name))
|
||
|
return FALSE;
|
||
|
if (!xdr_int (xdrs, &objp->flags))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_get_type_ret (XDR *xdrs, remote_get_type_ret *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_remote_nonnull_string (xdrs, &objp->type))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_get_version_ret (XDR *xdrs, remote_get_version_ret *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_quad_t (xdrs, &objp->hv_ver))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_get_max_vcpus_args (XDR *xdrs, remote_get_max_vcpus_args *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_remote_string (xdrs, &objp->type))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_get_max_vcpus_ret (XDR *xdrs, remote_get_max_vcpus_ret *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_int (xdrs, &objp->max_vcpus))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_node_get_info_ret (XDR *xdrs, remote_node_get_info_ret *objp)
|
||
|
{
|
||
|
register int32_t *buf;
|
||
|
|
||
|
|
||
|
if (xdrs->x_op == XDR_ENCODE) {
|
||
|
if (!xdr_vector (xdrs, (char *)objp->model, 32,
|
||
|
sizeof (char), (xdrproc_t) xdr_char))
|
||
|
return FALSE;
|
||
|
if (!xdr_quad_t (xdrs, &objp->memory))
|
||
|
return FALSE;
|
||
|
buf = XDR_INLINE (xdrs, 6 * BYTES_PER_XDR_UNIT);
|
||
|
if (buf == NULL) {
|
||
|
if (!xdr_int (xdrs, &objp->cpus))
|
||
|
return FALSE;
|
||
|
if (!xdr_int (xdrs, &objp->mhz))
|
||
|
return FALSE;
|
||
|
if (!xdr_int (xdrs, &objp->nodes))
|
||
|
return FALSE;
|
||
|
if (!xdr_int (xdrs, &objp->sockets))
|
||
|
return FALSE;
|
||
|
if (!xdr_int (xdrs, &objp->cores))
|
||
|
return FALSE;
|
||
|
if (!xdr_int (xdrs, &objp->threads))
|
||
|
return FALSE;
|
||
|
} else {
|
||
|
(void)IXDR_PUT_INT32(buf, objp->cpus);
|
||
|
(void)IXDR_PUT_INT32(buf, objp->mhz);
|
||
|
(void)IXDR_PUT_INT32(buf, objp->nodes);
|
||
|
(void)IXDR_PUT_INT32(buf, objp->sockets);
|
||
|
(void)IXDR_PUT_INT32(buf, objp->cores);
|
||
|
(void)IXDR_PUT_INT32(buf, objp->threads);
|
||
|
}
|
||
|
return TRUE;
|
||
|
} else if (xdrs->x_op == XDR_DECODE) {
|
||
|
if (!xdr_vector (xdrs, (char *)objp->model, 32,
|
||
|
sizeof (char), (xdrproc_t) xdr_char))
|
||
|
return FALSE;
|
||
|
if (!xdr_quad_t (xdrs, &objp->memory))
|
||
|
return FALSE;
|
||
|
buf = XDR_INLINE (xdrs, 6 * BYTES_PER_XDR_UNIT);
|
||
|
if (buf == NULL) {
|
||
|
if (!xdr_int (xdrs, &objp->cpus))
|
||
|
return FALSE;
|
||
|
if (!xdr_int (xdrs, &objp->mhz))
|
||
|
return FALSE;
|
||
|
if (!xdr_int (xdrs, &objp->nodes))
|
||
|
return FALSE;
|
||
|
if (!xdr_int (xdrs, &objp->sockets))
|
||
|
return FALSE;
|
||
|
if (!xdr_int (xdrs, &objp->cores))
|
||
|
return FALSE;
|
||
|
if (!xdr_int (xdrs, &objp->threads))
|
||
|
return FALSE;
|
||
|
} else {
|
||
|
objp->cpus = IXDR_GET_LONG(buf);
|
||
|
objp->mhz = IXDR_GET_LONG(buf);
|
||
|
objp->nodes = IXDR_GET_LONG(buf);
|
||
|
objp->sockets = IXDR_GET_LONG(buf);
|
||
|
objp->cores = IXDR_GET_LONG(buf);
|
||
|
objp->threads = IXDR_GET_LONG(buf);
|
||
|
}
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
if (!xdr_vector (xdrs, (char *)objp->model, 32,
|
||
|
sizeof (char), (xdrproc_t) xdr_char))
|
||
|
return FALSE;
|
||
|
if (!xdr_quad_t (xdrs, &objp->memory))
|
||
|
return FALSE;
|
||
|
if (!xdr_int (xdrs, &objp->cpus))
|
||
|
return FALSE;
|
||
|
if (!xdr_int (xdrs, &objp->mhz))
|
||
|
return FALSE;
|
||
|
if (!xdr_int (xdrs, &objp->nodes))
|
||
|
return FALSE;
|
||
|
if (!xdr_int (xdrs, &objp->sockets))
|
||
|
return FALSE;
|
||
|
if (!xdr_int (xdrs, &objp->cores))
|
||
|
return FALSE;
|
||
|
if (!xdr_int (xdrs, &objp->threads))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_get_capabilities_ret (XDR *xdrs, remote_get_capabilities_ret *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_remote_nonnull_string (xdrs, &objp->capabilities))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_list_domains_args (XDR *xdrs, remote_list_domains_args *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_int (xdrs, &objp->maxids))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_list_domains_ret (XDR *xdrs, remote_list_domains_ret *objp)
|
||
|
{
|
||
|
char **objp_cpp0 = (char **) (void *) &objp->ids.ids_val;
|
||
|
|
||
|
if (!xdr_array (xdrs, objp_cpp0, (u_int *) &objp->ids.ids_len, REMOTE_DOMAIN_ID_LIST_MAX,
|
||
|
sizeof (int), (xdrproc_t) xdr_int))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_num_of_domains_ret (XDR *xdrs, remote_num_of_domains_ret *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_int (xdrs, &objp->num))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_domain_create_linux_args (XDR *xdrs, remote_domain_create_linux_args *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_remote_nonnull_string (xdrs, &objp->xml_desc))
|
||
|
return FALSE;
|
||
|
if (!xdr_int (xdrs, &objp->flags))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_domain_create_linux_ret (XDR *xdrs, remote_domain_create_linux_ret *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_remote_nonnull_domain (xdrs, &objp->dom))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_domain_lookup_by_id_args (XDR *xdrs, remote_domain_lookup_by_id_args *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_int (xdrs, &objp->id))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_domain_lookup_by_id_ret (XDR *xdrs, remote_domain_lookup_by_id_ret *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_remote_nonnull_domain (xdrs, &objp->dom))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_domain_lookup_by_uuid_args (XDR *xdrs, remote_domain_lookup_by_uuid_args *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_remote_uuid (xdrs, objp->uuid))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_domain_lookup_by_uuid_ret (XDR *xdrs, remote_domain_lookup_by_uuid_ret *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_remote_nonnull_domain (xdrs, &objp->dom))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_domain_lookup_by_name_args (XDR *xdrs, remote_domain_lookup_by_name_args *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_remote_nonnull_string (xdrs, &objp->name))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_domain_lookup_by_name_ret (XDR *xdrs, remote_domain_lookup_by_name_ret *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_remote_nonnull_domain (xdrs, &objp->dom))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_domain_suspend_args (XDR *xdrs, remote_domain_suspend_args *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_remote_nonnull_domain (xdrs, &objp->dom))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_domain_resume_args (XDR *xdrs, remote_domain_resume_args *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_remote_nonnull_domain (xdrs, &objp->dom))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_domain_shutdown_args (XDR *xdrs, remote_domain_shutdown_args *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_remote_nonnull_domain (xdrs, &objp->dom))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_domain_reboot_args (XDR *xdrs, remote_domain_reboot_args *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_remote_nonnull_domain (xdrs, &objp->dom))
|
||
|
return FALSE;
|
||
|
if (!xdr_int (xdrs, &objp->flags))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_domain_destroy_args (XDR *xdrs, remote_domain_destroy_args *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_remote_nonnull_domain (xdrs, &objp->dom))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_domain_get_os_type_args (XDR *xdrs, remote_domain_get_os_type_args *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_remote_nonnull_domain (xdrs, &objp->dom))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_domain_get_os_type_ret (XDR *xdrs, remote_domain_get_os_type_ret *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_remote_nonnull_string (xdrs, &objp->type))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_domain_get_max_memory_args (XDR *xdrs, remote_domain_get_max_memory_args *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_remote_nonnull_domain (xdrs, &objp->dom))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_domain_get_max_memory_ret (XDR *xdrs, remote_domain_get_max_memory_ret *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_u_quad_t (xdrs, &objp->memory))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_domain_set_max_memory_args (XDR *xdrs, remote_domain_set_max_memory_args *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_remote_nonnull_domain (xdrs, &objp->dom))
|
||
|
return FALSE;
|
||
|
if (!xdr_u_quad_t (xdrs, &objp->memory))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_domain_set_memory_args (XDR *xdrs, remote_domain_set_memory_args *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_remote_nonnull_domain (xdrs, &objp->dom))
|
||
|
return FALSE;
|
||
|
if (!xdr_u_quad_t (xdrs, &objp->memory))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_domain_get_info_args (XDR *xdrs, remote_domain_get_info_args *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_remote_nonnull_domain (xdrs, &objp->dom))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_domain_get_info_ret (XDR *xdrs, remote_domain_get_info_ret *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_u_char (xdrs, &objp->state))
|
||
|
return FALSE;
|
||
|
if (!xdr_u_quad_t (xdrs, &objp->max_mem))
|
||
|
return FALSE;
|
||
|
if (!xdr_u_quad_t (xdrs, &objp->memory))
|
||
|
return FALSE;
|
||
|
if (!xdr_u_short (xdrs, &objp->nr_virt_cpu))
|
||
|
return FALSE;
|
||
|
if (!xdr_u_quad_t (xdrs, &objp->cpu_time))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_domain_save_args (XDR *xdrs, remote_domain_save_args *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_remote_nonnull_domain (xdrs, &objp->dom))
|
||
|
return FALSE;
|
||
|
if (!xdr_remote_nonnull_string (xdrs, &objp->to))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_domain_restore_args (XDR *xdrs, remote_domain_restore_args *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_remote_nonnull_string (xdrs, &objp->from))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_domain_core_dump_args (XDR *xdrs, remote_domain_core_dump_args *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_remote_nonnull_domain (xdrs, &objp->dom))
|
||
|
return FALSE;
|
||
|
if (!xdr_remote_nonnull_string (xdrs, &objp->to))
|
||
|
return FALSE;
|
||
|
if (!xdr_int (xdrs, &objp->flags))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_domain_dump_xml_args (XDR *xdrs, remote_domain_dump_xml_args *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_remote_nonnull_domain (xdrs, &objp->dom))
|
||
|
return FALSE;
|
||
|
if (!xdr_int (xdrs, &objp->flags))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_domain_dump_xml_ret (XDR *xdrs, remote_domain_dump_xml_ret *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_remote_nonnull_string (xdrs, &objp->xml))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_list_defined_domains_args (XDR *xdrs, remote_list_defined_domains_args *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_int (xdrs, &objp->maxnames))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_list_defined_domains_ret (XDR *xdrs, remote_list_defined_domains_ret *objp)
|
||
|
{
|
||
|
char **objp_cpp0 = (char **) (void *) &objp->names.names_val;
|
||
|
|
||
|
if (!xdr_array (xdrs, objp_cpp0, (u_int *) &objp->names.names_len, REMOTE_DOMAIN_NAME_LIST_MAX,
|
||
|
sizeof (remote_nonnull_string), (xdrproc_t) xdr_remote_nonnull_string))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_num_of_defined_domains_ret (XDR *xdrs, remote_num_of_defined_domains_ret *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_int (xdrs, &objp->num))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_domain_create_args (XDR *xdrs, remote_domain_create_args *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_remote_nonnull_domain (xdrs, &objp->dom))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_domain_define_xml_args (XDR *xdrs, remote_domain_define_xml_args *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_remote_nonnull_string (xdrs, &objp->xml))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_domain_define_xml_ret (XDR *xdrs, remote_domain_define_xml_ret *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_remote_nonnull_domain (xdrs, &objp->dom))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_domain_undefine_args (XDR *xdrs, remote_domain_undefine_args *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_remote_nonnull_domain (xdrs, &objp->dom))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_domain_set_vcpus_args (XDR *xdrs, remote_domain_set_vcpus_args *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_remote_nonnull_domain (xdrs, &objp->dom))
|
||
|
return FALSE;
|
||
|
if (!xdr_int (xdrs, &objp->nvcpus))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_domain_pin_vcpu_args (XDR *xdrs, remote_domain_pin_vcpu_args *objp)
|
||
|
{
|
||
|
char **objp_cpp0 = (char **) (void *) &objp->cpumap.cpumap_val;
|
||
|
|
||
|
if (!xdr_remote_nonnull_domain (xdrs, &objp->dom))
|
||
|
return FALSE;
|
||
|
if (!xdr_int (xdrs, &objp->vcpu))
|
||
|
return FALSE;
|
||
|
if (!xdr_bytes (xdrs, objp_cpp0, (u_int *) &objp->cpumap.cpumap_len, REMOTE_CPUMAP_MAX))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_domain_get_vcpus_args (XDR *xdrs, remote_domain_get_vcpus_args *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_remote_nonnull_domain (xdrs, &objp->dom))
|
||
|
return FALSE;
|
||
|
if (!xdr_int (xdrs, &objp->maxinfo))
|
||
|
return FALSE;
|
||
|
if (!xdr_int (xdrs, &objp->maplen))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_domain_get_vcpus_ret (XDR *xdrs, remote_domain_get_vcpus_ret *objp)
|
||
|
{
|
||
|
char **objp_cpp0 = (char **) (void *) &objp->info.info_val;
|
||
|
char **objp_cpp1 = (char **) (void *) &objp->cpumaps.cpumaps_val;
|
||
|
|
||
|
if (!xdr_array (xdrs, objp_cpp0, (u_int *) &objp->info.info_len, REMOTE_VCPUINFO_MAX,
|
||
|
sizeof (remote_vcpu_info), (xdrproc_t) xdr_remote_vcpu_info))
|
||
|
return FALSE;
|
||
|
if (!xdr_bytes (xdrs, objp_cpp1, (u_int *) &objp->cpumaps.cpumaps_len, REMOTE_CPUMAPS_MAX))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_domain_get_max_vcpus_args (XDR *xdrs, remote_domain_get_max_vcpus_args *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_remote_nonnull_domain (xdrs, &objp->dom))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_domain_get_max_vcpus_ret (XDR *xdrs, remote_domain_get_max_vcpus_ret *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_int (xdrs, &objp->num))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_domain_attach_device_args (XDR *xdrs, remote_domain_attach_device_args *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_remote_nonnull_domain (xdrs, &objp->dom))
|
||
|
return FALSE;
|
||
|
if (!xdr_remote_nonnull_string (xdrs, &objp->xml))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_domain_detach_device_args (XDR *xdrs, remote_domain_detach_device_args *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_remote_nonnull_domain (xdrs, &objp->dom))
|
||
|
return FALSE;
|
||
|
if (!xdr_remote_nonnull_string (xdrs, &objp->xml))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_domain_get_autostart_args (XDR *xdrs, remote_domain_get_autostart_args *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_remote_nonnull_domain (xdrs, &objp->dom))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_domain_get_autostart_ret (XDR *xdrs, remote_domain_get_autostart_ret *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_int (xdrs, &objp->autostart))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_domain_set_autostart_args (XDR *xdrs, remote_domain_set_autostart_args *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_remote_nonnull_domain (xdrs, &objp->dom))
|
||
|
return FALSE;
|
||
|
if (!xdr_int (xdrs, &objp->autostart))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_num_of_networks_ret (XDR *xdrs, remote_num_of_networks_ret *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_int (xdrs, &objp->num))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_list_networks_args (XDR *xdrs, remote_list_networks_args *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_int (xdrs, &objp->maxnames))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_list_networks_ret (XDR *xdrs, remote_list_networks_ret *objp)
|
||
|
{
|
||
|
char **objp_cpp0 = (char **) (void *) &objp->names.names_val;
|
||
|
|
||
|
if (!xdr_array (xdrs, objp_cpp0, (u_int *) &objp->names.names_len, REMOTE_NETWORK_NAME_LIST_MAX,
|
||
|
sizeof (remote_nonnull_string), (xdrproc_t) xdr_remote_nonnull_string))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_num_of_defined_networks_ret (XDR *xdrs, remote_num_of_defined_networks_ret *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_int (xdrs, &objp->num))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_list_defined_networks_args (XDR *xdrs, remote_list_defined_networks_args *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_int (xdrs, &objp->maxnames))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_list_defined_networks_ret (XDR *xdrs, remote_list_defined_networks_ret *objp)
|
||
|
{
|
||
|
char **objp_cpp0 = (char **) (void *) &objp->names.names_val;
|
||
|
|
||
|
if (!xdr_array (xdrs, objp_cpp0, (u_int *) &objp->names.names_len, REMOTE_NETWORK_NAME_LIST_MAX,
|
||
|
sizeof (remote_nonnull_string), (xdrproc_t) xdr_remote_nonnull_string))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_network_lookup_by_uuid_args (XDR *xdrs, remote_network_lookup_by_uuid_args *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_remote_uuid (xdrs, objp->uuid))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_network_lookup_by_uuid_ret (XDR *xdrs, remote_network_lookup_by_uuid_ret *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_remote_nonnull_network (xdrs, &objp->net))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_network_lookup_by_name_args (XDR *xdrs, remote_network_lookup_by_name_args *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_remote_nonnull_string (xdrs, &objp->name))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_network_lookup_by_name_ret (XDR *xdrs, remote_network_lookup_by_name_ret *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_remote_nonnull_network (xdrs, &objp->net))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_network_create_xml_args (XDR *xdrs, remote_network_create_xml_args *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_remote_nonnull_string (xdrs, &objp->xml))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_network_create_xml_ret (XDR *xdrs, remote_network_create_xml_ret *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_remote_nonnull_network (xdrs, &objp->net))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_network_define_xml_args (XDR *xdrs, remote_network_define_xml_args *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_remote_nonnull_string (xdrs, &objp->xml))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_network_define_xml_ret (XDR *xdrs, remote_network_define_xml_ret *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_remote_nonnull_network (xdrs, &objp->net))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_network_undefine_args (XDR *xdrs, remote_network_undefine_args *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_remote_nonnull_network (xdrs, &objp->net))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_network_create_args (XDR *xdrs, remote_network_create_args *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_remote_nonnull_network (xdrs, &objp->net))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_network_destroy_args (XDR *xdrs, remote_network_destroy_args *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_remote_nonnull_network (xdrs, &objp->net))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_network_dump_xml_args (XDR *xdrs, remote_network_dump_xml_args *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_remote_nonnull_network (xdrs, &objp->net))
|
||
|
return FALSE;
|
||
|
if (!xdr_int (xdrs, &objp->flags))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_network_dump_xml_ret (XDR *xdrs, remote_network_dump_xml_ret *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_remote_nonnull_string (xdrs, &objp->xml))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_network_get_bridge_name_args (XDR *xdrs, remote_network_get_bridge_name_args *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_remote_nonnull_network (xdrs, &objp->net))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_network_get_bridge_name_ret (XDR *xdrs, remote_network_get_bridge_name_ret *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_remote_nonnull_string (xdrs, &objp->name))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_network_get_autostart_args (XDR *xdrs, remote_network_get_autostart_args *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_remote_nonnull_network (xdrs, &objp->net))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_network_get_autostart_ret (XDR *xdrs, remote_network_get_autostart_ret *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_int (xdrs, &objp->autostart))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_network_set_autostart_args (XDR *xdrs, remote_network_set_autostart_args *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_remote_nonnull_network (xdrs, &objp->net))
|
||
|
return FALSE;
|
||
|
if (!xdr_int (xdrs, &objp->autostart))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_procedure (XDR *xdrs, remote_procedure *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_enum (xdrs, (enum_t *) objp))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_message_direction (XDR *xdrs, remote_message_direction *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_enum (xdrs, (enum_t *) objp))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_message_status (XDR *xdrs, remote_message_status *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_enum (xdrs, (enum_t *) objp))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
bool_t
|
||
|
xdr_remote_message_header (XDR *xdrs, remote_message_header *objp)
|
||
|
{
|
||
|
|
||
|
if (!xdr_u_int (xdrs, &objp->prog))
|
||
|
return FALSE;
|
||
|
if (!xdr_u_int (xdrs, &objp->vers))
|
||
|
return FALSE;
|
||
|
if (!xdr_remote_procedure (xdrs, &objp->proc))
|
||
|
return FALSE;
|
||
|
if (!xdr_remote_message_direction (xdrs, &objp->direction))
|
||
|
return FALSE;
|
||
|
if (!xdr_u_int (xdrs, &objp->serial))
|
||
|
return FALSE;
|
||
|
if (!xdr_remote_message_status (xdrs, &objp->status))
|
||
|
return FALSE;
|
||
|
return TRUE;
|
||
|
}
|