#include /* This file was generated by PortableXDR rpcgen 4.9.1 * ANY CHANGES YOU MAKE TO THIS FILE MAY BE LOST! * The input file was remote_protocol.x */ #include "remote_protocol.h" #include "internal.h" #include #line 53 "remote_protocol.x" bool_t xdr_remote_nonnull_string (XDR *xdrs, remote_nonnull_string *objp) { if (!xdr_string (xdrs, objp, REMOTE_STRING_MAX)) return FALSE; return TRUE; } #line 56 "remote_protocol.x" bool_t xdr_remote_string (XDR *xdrs, remote_string *objp) { if (!xdr_pointer (xdrs, objp, sizeof (remote_nonnull_string), (xdrproc_t) xdr_remote_nonnull_string)) return FALSE; return TRUE; } #line 118 "remote_protocol.x" bool_t xdr_remote_uuid (XDR *xdrs, remote_uuid *objp) { if (!xdr_opaque (xdrs, &objp, VIR_UUID_BUFLEN)) return FALSE; return TRUE; } #line 125 "remote_protocol.x" 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; } #line 131 "remote_protocol.x" 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; } #line 137 "remote_protocol.x" bool_t xdr_remote_nonnull_storage_pool (XDR *xdrs, remote_nonnull_storage_pool *objp) { if (!xdr_remote_nonnull_string (xdrs, &objp->name)) return FALSE; if (!xdr_remote_uuid (xdrs, &objp->uuid)) return FALSE; return TRUE; } #line 144 "remote_protocol.x" bool_t xdr_remote_nonnull_storage_vol (XDR *xdrs, remote_nonnull_storage_vol *objp) { if (!xdr_remote_nonnull_string (xdrs, &objp->pool)) return FALSE; if (!xdr_remote_nonnull_string (xdrs, &objp->name)) return FALSE; if (!xdr_remote_nonnull_string (xdrs, &objp->key)) return FALSE; return TRUE; } #line 149 "remote_protocol.x" bool_t xdr_remote_nonnull_node_device (XDR *xdrs, remote_nonnull_node_device *objp) { if (!xdr_remote_nonnull_string (xdrs, &objp->name)) return FALSE; return TRUE; } #line 152 "remote_protocol.x" bool_t xdr_remote_domain (XDR *xdrs, remote_domain *objp) { if (!xdr_pointer (xdrs, objp, sizeof (remote_nonnull_domain), (xdrproc_t) xdr_remote_nonnull_domain)) return FALSE; return TRUE; } #line 153 "remote_protocol.x" bool_t xdr_remote_network (XDR *xdrs, remote_network *objp) { if (!xdr_pointer (xdrs, objp, sizeof (remote_nonnull_network), (xdrproc_t) xdr_remote_nonnull_network)) return FALSE; return TRUE; } #line 154 "remote_protocol.x" bool_t xdr_remote_storage_pool (XDR *xdrs, remote_storage_pool *objp) { if (!xdr_pointer (xdrs, objp, sizeof (remote_nonnull_storage_pool), (xdrproc_t) xdr_remote_nonnull_storage_pool)) return FALSE; return TRUE; } #line 155 "remote_protocol.x" bool_t xdr_remote_storage_vol (XDR *xdrs, remote_storage_vol *objp) { if (!xdr_pointer (xdrs, objp, sizeof (remote_nonnull_storage_vol), (xdrproc_t) xdr_remote_nonnull_storage_vol)) return FALSE; return TRUE; } #line 156 "remote_protocol.x" bool_t xdr_remote_node_device (XDR *xdrs, remote_node_device *objp) { if (!xdr_pointer (xdrs, objp, sizeof (remote_nonnull_node_device), (xdrproc_t) xdr_remote_nonnull_node_device)) return FALSE; return TRUE; } #line 178 "remote_protocol.x" 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; } #line 185 "remote_protocol.x" bool_t xdr_remote_auth_type (XDR *xdrs, remote_auth_type *objp) { if (!xdr_enum (xdrs, (enum_t *) objp)) return FALSE; return TRUE; } #line 194 "remote_protocol.x" 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; } #line 212 "remote_protocol.x" bool_t xdr_remote_sched_param_value (XDR *xdrs, remote_sched_param_value *objp) { if (!xdr_int (xdrs, &objp->type)) return FALSE; switch (objp->type) { case VIR_DOMAIN_SCHED_FIELD_INT: if (!xdr_int (xdrs, &objp->remote_sched_param_value_u.i)) return FALSE; break; case VIR_DOMAIN_SCHED_FIELD_UINT: if (!xdr_u_int (xdrs, &objp->remote_sched_param_value_u.ui)) return FALSE; break; case VIR_DOMAIN_SCHED_FIELD_LLONG: if (!xdr_quad_t (xdrs, &objp->remote_sched_param_value_u.l)) return FALSE; break; case VIR_DOMAIN_SCHED_FIELD_ULLONG: if (!xdr_u_quad_t (xdrs, &objp->remote_sched_param_value_u.ul)) return FALSE; break; case VIR_DOMAIN_SCHED_FIELD_DOUBLE: if (!xdr_double (xdrs, &objp->remote_sched_param_value_u.d)) return FALSE; break; case VIR_DOMAIN_SCHED_FIELD_BOOLEAN: if (!xdr_int (xdrs, &objp->remote_sched_param_value_u.b)) return FALSE; break; } return TRUE; } #line 217 "remote_protocol.x" bool_t xdr_remote_sched_param (XDR *xdrs, remote_sched_param *objp) { if (!xdr_remote_nonnull_string (xdrs, &objp->field)) return FALSE; if (!xdr_remote_sched_param_value (xdrs, &objp->value)) return FALSE; return TRUE; } #line 236 "remote_protocol.x" 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; } #line 240 "remote_protocol.x" bool_t xdr_remote_supports_feature_args (XDR *xdrs, remote_supports_feature_args *objp) { if (!xdr_int (xdrs, &objp->feature)) return FALSE; return TRUE; } #line 244 "remote_protocol.x" bool_t xdr_remote_supports_feature_ret (XDR *xdrs, remote_supports_feature_ret *objp) { if (!xdr_int (xdrs, &objp->supported)) return FALSE; return TRUE; } #line 248 "remote_protocol.x" 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; } #line 252 "remote_protocol.x" 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; } #line 256 "remote_protocol.x" bool_t xdr_remote_get_hostname_ret (XDR *xdrs, remote_get_hostname_ret *objp) { if (!xdr_remote_nonnull_string (xdrs, &objp->hostname)) return FALSE; return TRUE; } #line 260 "remote_protocol.x" bool_t xdr_remote_get_uri_ret (XDR *xdrs, remote_get_uri_ret *objp) { if (!xdr_remote_nonnull_string (xdrs, &objp->uri)) return FALSE; return TRUE; } #line 267 "remote_protocol.x" 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; } #line 271 "remote_protocol.x" 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; } #line 282 "remote_protocol.x" bool_t xdr_remote_node_get_info_ret (XDR *xdrs, remote_node_get_info_ret *objp) { if (!xdr_vector (xdrs, &objp->model, 32, 1, (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; } #line 286 "remote_protocol.x" 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; } #line 291 "remote_protocol.x" bool_t xdr_remote_node_get_cells_free_memory_args (XDR *xdrs, remote_node_get_cells_free_memory_args *objp) { if (!xdr_int (xdrs, &objp->startCell)) return FALSE; if (!xdr_int (xdrs, &objp->maxCells)) return FALSE; return TRUE; } #line 295 "remote_protocol.x" bool_t xdr_remote_node_get_cells_free_memory_ret (XDR *xdrs, remote_node_get_cells_free_memory_ret *objp) { if (!xdr_array (xdrs, &objp->freeMems.freeMems_val, &objp->freeMems.freeMems_len, REMOTE_NODE_MAX_CELLS, 8, (xdrproc_t) xdr_quad_t)) return FALSE; return TRUE; } #line 299 "remote_protocol.x" bool_t xdr_remote_node_get_free_memory_ret (XDR *xdrs, remote_node_get_free_memory_ret *objp) { if (!xdr_quad_t (xdrs, &objp->freeMem)) return FALSE; return TRUE; } #line 303 "remote_protocol.x" bool_t xdr_remote_domain_get_scheduler_type_args (XDR *xdrs, remote_domain_get_scheduler_type_args *objp) { if (!xdr_remote_nonnull_domain (xdrs, &objp->dom)) return FALSE; return TRUE; } #line 308 "remote_protocol.x" bool_t xdr_remote_domain_get_scheduler_type_ret (XDR *xdrs, remote_domain_get_scheduler_type_ret *objp) { if (!xdr_remote_nonnull_string (xdrs, &objp->type)) return FALSE; if (!xdr_int (xdrs, &objp->nparams)) return FALSE; return TRUE; } #line 313 "remote_protocol.x" bool_t xdr_remote_domain_get_scheduler_parameters_args (XDR *xdrs, remote_domain_get_scheduler_parameters_args *objp) { if (!xdr_remote_nonnull_domain (xdrs, &objp->dom)) return FALSE; if (!xdr_int (xdrs, &objp->nparams)) return FALSE; return TRUE; } #line 317 "remote_protocol.x" bool_t xdr_remote_domain_get_scheduler_parameters_ret (XDR *xdrs, remote_domain_get_scheduler_parameters_ret *objp) { if (!xdr_array (xdrs, &objp->params.params_val, &objp->params.params_len, REMOTE_DOMAIN_SCHEDULER_PARAMETERS_MAX, sizeof (remote_sched_param), (xdrproc_t) xdr_remote_sched_param)) return FALSE; return TRUE; } #line 322 "remote_protocol.x" bool_t xdr_remote_domain_set_scheduler_parameters_args (XDR *xdrs, remote_domain_set_scheduler_parameters_args *objp) { if (!xdr_remote_nonnull_domain (xdrs, &objp->dom)) return FALSE; if (!xdr_array (xdrs, &objp->params.params_val, &objp->params.params_len, REMOTE_DOMAIN_SCHEDULER_PARAMETERS_MAX, sizeof (remote_sched_param), (xdrproc_t) xdr_remote_sched_param)) return FALSE; return TRUE; } #line 327 "remote_protocol.x" bool_t xdr_remote_domain_block_stats_args (XDR *xdrs, remote_domain_block_stats_args *objp) { if (!xdr_remote_nonnull_domain (xdrs, &objp->dom)) return FALSE; if (!xdr_remote_nonnull_string (xdrs, &objp->path)) return FALSE; return TRUE; } #line 335 "remote_protocol.x" bool_t xdr_remote_domain_block_stats_ret (XDR *xdrs, remote_domain_block_stats_ret *objp) { if (!xdr_quad_t (xdrs, &objp->rd_req)) return FALSE; if (!xdr_quad_t (xdrs, &objp->rd_bytes)) return FALSE; if (!xdr_quad_t (xdrs, &objp->wr_req)) return FALSE; if (!xdr_quad_t (xdrs, &objp->wr_bytes)) return FALSE; if (!xdr_quad_t (xdrs, &objp->errs)) return FALSE; return TRUE; } #line 340 "remote_protocol.x" bool_t xdr_remote_domain_interface_stats_args (XDR *xdrs, remote_domain_interface_stats_args *objp) { if (!xdr_remote_nonnull_domain (xdrs, &objp->dom)) return FALSE; if (!xdr_remote_nonnull_string (xdrs, &objp->path)) return FALSE; return TRUE; } #line 351 "remote_protocol.x" bool_t xdr_remote_domain_interface_stats_ret (XDR *xdrs, remote_domain_interface_stats_ret *objp) { if (!xdr_quad_t (xdrs, &objp->rx_bytes)) return FALSE; if (!xdr_quad_t (xdrs, &objp->rx_packets)) return FALSE; if (!xdr_quad_t (xdrs, &objp->rx_errs)) return FALSE; if (!xdr_quad_t (xdrs, &objp->rx_drop)) return FALSE; if (!xdr_quad_t (xdrs, &objp->tx_bytes)) return FALSE; if (!xdr_quad_t (xdrs, &objp->tx_packets)) return FALSE; if (!xdr_quad_t (xdrs, &objp->tx_errs)) return FALSE; if (!xdr_quad_t (xdrs, &objp->tx_drop)) return FALSE; return TRUE; } #line 359 "remote_protocol.x" bool_t xdr_remote_domain_block_peek_args (XDR *xdrs, remote_domain_block_peek_args *objp) { if (!xdr_remote_nonnull_domain (xdrs, &objp->dom)) return FALSE; if (!xdr_remote_nonnull_string (xdrs, &objp->path)) return FALSE; if (!xdr_u_quad_t (xdrs, &objp->offset)) return FALSE; if (!xdr_u_int (xdrs, &objp->size)) return FALSE; if (!xdr_u_int (xdrs, &objp->flags)) return FALSE; return TRUE; } #line 363 "remote_protocol.x" bool_t xdr_remote_domain_block_peek_ret (XDR *xdrs, remote_domain_block_peek_ret *objp) { if (!xdr_bytes (xdrs, &objp->buffer.buffer_val, &objp->buffer.buffer_len, REMOTE_DOMAIN_BLOCK_PEEK_BUFFER_MAX)) return FALSE; return TRUE; } #line 370 "remote_protocol.x" bool_t xdr_remote_domain_memory_peek_args (XDR *xdrs, remote_domain_memory_peek_args *objp) { if (!xdr_remote_nonnull_domain (xdrs, &objp->dom)) return FALSE; if (!xdr_u_quad_t (xdrs, &objp->offset)) return FALSE; if (!xdr_u_int (xdrs, &objp->size)) return FALSE; if (!xdr_u_int (xdrs, &objp->flags)) return FALSE; return TRUE; } #line 374 "remote_protocol.x" bool_t xdr_remote_domain_memory_peek_ret (XDR *xdrs, remote_domain_memory_peek_ret *objp) { if (!xdr_bytes (xdrs, &objp->buffer.buffer_val, &objp->buffer.buffer_len, REMOTE_DOMAIN_MEMORY_PEEK_BUFFER_MAX)) return FALSE; return TRUE; } #line 378 "remote_protocol.x" bool_t xdr_remote_list_domains_args (XDR *xdrs, remote_list_domains_args *objp) { if (!xdr_int (xdrs, &objp->maxids)) return FALSE; return TRUE; } #line 382 "remote_protocol.x" bool_t xdr_remote_list_domains_ret (XDR *xdrs, remote_list_domains_ret *objp) { if (!xdr_array (xdrs, &objp->ids.ids_val, &objp->ids.ids_len, REMOTE_DOMAIN_ID_LIST_MAX, 4, (xdrproc_t) xdr_int)) return FALSE; return TRUE; } #line 386 "remote_protocol.x" 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; } #line 391 "remote_protocol.x" bool_t xdr_remote_domain_create_xml_args (XDR *xdrs, remote_domain_create_xml_args *objp) { if (!xdr_remote_nonnull_string (xdrs, &objp->xml_desc)) return FALSE; if (!xdr_int (xdrs, &objp->flags)) return FALSE; return TRUE; } #line 395 "remote_protocol.x" bool_t xdr_remote_domain_create_xml_ret (XDR *xdrs, remote_domain_create_xml_ret *objp) { if (!xdr_remote_nonnull_domain (xdrs, &objp->dom)) return FALSE; return TRUE; } #line 399 "remote_protocol.x" 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; } #line 403 "remote_protocol.x" 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; } #line 407 "remote_protocol.x" 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; } #line 411 "remote_protocol.x" 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; } #line 415 "remote_protocol.x" 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; } #line 419 "remote_protocol.x" 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; } #line 423 "remote_protocol.x" 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; } #line 427 "remote_protocol.x" 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; } #line 431 "remote_protocol.x" 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; } #line 436 "remote_protocol.x" 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; } #line 440 "remote_protocol.x" 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; } #line 444 "remote_protocol.x" 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; } #line 448 "remote_protocol.x" 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; } #line 452 "remote_protocol.x" 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; } #line 456 "remote_protocol.x" 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; } #line 461 "remote_protocol.x" 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; } #line 466 "remote_protocol.x" 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; } #line 470 "remote_protocol.x" 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; } #line 478 "remote_protocol.x" 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; } #line 483 "remote_protocol.x" 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; } #line 487 "remote_protocol.x" 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; } #line 493 "remote_protocol.x" 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; } #line 498 "remote_protocol.x" 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; } #line 502 "remote_protocol.x" 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; } #line 509 "remote_protocol.x" bool_t xdr_remote_domain_migrate_prepare_args (XDR *xdrs, remote_domain_migrate_prepare_args *objp) { if (!xdr_remote_string (xdrs, &objp->uri_in)) return FALSE; if (!xdr_u_quad_t (xdrs, &objp->flags)) return FALSE; if (!xdr_remote_string (xdrs, &objp->dname)) return FALSE; if (!xdr_u_quad_t (xdrs, &objp->resource)) return FALSE; return TRUE; } #line 514 "remote_protocol.x" bool_t xdr_remote_domain_migrate_prepare_ret (XDR *xdrs, remote_domain_migrate_prepare_ret *objp) { if (!xdr_bytes (xdrs, &objp->cookie.cookie_val, &objp->cookie.cookie_len, REMOTE_MIGRATE_COOKIE_MAX)) return FALSE; if (!xdr_remote_string (xdrs, &objp->uri_out)) return FALSE; return TRUE; } #line 523 "remote_protocol.x" bool_t xdr_remote_domain_migrate_perform_args (XDR *xdrs, remote_domain_migrate_perform_args *objp) { if (!xdr_remote_nonnull_domain (xdrs, &objp->dom)) return FALSE; if (!xdr_bytes (xdrs, &objp->cookie.cookie_val, &objp->cookie.cookie_len, REMOTE_MIGRATE_COOKIE_MAX)) return FALSE; if (!xdr_remote_nonnull_string (xdrs, &objp->uri)) return FALSE; if (!xdr_u_quad_t (xdrs, &objp->flags)) return FALSE; if (!xdr_remote_string (xdrs, &objp->dname)) return FALSE; if (!xdr_u_quad_t (xdrs, &objp->resource)) return FALSE; return TRUE; } #line 530 "remote_protocol.x" bool_t xdr_remote_domain_migrate_finish_args (XDR *xdrs, remote_domain_migrate_finish_args *objp) { if (!xdr_remote_nonnull_string (xdrs, &objp->dname)) return FALSE; if (!xdr_bytes (xdrs, &objp->cookie.cookie_val, &objp->cookie.cookie_len, REMOTE_MIGRATE_COOKIE_MAX)) return FALSE; if (!xdr_remote_nonnull_string (xdrs, &objp->uri)) return FALSE; if (!xdr_u_quad_t (xdrs, &objp->flags)) return FALSE; return TRUE; } #line 534 "remote_protocol.x" bool_t xdr_remote_domain_migrate_finish_ret (XDR *xdrs, remote_domain_migrate_finish_ret *objp) { if (!xdr_remote_nonnull_domain (xdrs, &objp->ddom)) return FALSE; return TRUE; } #line 542 "remote_protocol.x" bool_t xdr_remote_domain_migrate_prepare2_args (XDR *xdrs, remote_domain_migrate_prepare2_args *objp) { if (!xdr_remote_string (xdrs, &objp->uri_in)) return FALSE; if (!xdr_u_quad_t (xdrs, &objp->flags)) return FALSE; if (!xdr_remote_string (xdrs, &objp->dname)) return FALSE; if (!xdr_u_quad_t (xdrs, &objp->resource)) return FALSE; if (!xdr_remote_nonnull_string (xdrs, &objp->dom_xml)) return FALSE; return TRUE; } #line 547 "remote_protocol.x" bool_t xdr_remote_domain_migrate_prepare2_ret (XDR *xdrs, remote_domain_migrate_prepare2_ret *objp) { if (!xdr_bytes (xdrs, &objp->cookie.cookie_val, &objp->cookie.cookie_len, REMOTE_MIGRATE_COOKIE_MAX)) return FALSE; if (!xdr_remote_string (xdrs, &objp->uri_out)) return FALSE; return TRUE; } #line 555 "remote_protocol.x" bool_t xdr_remote_domain_migrate_finish2_args (XDR *xdrs, remote_domain_migrate_finish2_args *objp) { if (!xdr_remote_nonnull_string (xdrs, &objp->dname)) return FALSE; if (!xdr_bytes (xdrs, &objp->cookie.cookie_val, &objp->cookie.cookie_len, REMOTE_MIGRATE_COOKIE_MAX)) return FALSE; if (!xdr_remote_nonnull_string (xdrs, &objp->uri)) return FALSE; if (!xdr_u_quad_t (xdrs, &objp->flags)) return FALSE; if (!xdr_int (xdrs, &objp->retcode)) return FALSE; return TRUE; } #line 559 "remote_protocol.x" bool_t xdr_remote_domain_migrate_finish2_ret (XDR *xdrs, remote_domain_migrate_finish2_ret *objp) { if (!xdr_remote_nonnull_domain (xdrs, &objp->ddom)) return FALSE; return TRUE; } #line 563 "remote_protocol.x" 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; } #line 567 "remote_protocol.x" bool_t xdr_remote_list_defined_domains_ret (XDR *xdrs, remote_list_defined_domains_ret *objp) { if (!xdr_array (xdrs, &objp->names.names_val, &objp->names.names_len, REMOTE_DOMAIN_NAME_LIST_MAX, sizeof (remote_nonnull_string), (xdrproc_t) xdr_remote_nonnull_string)) return FALSE; return TRUE; } #line 571 "remote_protocol.x" 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; } #line 575 "remote_protocol.x" 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; } #line 579 "remote_protocol.x" 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; } #line 583 "remote_protocol.x" 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; } #line 587 "remote_protocol.x" 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; } #line 592 "remote_protocol.x" 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; } #line 598 "remote_protocol.x" bool_t xdr_remote_domain_pin_vcpu_args (XDR *xdrs, remote_domain_pin_vcpu_args *objp) { if (!xdr_remote_nonnull_domain (xdrs, &objp->dom)) return FALSE; if (!xdr_int (xdrs, &objp->vcpu)) return FALSE; if (!xdr_bytes (xdrs, &objp->cpumap.cpumap_val, &objp->cpumap.cpumap_len, REMOTE_CPUMAP_MAX)) return FALSE; return TRUE; } #line 604 "remote_protocol.x" 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; } #line 609 "remote_protocol.x" bool_t xdr_remote_domain_get_vcpus_ret (XDR *xdrs, remote_domain_get_vcpus_ret *objp) { if (!xdr_array (xdrs, &objp->info.info_val, &objp->info.info_len, REMOTE_VCPUINFO_MAX, sizeof (remote_vcpu_info), (xdrproc_t) xdr_remote_vcpu_info)) return FALSE; if (!xdr_bytes (xdrs, &objp->cpumaps.cpumaps_val, &objp->cpumaps.cpumaps_len, REMOTE_CPUMAPS_MAX)) return FALSE; return TRUE; } #line 613 "remote_protocol.x" 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; } #line 617 "remote_protocol.x" 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; } #line 622 "remote_protocol.x" 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; } #line 627 "remote_protocol.x" 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; } #line 631 "remote_protocol.x" 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; } #line 635 "remote_protocol.x" 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; } #line 640 "remote_protocol.x" 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; } #line 646 "remote_protocol.x" 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; } #line 650 "remote_protocol.x" bool_t xdr_remote_list_networks_args (XDR *xdrs, remote_list_networks_args *objp) { if (!xdr_int (xdrs, &objp->maxnames)) return FALSE; return TRUE; } #line 654 "remote_protocol.x" bool_t xdr_remote_list_networks_ret (XDR *xdrs, remote_list_networks_ret *objp) { if (!xdr_array (xdrs, &objp->names.names_val, &objp->names.names_len, REMOTE_NETWORK_NAME_LIST_MAX, sizeof (remote_nonnull_string), (xdrproc_t) xdr_remote_nonnull_string)) return FALSE; return TRUE; } #line 658 "remote_protocol.x" 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; } #line 662 "remote_protocol.x" 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; } #line 666 "remote_protocol.x" bool_t xdr_remote_list_defined_networks_ret (XDR *xdrs, remote_list_defined_networks_ret *objp) { if (!xdr_array (xdrs, &objp->names.names_val, &objp->names.names_len, REMOTE_NETWORK_NAME_LIST_MAX, sizeof (remote_nonnull_string), (xdrproc_t) xdr_remote_nonnull_string)) return FALSE; return TRUE; } #line 670 "remote_protocol.x" 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; } #line 674 "remote_protocol.x" 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; } #line 678 "remote_protocol.x" 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; } #line 682 "remote_protocol.x" 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; } #line 686 "remote_protocol.x" 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; } #line 690 "remote_protocol.x" 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; } #line 694 "remote_protocol.x" 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; } #line 698 "remote_protocol.x" 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; } #line 702 "remote_protocol.x" 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; } #line 706 "remote_protocol.x" 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; } #line 710 "remote_protocol.x" 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; } #line 715 "remote_protocol.x" 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; } #line 719 "remote_protocol.x" 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; } #line 723 "remote_protocol.x" 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; } #line 727 "remote_protocol.x" 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; } #line 731 "remote_protocol.x" 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; } #line 735 "remote_protocol.x" 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; } #line 740 "remote_protocol.x" 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; } #line 745 "remote_protocol.x" bool_t xdr_remote_auth_list_ret (XDR *xdrs, remote_auth_list_ret *objp) { if (!xdr_array (xdrs, &objp->types.types_val, &objp->types.types_len, REMOTE_AUTH_TYPE_LIST_MAX, sizeof (remote_auth_type), (xdrproc_t) xdr_remote_auth_type)) return FALSE; return TRUE; } #line 749 "remote_protocol.x" bool_t xdr_remote_auth_sasl_init_ret (XDR *xdrs, remote_auth_sasl_init_ret *objp) { if (!xdr_remote_nonnull_string (xdrs, &objp->mechlist)) return FALSE; return TRUE; } #line 755 "remote_protocol.x" bool_t xdr_remote_auth_sasl_start_args (XDR *xdrs, remote_auth_sasl_start_args *objp) { if (!xdr_remote_nonnull_string (xdrs, &objp->mech)) return FALSE; if (!xdr_int (xdrs, &objp->nil)) return FALSE; if (!xdr_array (xdrs, &objp->data.data_val, &objp->data.data_len, REMOTE_AUTH_SASL_DATA_MAX, 1, (xdrproc_t) xdr_char)) return FALSE; return TRUE; } #line 761 "remote_protocol.x" bool_t xdr_remote_auth_sasl_start_ret (XDR *xdrs, remote_auth_sasl_start_ret *objp) { if (!xdr_int (xdrs, &objp->complete)) return FALSE; if (!xdr_int (xdrs, &objp->nil)) return FALSE; if (!xdr_array (xdrs, &objp->data.data_val, &objp->data.data_len, REMOTE_AUTH_SASL_DATA_MAX, 1, (xdrproc_t) xdr_char)) return FALSE; return TRUE; } #line 766 "remote_protocol.x" bool_t xdr_remote_auth_sasl_step_args (XDR *xdrs, remote_auth_sasl_step_args *objp) { if (!xdr_int (xdrs, &objp->nil)) return FALSE; if (!xdr_array (xdrs, &objp->data.data_val, &objp->data.data_len, REMOTE_AUTH_SASL_DATA_MAX, 1, (xdrproc_t) xdr_char)) return FALSE; return TRUE; } #line 772 "remote_protocol.x" bool_t xdr_remote_auth_sasl_step_ret (XDR *xdrs, remote_auth_sasl_step_ret *objp) { if (!xdr_int (xdrs, &objp->complete)) return FALSE; if (!xdr_int (xdrs, &objp->nil)) return FALSE; if (!xdr_array (xdrs, &objp->data.data_val, &objp->data.data_len, REMOTE_AUTH_SASL_DATA_MAX, 1, (xdrproc_t) xdr_char)) return FALSE; return TRUE; } #line 776 "remote_protocol.x" bool_t xdr_remote_auth_polkit_ret (XDR *xdrs, remote_auth_polkit_ret *objp) { if (!xdr_int (xdrs, &objp->complete)) return FALSE; return TRUE; } #line 784 "remote_protocol.x" bool_t xdr_remote_num_of_storage_pools_ret (XDR *xdrs, remote_num_of_storage_pools_ret *objp) { if (!xdr_int (xdrs, &objp->num)) return FALSE; return TRUE; } #line 788 "remote_protocol.x" bool_t xdr_remote_list_storage_pools_args (XDR *xdrs, remote_list_storage_pools_args *objp) { if (!xdr_int (xdrs, &objp->maxnames)) return FALSE; return TRUE; } #line 792 "remote_protocol.x" bool_t xdr_remote_list_storage_pools_ret (XDR *xdrs, remote_list_storage_pools_ret *objp) { if (!xdr_array (xdrs, &objp->names.names_val, &objp->names.names_len, REMOTE_STORAGE_POOL_NAME_LIST_MAX, sizeof (remote_nonnull_string), (xdrproc_t) xdr_remote_nonnull_string)) return FALSE; return TRUE; } #line 796 "remote_protocol.x" bool_t xdr_remote_num_of_defined_storage_pools_ret (XDR *xdrs, remote_num_of_defined_storage_pools_ret *objp) { if (!xdr_int (xdrs, &objp->num)) return FALSE; return TRUE; } #line 800 "remote_protocol.x" bool_t xdr_remote_list_defined_storage_pools_args (XDR *xdrs, remote_list_defined_storage_pools_args *objp) { if (!xdr_int (xdrs, &objp->maxnames)) return FALSE; return TRUE; } #line 804 "remote_protocol.x" bool_t xdr_remote_list_defined_storage_pools_ret (XDR *xdrs, remote_list_defined_storage_pools_ret *objp) { if (!xdr_array (xdrs, &objp->names.names_val, &objp->names.names_len, REMOTE_STORAGE_POOL_NAME_LIST_MAX, sizeof (remote_nonnull_string), (xdrproc_t) xdr_remote_nonnull_string)) return FALSE; return TRUE; } #line 810 "remote_protocol.x" bool_t xdr_remote_find_storage_pool_sources_args (XDR *xdrs, remote_find_storage_pool_sources_args *objp) { if (!xdr_remote_nonnull_string (xdrs, &objp->type)) return FALSE; if (!xdr_remote_string (xdrs, &objp->srcSpec)) return FALSE; if (!xdr_u_int (xdrs, &objp->flags)) return FALSE; return TRUE; } #line 814 "remote_protocol.x" bool_t xdr_remote_find_storage_pool_sources_ret (XDR *xdrs, remote_find_storage_pool_sources_ret *objp) { if (!xdr_remote_nonnull_string (xdrs, &objp->xml)) return FALSE; return TRUE; } #line 818 "remote_protocol.x" bool_t xdr_remote_storage_pool_lookup_by_uuid_args (XDR *xdrs, remote_storage_pool_lookup_by_uuid_args *objp) { if (!xdr_remote_uuid (xdrs, &objp->uuid)) return FALSE; return TRUE; } #line 822 "remote_protocol.x" bool_t xdr_remote_storage_pool_lookup_by_uuid_ret (XDR *xdrs, remote_storage_pool_lookup_by_uuid_ret *objp) { if (!xdr_remote_nonnull_storage_pool (xdrs, &objp->pool)) return FALSE; return TRUE; } #line 826 "remote_protocol.x" bool_t xdr_remote_storage_pool_lookup_by_name_args (XDR *xdrs, remote_storage_pool_lookup_by_name_args *objp) { if (!xdr_remote_nonnull_string (xdrs, &objp->name)) return FALSE; return TRUE; } #line 830 "remote_protocol.x" bool_t xdr_remote_storage_pool_lookup_by_name_ret (XDR *xdrs, remote_storage_pool_lookup_by_name_ret *objp) { if (!xdr_remote_nonnull_storage_pool (xdrs, &objp->pool)) return FALSE; return TRUE; } #line 834 "remote_protocol.x" bool_t xdr_remote_storage_pool_lookup_by_volume_args (XDR *xdrs, remote_storage_pool_lookup_by_volume_args *objp) { if (!xdr_remote_nonnull_storage_vol (xdrs, &objp->vol)) return FALSE; return TRUE; } #line 838 "remote_protocol.x" bool_t xdr_remote_storage_pool_lookup_by_volume_ret (XDR *xdrs, remote_storage_pool_lookup_by_volume_ret *objp) { if (!xdr_remote_nonnull_storage_pool (xdrs, &objp->pool)) return FALSE; return TRUE; } #line 843 "remote_protocol.x" bool_t xdr_remote_storage_pool_create_xml_args (XDR *xdrs, remote_storage_pool_create_xml_args *objp) { if (!xdr_remote_nonnull_string (xdrs, &objp->xml)) return FALSE; if (!xdr_u_int (xdrs, &objp->flags)) return FALSE; return TRUE; } #line 847 "remote_protocol.x" bool_t xdr_remote_storage_pool_create_xml_ret (XDR *xdrs, remote_storage_pool_create_xml_ret *objp) { if (!xdr_remote_nonnull_storage_pool (xdrs, &objp->pool)) return FALSE; return TRUE; } #line 852 "remote_protocol.x" bool_t xdr_remote_storage_pool_define_xml_args (XDR *xdrs, remote_storage_pool_define_xml_args *objp) { if (!xdr_remote_nonnull_string (xdrs, &objp->xml)) return FALSE; if (!xdr_u_int (xdrs, &objp->flags)) return FALSE; return TRUE; } #line 856 "remote_protocol.x" bool_t xdr_remote_storage_pool_define_xml_ret (XDR *xdrs, remote_storage_pool_define_xml_ret *objp) { if (!xdr_remote_nonnull_storage_pool (xdrs, &objp->pool)) return FALSE; return TRUE; } #line 861 "remote_protocol.x" bool_t xdr_remote_storage_pool_build_args (XDR *xdrs, remote_storage_pool_build_args *objp) { if (!xdr_remote_nonnull_storage_pool (xdrs, &objp->pool)) return FALSE; if (!xdr_u_int (xdrs, &objp->flags)) return FALSE; return TRUE; } #line 865 "remote_protocol.x" bool_t xdr_remote_storage_pool_undefine_args (XDR *xdrs, remote_storage_pool_undefine_args *objp) { if (!xdr_remote_nonnull_storage_pool (xdrs, &objp->pool)) return FALSE; return TRUE; } #line 870 "remote_protocol.x" bool_t xdr_remote_storage_pool_create_args (XDR *xdrs, remote_storage_pool_create_args *objp) { if (!xdr_remote_nonnull_storage_pool (xdrs, &objp->pool)) return FALSE; if (!xdr_u_int (xdrs, &objp->flags)) return FALSE; return TRUE; } #line 874 "remote_protocol.x" bool_t xdr_remote_storage_pool_destroy_args (XDR *xdrs, remote_storage_pool_destroy_args *objp) { if (!xdr_remote_nonnull_storage_pool (xdrs, &objp->pool)) return FALSE; return TRUE; } #line 879 "remote_protocol.x" bool_t xdr_remote_storage_pool_delete_args (XDR *xdrs, remote_storage_pool_delete_args *objp) { if (!xdr_remote_nonnull_storage_pool (xdrs, &objp->pool)) return FALSE; if (!xdr_u_int (xdrs, &objp->flags)) return FALSE; return TRUE; } #line 884 "remote_protocol.x" bool_t xdr_remote_storage_pool_refresh_args (XDR *xdrs, remote_storage_pool_refresh_args *objp) { if (!xdr_remote_nonnull_storage_pool (xdrs, &objp->pool)) return FALSE; if (!xdr_u_int (xdrs, &objp->flags)) return FALSE; return TRUE; } #line 889 "remote_protocol.x" bool_t xdr_remote_storage_pool_dump_xml_args (XDR *xdrs, remote_storage_pool_dump_xml_args *objp) { if (!xdr_remote_nonnull_storage_pool (xdrs, &objp->pool)) return FALSE; if (!xdr_u_int (xdrs, &objp->flags)) return FALSE; return TRUE; } #line 893 "remote_protocol.x" bool_t xdr_remote_storage_pool_dump_xml_ret (XDR *xdrs, remote_storage_pool_dump_xml_ret *objp) { if (!xdr_remote_nonnull_string (xdrs, &objp->xml)) return FALSE; return TRUE; } #line 897 "remote_protocol.x" bool_t xdr_remote_storage_pool_get_info_args (XDR *xdrs, remote_storage_pool_get_info_args *objp) { if (!xdr_remote_nonnull_storage_pool (xdrs, &objp->pool)) return FALSE; return TRUE; } #line 904 "remote_protocol.x" bool_t xdr_remote_storage_pool_get_info_ret (XDR *xdrs, remote_storage_pool_get_info_ret *objp) { if (!xdr_u_char (xdrs, &objp->state)) return FALSE; if (!xdr_u_quad_t (xdrs, &objp->capacity)) return FALSE; if (!xdr_u_quad_t (xdrs, &objp->allocation)) return FALSE; if (!xdr_u_quad_t (xdrs, &objp->available)) return FALSE; return TRUE; } #line 908 "remote_protocol.x" bool_t xdr_remote_storage_pool_get_autostart_args (XDR *xdrs, remote_storage_pool_get_autostart_args *objp) { if (!xdr_remote_nonnull_storage_pool (xdrs, &objp->pool)) return FALSE; return TRUE; } #line 912 "remote_protocol.x" bool_t xdr_remote_storage_pool_get_autostart_ret (XDR *xdrs, remote_storage_pool_get_autostart_ret *objp) { if (!xdr_int (xdrs, &objp->autostart)) return FALSE; return TRUE; } #line 917 "remote_protocol.x" bool_t xdr_remote_storage_pool_set_autostart_args (XDR *xdrs, remote_storage_pool_set_autostart_args *objp) { if (!xdr_remote_nonnull_storage_pool (xdrs, &objp->pool)) return FALSE; if (!xdr_int (xdrs, &objp->autostart)) return FALSE; return TRUE; } #line 921 "remote_protocol.x" bool_t xdr_remote_storage_pool_num_of_volumes_args (XDR *xdrs, remote_storage_pool_num_of_volumes_args *objp) { if (!xdr_remote_nonnull_storage_pool (xdrs, &objp->pool)) return FALSE; return TRUE; } #line 925 "remote_protocol.x" bool_t xdr_remote_storage_pool_num_of_volumes_ret (XDR *xdrs, remote_storage_pool_num_of_volumes_ret *objp) { if (!xdr_int (xdrs, &objp->num)) return FALSE; return TRUE; } #line 930 "remote_protocol.x" bool_t xdr_remote_storage_pool_list_volumes_args (XDR *xdrs, remote_storage_pool_list_volumes_args *objp) { if (!xdr_remote_nonnull_storage_pool (xdrs, &objp->pool)) return FALSE; if (!xdr_int (xdrs, &objp->maxnames)) return FALSE; return TRUE; } #line 934 "remote_protocol.x" bool_t xdr_remote_storage_pool_list_volumes_ret (XDR *xdrs, remote_storage_pool_list_volumes_ret *objp) { if (!xdr_array (xdrs, &objp->names.names_val, &objp->names.names_len, REMOTE_STORAGE_VOL_NAME_LIST_MAX, sizeof (remote_nonnull_string), (xdrproc_t) xdr_remote_nonnull_string)) return FALSE; return TRUE; } #line 943 "remote_protocol.x" bool_t xdr_remote_storage_vol_lookup_by_name_args (XDR *xdrs, remote_storage_vol_lookup_by_name_args *objp) { if (!xdr_remote_nonnull_storage_pool (xdrs, &objp->pool)) return FALSE; if (!xdr_remote_nonnull_string (xdrs, &objp->name)) return FALSE; return TRUE; } #line 947 "remote_protocol.x" bool_t xdr_remote_storage_vol_lookup_by_name_ret (XDR *xdrs, remote_storage_vol_lookup_by_name_ret *objp) { if (!xdr_remote_nonnull_storage_vol (xdrs, &objp->vol)) return FALSE; return TRUE; } #line 951 "remote_protocol.x" bool_t xdr_remote_storage_vol_lookup_by_key_args (XDR *xdrs, remote_storage_vol_lookup_by_key_args *objp) { if (!xdr_remote_nonnull_string (xdrs, &objp->key)) return FALSE; return TRUE; } #line 955 "remote_protocol.x" bool_t xdr_remote_storage_vol_lookup_by_key_ret (XDR *xdrs, remote_storage_vol_lookup_by_key_ret *objp) { if (!xdr_remote_nonnull_storage_vol (xdrs, &objp->vol)) return FALSE; return TRUE; } #line 959 "remote_protocol.x" bool_t xdr_remote_storage_vol_lookup_by_path_args (XDR *xdrs, remote_storage_vol_lookup_by_path_args *objp) { if (!xdr_remote_nonnull_string (xdrs, &objp->path)) return FALSE; return TRUE; } #line 963 "remote_protocol.x" bool_t xdr_remote_storage_vol_lookup_by_path_ret (XDR *xdrs, remote_storage_vol_lookup_by_path_ret *objp) { if (!xdr_remote_nonnull_storage_vol (xdrs, &objp->vol)) return FALSE; return TRUE; } #line 969 "remote_protocol.x" bool_t xdr_remote_storage_vol_create_xml_args (XDR *xdrs, remote_storage_vol_create_xml_args *objp) { if (!xdr_remote_nonnull_storage_pool (xdrs, &objp->pool)) return FALSE; if (!xdr_remote_nonnull_string (xdrs, &objp->xml)) return FALSE; if (!xdr_u_int (xdrs, &objp->flags)) return FALSE; return TRUE; } #line 973 "remote_protocol.x" bool_t xdr_remote_storage_vol_create_xml_ret (XDR *xdrs, remote_storage_vol_create_xml_ret *objp) { if (!xdr_remote_nonnull_storage_vol (xdrs, &objp->vol)) return FALSE; return TRUE; } #line 978 "remote_protocol.x" bool_t xdr_remote_storage_vol_delete_args (XDR *xdrs, remote_storage_vol_delete_args *objp) { if (!xdr_remote_nonnull_storage_vol (xdrs, &objp->vol)) return FALSE; if (!xdr_u_int (xdrs, &objp->flags)) return FALSE; return TRUE; } #line 983 "remote_protocol.x" bool_t xdr_remote_storage_vol_dump_xml_args (XDR *xdrs, remote_storage_vol_dump_xml_args *objp) { if (!xdr_remote_nonnull_storage_vol (xdrs, &objp->vol)) return FALSE; if (!xdr_u_int (xdrs, &objp->flags)) return FALSE; return TRUE; } #line 987 "remote_protocol.x" bool_t xdr_remote_storage_vol_dump_xml_ret (XDR *xdrs, remote_storage_vol_dump_xml_ret *objp) { if (!xdr_remote_nonnull_string (xdrs, &objp->xml)) return FALSE; return TRUE; } #line 991 "remote_protocol.x" bool_t xdr_remote_storage_vol_get_info_args (XDR *xdrs, remote_storage_vol_get_info_args *objp) { if (!xdr_remote_nonnull_storage_vol (xdrs, &objp->vol)) return FALSE; return TRUE; } #line 997 "remote_protocol.x" bool_t xdr_remote_storage_vol_get_info_ret (XDR *xdrs, remote_storage_vol_get_info_ret *objp) { if (!xdr_char (xdrs, &objp->type)) return FALSE; if (!xdr_u_quad_t (xdrs, &objp->capacity)) return FALSE; if (!xdr_u_quad_t (xdrs, &objp->allocation)) return FALSE; return TRUE; } #line 1001 "remote_protocol.x" bool_t xdr_remote_storage_vol_get_path_args (XDR *xdrs, remote_storage_vol_get_path_args *objp) { if (!xdr_remote_nonnull_storage_vol (xdrs, &objp->vol)) return FALSE; return TRUE; } #line 1005 "remote_protocol.x" bool_t xdr_remote_storage_vol_get_path_ret (XDR *xdrs, remote_storage_vol_get_path_ret *objp) { if (!xdr_remote_nonnull_string (xdrs, &objp->name)) return FALSE; return TRUE; } #line 1012 "remote_protocol.x" bool_t xdr_remote_node_num_of_devices_args (XDR *xdrs, remote_node_num_of_devices_args *objp) { if (!xdr_remote_string (xdrs, &objp->cap)) return FALSE; if (!xdr_u_int (xdrs, &objp->flags)) return FALSE; return TRUE; } #line 1016 "remote_protocol.x" bool_t xdr_remote_node_num_of_devices_ret (XDR *xdrs, remote_node_num_of_devices_ret *objp) { if (!xdr_int (xdrs, &objp->num)) return FALSE; return TRUE; } #line 1022 "remote_protocol.x" bool_t xdr_remote_node_list_devices_args (XDR *xdrs, remote_node_list_devices_args *objp) { if (!xdr_remote_string (xdrs, &objp->cap)) return FALSE; if (!xdr_int (xdrs, &objp->maxnames)) return FALSE; if (!xdr_u_int (xdrs, &objp->flags)) return FALSE; return TRUE; } #line 1026 "remote_protocol.x" bool_t xdr_remote_node_list_devices_ret (XDR *xdrs, remote_node_list_devices_ret *objp) { if (!xdr_array (xdrs, &objp->names.names_val, &objp->names.names_len, REMOTE_NODE_DEVICE_NAME_LIST_MAX, sizeof (remote_nonnull_string), (xdrproc_t) xdr_remote_nonnull_string)) return FALSE; return TRUE; } #line 1030 "remote_protocol.x" bool_t xdr_remote_node_device_lookup_by_name_args (XDR *xdrs, remote_node_device_lookup_by_name_args *objp) { if (!xdr_remote_nonnull_string (xdrs, &objp->name)) return FALSE; return TRUE; } #line 1034 "remote_protocol.x" bool_t xdr_remote_node_device_lookup_by_name_ret (XDR *xdrs, remote_node_device_lookup_by_name_ret *objp) { if (!xdr_remote_nonnull_node_device (xdrs, &objp->dev)) return FALSE; return TRUE; } #line 1039 "remote_protocol.x" bool_t xdr_remote_node_device_dump_xml_args (XDR *xdrs, remote_node_device_dump_xml_args *objp) { if (!xdr_remote_nonnull_string (xdrs, &objp->name)) return FALSE; if (!xdr_u_int (xdrs, &objp->flags)) return FALSE; return TRUE; } #line 1043 "remote_protocol.x" bool_t xdr_remote_node_device_dump_xml_ret (XDR *xdrs, remote_node_device_dump_xml_ret *objp) { if (!xdr_remote_nonnull_string (xdrs, &objp->xml)) return FALSE; return TRUE; } #line 1047 "remote_protocol.x" bool_t xdr_remote_node_device_get_parent_args (XDR *xdrs, remote_node_device_get_parent_args *objp) { if (!xdr_remote_nonnull_string (xdrs, &objp->name)) return FALSE; return TRUE; } #line 1051 "remote_protocol.x" bool_t xdr_remote_node_device_get_parent_ret (XDR *xdrs, remote_node_device_get_parent_ret *objp) { if (!xdr_remote_string (xdrs, &objp->parent)) return FALSE; return TRUE; } #line 1055 "remote_protocol.x" bool_t xdr_remote_node_device_num_of_caps_args (XDR *xdrs, remote_node_device_num_of_caps_args *objp) { if (!xdr_remote_nonnull_string (xdrs, &objp->name)) return FALSE; return TRUE; } #line 1059 "remote_protocol.x" bool_t xdr_remote_node_device_num_of_caps_ret (XDR *xdrs, remote_node_device_num_of_caps_ret *objp) { if (!xdr_int (xdrs, &objp->num)) return FALSE; return TRUE; } #line 1064 "remote_protocol.x" bool_t xdr_remote_node_device_list_caps_args (XDR *xdrs, remote_node_device_list_caps_args *objp) { if (!xdr_remote_nonnull_string (xdrs, &objp->name)) return FALSE; if (!xdr_int (xdrs, &objp->maxnames)) return FALSE; return TRUE; } #line 1068 "remote_protocol.x" bool_t xdr_remote_node_device_list_caps_ret (XDR *xdrs, remote_node_device_list_caps_ret *objp) { if (!xdr_array (xdrs, &objp->names.names_val, &objp->names.names_len, REMOTE_NODE_DEVICE_CAPS_LIST_MAX, sizeof (remote_nonnull_string), (xdrproc_t) xdr_remote_nonnull_string)) return FALSE; return TRUE; } #line 1079 "remote_protocol.x" bool_t xdr_remote_domain_events_register_ret (XDR *xdrs, remote_domain_events_register_ret *objp) { if (!xdr_int (xdrs, &objp->cb_registered)) return FALSE; return TRUE; } #line 1083 "remote_protocol.x" bool_t xdr_remote_domain_events_deregister_ret (XDR *xdrs, remote_domain_events_deregister_ret *objp) { if (!xdr_int (xdrs, &objp->cb_registered)) return FALSE; return TRUE; } #line 1089 "remote_protocol.x" bool_t xdr_remote_domain_event_ret (XDR *xdrs, remote_domain_event_ret *objp) { if (!xdr_remote_nonnull_domain (xdrs, &objp->dom)) return FALSE; if (!xdr_int (xdrs, &objp->event)) return FALSE; if (!xdr_int (xdrs, &objp->detail)) return FALSE; return TRUE; } #line 1226 "remote_protocol.x" bool_t xdr_remote_procedure (XDR *xdrs, remote_procedure *objp) { if (!xdr_enum (xdrs, (enum_t *) objp)) return FALSE; return TRUE; } #line 1245 "remote_protocol.x" bool_t xdr_remote_message_direction (XDR *xdrs, remote_message_direction *objp) { if (!xdr_enum (xdrs, (enum_t *) objp)) return FALSE; return TRUE; } #line 1257 "remote_protocol.x" bool_t xdr_remote_message_status (XDR *xdrs, remote_message_status *objp) { if (!xdr_enum (xdrs, (enum_t *) objp)) return FALSE; return TRUE; } #line 1269 "remote_protocol.x" 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; } #line 1270 "remote_protocol.x" /* EOF */