/* This file is auto-generated from ../src/locking/lock_protocol.x */

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


void xdr_virLockSpaceProtocolUUID_clear(virLockSpaceProtocolUUID *objp)
{
    xdr_free((xdrproc_t)xdr_virLockSpaceProtocolUUID, (char *)objp);
}


void xdr_virLockSpaceProtocolNonNullString_clear(virLockSpaceProtocolNonNullString *objp)
{
    xdr_free((xdrproc_t)xdr_virLockSpaceProtocolNonNullString, (char *)objp);
}


void xdr_virLockSpaceProtocolString_clear(virLockSpaceProtocolString *objp)
{
    xdr_free((xdrproc_t)xdr_virLockSpaceProtocolString, (char *)objp);
}


void xdr_virLockSpaceProtocolOwner_clear(virLockSpaceProtocolOwner *objp)
{
    xdr_free((xdrproc_t)xdr_virLockSpaceProtocolOwner, (char *)objp);
}


void xdr_virLockSpaceProtocolRegisterArgs_clear(virLockSpaceProtocolRegisterArgs *objp)
{
    xdr_free((xdrproc_t)xdr_virLockSpaceProtocolRegisterArgs, (char *)objp);
}


void xdr_virLockSpaceProtocolRestrictArgs_clear(virLockSpaceProtocolRestrictArgs *objp)
{
    xdr_free((xdrproc_t)xdr_virLockSpaceProtocolRestrictArgs, (char *)objp);
}


void xdr_virLockSpaceProtocolNewArgs_clear(virLockSpaceProtocolNewArgs *objp)
{
    xdr_free((xdrproc_t)xdr_virLockSpaceProtocolNewArgs, (char *)objp);
}


void xdr_virLockSpaceProtocolCreateResourceArgs_clear(virLockSpaceProtocolCreateResourceArgs *objp)
{
    xdr_free((xdrproc_t)xdr_virLockSpaceProtocolCreateResourceArgs, (char *)objp);
}


void xdr_virLockSpaceProtocolDeleteResourceArgs_clear(virLockSpaceProtocolDeleteResourceArgs *objp)
{
    xdr_free((xdrproc_t)xdr_virLockSpaceProtocolDeleteResourceArgs, (char *)objp);
}


void xdr_virLockSpaceProtocolAcquireResourceArgs_clear(virLockSpaceProtocolAcquireResourceArgs *objp)
{
    xdr_free((xdrproc_t)xdr_virLockSpaceProtocolAcquireResourceArgs, (char *)objp);
}


void xdr_virLockSpaceProtocolReleaseResourceArgs_clear(virLockSpaceProtocolReleaseResourceArgs *objp)
{
    xdr_free((xdrproc_t)xdr_virLockSpaceProtocolReleaseResourceArgs, (char *)objp);
}


void xdr_virLockSpaceProtocolCreateLockSpaceArgs_clear(virLockSpaceProtocolCreateLockSpaceArgs *objp)
{
    xdr_free((xdrproc_t)xdr_virLockSpaceProtocolCreateLockSpaceArgs, (char *)objp);
}

bool_t
xdr_virLockSpaceProtocolUUID(XDR *xdrs, virLockSpaceProtocolUUID objp)
{
    if (!xdr_opaque(xdrs, objp, VIR_UUID_BUFLEN))
        return FALSE;
    return TRUE;
}

bool_t
xdr_virLockSpaceProtocolNonNullString(XDR *xdrs, virLockSpaceProtocolNonNullString *objp)
{
    if (!xdr_string(xdrs, objp, VIR_LOCK_SPACE_PROTOCOL_STRING_MAX))
        return FALSE;
    return TRUE;
}

bool_t
xdr_virLockSpaceProtocolString(XDR *xdrs, virLockSpaceProtocolString *objp)
{
    if (!xdr_pointer(xdrs, (char **)objp, sizeof(virLockSpaceProtocolNonNullString), (xdrproc_t)xdr_virLockSpaceProtocolNonNullString))
        return FALSE;
    return TRUE;
}

bool_t
xdr_virLockSpaceProtocolOwner(XDR *xdrs, virLockSpaceProtocolOwner *objp)
{
    if (!xdr_virLockSpaceProtocolUUID(xdrs, objp->uuid))
        return FALSE;
    if (!xdr_virLockSpaceProtocolNonNullString(xdrs, &objp->name))
        return FALSE;
    if (!xdr_u_int(xdrs, &objp->id))
        return FALSE;
    if (!xdr_u_int(xdrs, &objp->pid))
        return FALSE;
    return TRUE;
}

bool_t
xdr_virLockSpaceProtocolRegisterArgs(XDR *xdrs, virLockSpaceProtocolRegisterArgs *objp)
{
    if (!xdr_virLockSpaceProtocolOwner(xdrs, &objp->owner))
        return FALSE;
    if (!xdr_u_int(xdrs, &objp->flags))
        return FALSE;
    return TRUE;
}

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

bool_t
xdr_virLockSpaceProtocolNewArgs(XDR *xdrs, virLockSpaceProtocolNewArgs *objp)
{
    if (!xdr_virLockSpaceProtocolNonNullString(xdrs, &objp->path))
        return FALSE;
    if (!xdr_u_int(xdrs, &objp->flags))
        return FALSE;
    return TRUE;
}

bool_t
xdr_virLockSpaceProtocolCreateResourceArgs(XDR *xdrs, virLockSpaceProtocolCreateResourceArgs *objp)
{
    if (!xdr_virLockSpaceProtocolNonNullString(xdrs, &objp->path))
        return FALSE;
    if (!xdr_virLockSpaceProtocolNonNullString(xdrs, &objp->name))
        return FALSE;
    if (!xdr_u_int(xdrs, &objp->flags))
        return FALSE;
    return TRUE;
}

bool_t
xdr_virLockSpaceProtocolDeleteResourceArgs(XDR *xdrs, virLockSpaceProtocolDeleteResourceArgs *objp)
{
    if (!xdr_virLockSpaceProtocolNonNullString(xdrs, &objp->path))
        return FALSE;
    if (!xdr_virLockSpaceProtocolNonNullString(xdrs, &objp->name))
        return FALSE;
    if (!xdr_u_int(xdrs, &objp->flags))
        return FALSE;
    return TRUE;
}

bool_t
xdr_virLockSpaceProtocolAcquireResourceArgs(XDR *xdrs, virLockSpaceProtocolAcquireResourceArgs *objp)
{
    if (!xdr_virLockSpaceProtocolNonNullString(xdrs, &objp->path))
        return FALSE;
    if (!xdr_virLockSpaceProtocolNonNullString(xdrs, &objp->name))
        return FALSE;
    if (!xdr_u_int(xdrs, &objp->flags))
        return FALSE;
    return TRUE;
}

bool_t
xdr_virLockSpaceProtocolReleaseResourceArgs(XDR *xdrs, virLockSpaceProtocolReleaseResourceArgs *objp)
{
    if (!xdr_virLockSpaceProtocolNonNullString(xdrs, &objp->path))
        return FALSE;
    if (!xdr_virLockSpaceProtocolNonNullString(xdrs, &objp->name))
        return FALSE;
    if (!xdr_u_int(xdrs, &objp->flags))
        return FALSE;
    return TRUE;
}

bool_t
xdr_virLockSpaceProtocolCreateLockSpaceArgs(XDR *xdrs, virLockSpaceProtocolCreateLockSpaceArgs *objp)
{
    if (!xdr_virLockSpaceProtocolNonNullString(xdrs, &objp->path))
        return FALSE;
    return TRUE;
}

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

