/* This file is auto-generated from ../src/admin/admin_protocol.x */

#include <config.h>
#include "admin_protocol.h"


void xdr_admin_nonnull_string_clear(admin_nonnull_string *objp)
{
    xdr_free((xdrproc_t)xdr_admin_nonnull_string, (char *)objp);
}


void xdr_admin_string_clear(admin_string *objp)
{
    xdr_free((xdrproc_t)xdr_admin_string, (char *)objp);
}


void xdr_admin_typed_param_value_clear(admin_typed_param_value *objp)
{
    xdr_free((xdrproc_t)xdr_admin_typed_param_value, (char *)objp);
}


void xdr_admin_typed_param_clear(admin_typed_param *objp)
{
    xdr_free((xdrproc_t)xdr_admin_typed_param, (char *)objp);
}


void xdr_admin_nonnull_server_clear(admin_nonnull_server *objp)
{
    xdr_free((xdrproc_t)xdr_admin_nonnull_server, (char *)objp);
}


void xdr_admin_nonnull_client_clear(admin_nonnull_client *objp)
{
    xdr_free((xdrproc_t)xdr_admin_nonnull_client, (char *)objp);
}


void xdr_admin_connect_open_args_clear(admin_connect_open_args *objp)
{
    xdr_free((xdrproc_t)xdr_admin_connect_open_args, (char *)objp);
}


void xdr_admin_connect_get_lib_version_ret_clear(admin_connect_get_lib_version_ret *objp)
{
    xdr_free((xdrproc_t)xdr_admin_connect_get_lib_version_ret, (char *)objp);
}


void xdr_admin_connect_list_servers_args_clear(admin_connect_list_servers_args *objp)
{
    xdr_free((xdrproc_t)xdr_admin_connect_list_servers_args, (char *)objp);
}


void xdr_admin_connect_list_servers_ret_clear(admin_connect_list_servers_ret *objp)
{
    xdr_free((xdrproc_t)xdr_admin_connect_list_servers_ret, (char *)objp);
}


void xdr_admin_connect_lookup_server_args_clear(admin_connect_lookup_server_args *objp)
{
    xdr_free((xdrproc_t)xdr_admin_connect_lookup_server_args, (char *)objp);
}


void xdr_admin_connect_lookup_server_ret_clear(admin_connect_lookup_server_ret *objp)
{
    xdr_free((xdrproc_t)xdr_admin_connect_lookup_server_ret, (char *)objp);
}


void xdr_admin_server_get_threadpool_parameters_args_clear(admin_server_get_threadpool_parameters_args *objp)
{
    xdr_free((xdrproc_t)xdr_admin_server_get_threadpool_parameters_args, (char *)objp);
}


void xdr_admin_server_get_threadpool_parameters_ret_clear(admin_server_get_threadpool_parameters_ret *objp)
{
    xdr_free((xdrproc_t)xdr_admin_server_get_threadpool_parameters_ret, (char *)objp);
}


void xdr_admin_server_set_threadpool_parameters_args_clear(admin_server_set_threadpool_parameters_args *objp)
{
    xdr_free((xdrproc_t)xdr_admin_server_set_threadpool_parameters_args, (char *)objp);
}


void xdr_admin_server_list_clients_args_clear(admin_server_list_clients_args *objp)
{
    xdr_free((xdrproc_t)xdr_admin_server_list_clients_args, (char *)objp);
}


void xdr_admin_server_list_clients_ret_clear(admin_server_list_clients_ret *objp)
{
    xdr_free((xdrproc_t)xdr_admin_server_list_clients_ret, (char *)objp);
}


void xdr_admin_server_lookup_client_args_clear(admin_server_lookup_client_args *objp)
{
    xdr_free((xdrproc_t)xdr_admin_server_lookup_client_args, (char *)objp);
}


void xdr_admin_server_lookup_client_ret_clear(admin_server_lookup_client_ret *objp)
{
    xdr_free((xdrproc_t)xdr_admin_server_lookup_client_ret, (char *)objp);
}


void xdr_admin_client_get_info_args_clear(admin_client_get_info_args *objp)
{
    xdr_free((xdrproc_t)xdr_admin_client_get_info_args, (char *)objp);
}


void xdr_admin_client_get_info_ret_clear(admin_client_get_info_ret *objp)
{
    xdr_free((xdrproc_t)xdr_admin_client_get_info_ret, (char *)objp);
}


void xdr_admin_client_close_args_clear(admin_client_close_args *objp)
{
    xdr_free((xdrproc_t)xdr_admin_client_close_args, (char *)objp);
}


void xdr_admin_server_get_client_limits_args_clear(admin_server_get_client_limits_args *objp)
{
    xdr_free((xdrproc_t)xdr_admin_server_get_client_limits_args, (char *)objp);
}


void xdr_admin_server_get_client_limits_ret_clear(admin_server_get_client_limits_ret *objp)
{
    xdr_free((xdrproc_t)xdr_admin_server_get_client_limits_ret, (char *)objp);
}


void xdr_admin_server_set_client_limits_args_clear(admin_server_set_client_limits_args *objp)
{
    xdr_free((xdrproc_t)xdr_admin_server_set_client_limits_args, (char *)objp);
}


void xdr_admin_server_update_tls_files_args_clear(admin_server_update_tls_files_args *objp)
{
    xdr_free((xdrproc_t)xdr_admin_server_update_tls_files_args, (char *)objp);
}


void xdr_admin_connect_get_logging_outputs_args_clear(admin_connect_get_logging_outputs_args *objp)
{
    xdr_free((xdrproc_t)xdr_admin_connect_get_logging_outputs_args, (char *)objp);
}


void xdr_admin_connect_get_logging_outputs_ret_clear(admin_connect_get_logging_outputs_ret *objp)
{
    xdr_free((xdrproc_t)xdr_admin_connect_get_logging_outputs_ret, (char *)objp);
}


void xdr_admin_connect_get_logging_filters_args_clear(admin_connect_get_logging_filters_args *objp)
{
    xdr_free((xdrproc_t)xdr_admin_connect_get_logging_filters_args, (char *)objp);
}


void xdr_admin_connect_get_logging_filters_ret_clear(admin_connect_get_logging_filters_ret *objp)
{
    xdr_free((xdrproc_t)xdr_admin_connect_get_logging_filters_ret, (char *)objp);
}


void xdr_admin_connect_set_logging_outputs_args_clear(admin_connect_set_logging_outputs_args *objp)
{
    xdr_free((xdrproc_t)xdr_admin_connect_set_logging_outputs_args, (char *)objp);
}


void xdr_admin_connect_set_logging_filters_args_clear(admin_connect_set_logging_filters_args *objp)
{
    xdr_free((xdrproc_t)xdr_admin_connect_set_logging_filters_args, (char *)objp);
}


void xdr_admin_connect_set_daemon_timeout_args_clear(admin_connect_set_daemon_timeout_args *objp)
{
    xdr_free((xdrproc_t)xdr_admin_connect_set_daemon_timeout_args, (char *)objp);
}


void xdr_admin_connect_daemon_shutdown_args_clear(admin_connect_daemon_shutdown_args *objp)
{
    xdr_free((xdrproc_t)xdr_admin_connect_daemon_shutdown_args, (char *)objp);
}

bool_t
xdr_admin_nonnull_string(XDR *xdrs, admin_nonnull_string *objp)
{
    if (!xdr_string(xdrs, objp, ADMIN_STRING_MAX))
        return FALSE;
    return TRUE;
}

bool_t
xdr_admin_string(XDR *xdrs, admin_string *objp)
{
    if (!xdr_pointer(xdrs, (char **)objp, sizeof(admin_nonnull_string), (xdrproc_t)xdr_admin_nonnull_string))
        return FALSE;
    return TRUE;
}

bool_t
xdr_admin_typed_param_value(XDR *xdrs, admin_typed_param_value *objp)
{
    if (!xdr_int(xdrs, &objp->type))
        return FALSE;
    switch (objp->type) {
    case VIR_TYPED_PARAM_INT:
        if (!xdr_int(xdrs, &objp->admin_typed_param_value_u.i))
            return FALSE;
        break;
    case VIR_TYPED_PARAM_UINT:
        if (!xdr_u_int(xdrs, &objp->admin_typed_param_value_u.ui))
            return FALSE;
        break;
    case VIR_TYPED_PARAM_LLONG:
        if (!xdr_int64_t(xdrs, &objp->admin_typed_param_value_u.l))
            return FALSE;
        break;
    case VIR_TYPED_PARAM_ULLONG:
        if (!xdr_uint64_t(xdrs, &objp->admin_typed_param_value_u.ul))
            return FALSE;
        break;
    case VIR_TYPED_PARAM_DOUBLE:
        if (!xdr_double(xdrs, &objp->admin_typed_param_value_u.d))
            return FALSE;
        break;
    case VIR_TYPED_PARAM_BOOLEAN:
        if (!xdr_int(xdrs, &objp->admin_typed_param_value_u.b))
            return FALSE;
        break;
    case VIR_TYPED_PARAM_STRING:
        if (!xdr_admin_nonnull_string(xdrs, &objp->admin_typed_param_value_u.s))
            return FALSE;
        break;
    default:
        return FALSE;
    }
    return TRUE;
}

bool_t
xdr_admin_typed_param(XDR *xdrs, admin_typed_param *objp)
{
    if (!xdr_admin_nonnull_string(xdrs, &objp->field))
        return FALSE;
    if (!xdr_admin_typed_param_value(xdrs, &objp->value))
        return FALSE;
    return TRUE;
}

bool_t
xdr_admin_nonnull_server(XDR *xdrs, admin_nonnull_server *objp)
{
    if (!xdr_admin_nonnull_string(xdrs, &objp->name))
        return FALSE;
    return TRUE;
}

bool_t
xdr_admin_nonnull_client(XDR *xdrs, admin_nonnull_client *objp)
{
    if (!xdr_admin_nonnull_server(xdrs, &objp->srv))
        return FALSE;
    if (!xdr_uint64_t(xdrs, &objp->id))
        return FALSE;
    if (!xdr_int64_t(xdrs, &objp->timestamp))
        return FALSE;
    if (!xdr_u_int(xdrs, &objp->transport))
        return FALSE;
    return TRUE;
}

bool_t
xdr_admin_connect_open_args(XDR *xdrs, admin_connect_open_args *objp)
{
    if (!xdr_u_int(xdrs, &objp->flags))
        return FALSE;
    return TRUE;
}

bool_t
xdr_admin_connect_get_lib_version_ret(XDR *xdrs, admin_connect_get_lib_version_ret *objp)
{
    if (!xdr_uint64_t(xdrs, &objp->libVer))
        return FALSE;
    return TRUE;
}

bool_t
xdr_admin_connect_list_servers_args(XDR *xdrs, admin_connect_list_servers_args *objp)
{
    if (!xdr_u_int(xdrs, &objp->need_results))
        return FALSE;
    if (!xdr_u_int(xdrs, &objp->flags))
        return FALSE;
    return TRUE;
}

bool_t
xdr_admin_connect_list_servers_ret(XDR *xdrs, admin_connect_list_servers_ret *objp)
{
    if (!xdr_array(xdrs, (char **)&objp->servers.servers_val, (u_int *) &objp->servers.servers_len, ADMIN_SERVER_LIST_MAX,
        sizeof(admin_nonnull_server), (xdrproc_t)xdr_admin_nonnull_server))
        return FALSE;
    if (!xdr_u_int(xdrs, &objp->ret))
        return FALSE;
    return TRUE;
}

bool_t
xdr_admin_connect_lookup_server_args(XDR *xdrs, admin_connect_lookup_server_args *objp)
{
    if (!xdr_admin_nonnull_string(xdrs, &objp->name))
        return FALSE;
    if (!xdr_u_int(xdrs, &objp->flags))
        return FALSE;
    return TRUE;
}

bool_t
xdr_admin_connect_lookup_server_ret(XDR *xdrs, admin_connect_lookup_server_ret *objp)
{
    if (!xdr_admin_nonnull_server(xdrs, &objp->srv))
        return FALSE;
    return TRUE;
}

bool_t
xdr_admin_server_get_threadpool_parameters_args(XDR *xdrs, admin_server_get_threadpool_parameters_args *objp)
{
    if (!xdr_admin_nonnull_server(xdrs, &objp->srv))
        return FALSE;
    if (!xdr_u_int(xdrs, &objp->flags))
        return FALSE;
    return TRUE;
}

bool_t
xdr_admin_server_get_threadpool_parameters_ret(XDR *xdrs, admin_server_get_threadpool_parameters_ret *objp)
{
    if (!xdr_array(xdrs, (char **)&objp->params.params_val, (u_int *) &objp->params.params_len, ADMIN_SERVER_THREADPOOL_PARAMETERS_MAX,
        sizeof(admin_typed_param), (xdrproc_t)xdr_admin_typed_param))
        return FALSE;
    return TRUE;
}

bool_t
xdr_admin_server_set_threadpool_parameters_args(XDR *xdrs, admin_server_set_threadpool_parameters_args *objp)
{
    if (!xdr_admin_nonnull_server(xdrs, &objp->srv))
        return FALSE;
    if (!xdr_array(xdrs, (char **)&objp->params.params_val, (u_int *) &objp->params.params_len, ADMIN_SERVER_THREADPOOL_PARAMETERS_MAX,
        sizeof(admin_typed_param), (xdrproc_t)xdr_admin_typed_param))
        return FALSE;
    if (!xdr_u_int(xdrs, &objp->flags))
        return FALSE;
    return TRUE;
}

bool_t
xdr_admin_server_list_clients_args(XDR *xdrs, admin_server_list_clients_args *objp)
{
    if (!xdr_admin_nonnull_server(xdrs, &objp->srv))
        return FALSE;
    if (!xdr_u_int(xdrs, &objp->need_results))
        return FALSE;
    if (!xdr_u_int(xdrs, &objp->flags))
        return FALSE;
    return TRUE;
}

bool_t
xdr_admin_server_list_clients_ret(XDR *xdrs, admin_server_list_clients_ret *objp)
{
    if (!xdr_array(xdrs, (char **)&objp->clients.clients_val, (u_int *) &objp->clients.clients_len, ADMIN_CLIENT_LIST_MAX,
        sizeof(admin_nonnull_client), (xdrproc_t)xdr_admin_nonnull_client))
        return FALSE;
    if (!xdr_u_int(xdrs, &objp->ret))
        return FALSE;
    return TRUE;
}

bool_t
xdr_admin_server_lookup_client_args(XDR *xdrs, admin_server_lookup_client_args *objp)
{
    if (!xdr_admin_nonnull_server(xdrs, &objp->srv))
        return FALSE;
    if (!xdr_uint64_t(xdrs, &objp->id))
        return FALSE;
    if (!xdr_u_int(xdrs, &objp->flags))
        return FALSE;
    return TRUE;
}

bool_t
xdr_admin_server_lookup_client_ret(XDR *xdrs, admin_server_lookup_client_ret *objp)
{
    if (!xdr_admin_nonnull_client(xdrs, &objp->clnt))
        return FALSE;
    return TRUE;
}

bool_t
xdr_admin_client_get_info_args(XDR *xdrs, admin_client_get_info_args *objp)
{
    if (!xdr_admin_nonnull_client(xdrs, &objp->clnt))
        return FALSE;
    if (!xdr_u_int(xdrs, &objp->flags))
        return FALSE;
    return TRUE;
}

bool_t
xdr_admin_client_get_info_ret(XDR *xdrs, admin_client_get_info_ret *objp)
{
    if (!xdr_array(xdrs, (char **)&objp->params.params_val, (u_int *) &objp->params.params_len, ADMIN_CLIENT_INFO_PARAMETERS_MAX,
        sizeof(admin_typed_param), (xdrproc_t)xdr_admin_typed_param))
        return FALSE;
    return TRUE;
}

bool_t
xdr_admin_client_close_args(XDR *xdrs, admin_client_close_args *objp)
{
    if (!xdr_admin_nonnull_client(xdrs, &objp->clnt))
        return FALSE;
    if (!xdr_u_int(xdrs, &objp->flags))
        return FALSE;
    return TRUE;
}

bool_t
xdr_admin_server_get_client_limits_args(XDR *xdrs, admin_server_get_client_limits_args *objp)
{
    if (!xdr_admin_nonnull_server(xdrs, &objp->srv))
        return FALSE;
    if (!xdr_u_int(xdrs, &objp->flags))
        return FALSE;
    return TRUE;
}

bool_t
xdr_admin_server_get_client_limits_ret(XDR *xdrs, admin_server_get_client_limits_ret *objp)
{
    if (!xdr_array(xdrs, (char **)&objp->params.params_val, (u_int *) &objp->params.params_len, ADMIN_SERVER_CLIENT_LIMITS_MAX,
        sizeof(admin_typed_param), (xdrproc_t)xdr_admin_typed_param))
        return FALSE;
    return TRUE;
}

bool_t
xdr_admin_server_set_client_limits_args(XDR *xdrs, admin_server_set_client_limits_args *objp)
{
    if (!xdr_admin_nonnull_server(xdrs, &objp->srv))
        return FALSE;
    if (!xdr_array(xdrs, (char **)&objp->params.params_val, (u_int *) &objp->params.params_len, ADMIN_SERVER_CLIENT_LIMITS_MAX,
        sizeof(admin_typed_param), (xdrproc_t)xdr_admin_typed_param))
        return FALSE;
    if (!xdr_u_int(xdrs, &objp->flags))
        return FALSE;
    return TRUE;
}

bool_t
xdr_admin_server_update_tls_files_args(XDR *xdrs, admin_server_update_tls_files_args *objp)
{
    if (!xdr_admin_nonnull_server(xdrs, &objp->srv))
        return FALSE;
    if (!xdr_u_int(xdrs, &objp->flags))
        return FALSE;
    return TRUE;
}

bool_t
xdr_admin_connect_get_logging_outputs_args(XDR *xdrs, admin_connect_get_logging_outputs_args *objp)
{
    if (!xdr_u_int(xdrs, &objp->flags))
        return FALSE;
    return TRUE;
}

bool_t
xdr_admin_connect_get_logging_outputs_ret(XDR *xdrs, admin_connect_get_logging_outputs_ret *objp)
{
    if (!xdr_admin_nonnull_string(xdrs, &objp->outputs))
        return FALSE;
    if (!xdr_u_int(xdrs, &objp->noutputs))
        return FALSE;
    return TRUE;
}

bool_t
xdr_admin_connect_get_logging_filters_args(XDR *xdrs, admin_connect_get_logging_filters_args *objp)
{
    if (!xdr_u_int(xdrs, &objp->flags))
        return FALSE;
    return TRUE;
}

bool_t
xdr_admin_connect_get_logging_filters_ret(XDR *xdrs, admin_connect_get_logging_filters_ret *objp)
{
    if (!xdr_admin_string(xdrs, &objp->filters))
        return FALSE;
    if (!xdr_u_int(xdrs, &objp->nfilters))
        return FALSE;
    return TRUE;
}

bool_t
xdr_admin_connect_set_logging_outputs_args(XDR *xdrs, admin_connect_set_logging_outputs_args *objp)
{
    if (!xdr_admin_string(xdrs, &objp->outputs))
        return FALSE;
    if (!xdr_u_int(xdrs, &objp->flags))
        return FALSE;
    return TRUE;
}

bool_t
xdr_admin_connect_set_logging_filters_args(XDR *xdrs, admin_connect_set_logging_filters_args *objp)
{
    if (!xdr_admin_string(xdrs, &objp->filters))
        return FALSE;
    if (!xdr_u_int(xdrs, &objp->flags))
        return FALSE;
    return TRUE;
}

bool_t
xdr_admin_connect_set_daemon_timeout_args(XDR *xdrs, admin_connect_set_daemon_timeout_args *objp)
{
    if (!xdr_u_int(xdrs, &objp->timeout))
        return FALSE;
    if (!xdr_u_int(xdrs, &objp->flags))
        return FALSE;
    return TRUE;
}

bool_t
xdr_admin_connect_daemon_shutdown_args(XDR *xdrs, admin_connect_daemon_shutdown_args *objp)
{
    if (!xdr_u_int(xdrs, &objp->flags))
        return FALSE;
    return TRUE;
}

bool_t
xdr_admin_procedure(XDR *xdrs, admin_procedure *objp)
{
    if (!xdr_enum(xdrs, (enum_t *)objp))
        return FALSE;
    return TRUE;
}

