/* This file is auto-generated from ../src/logging/log_protocol.x */

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


void xdr_virLogManagerProtocolUUID_clear(virLogManagerProtocolUUID *objp)
{
    xdr_free((xdrproc_t)xdr_virLogManagerProtocolUUID, (char *)objp);
}


void xdr_virLogManagerProtocolNonNullString_clear(virLogManagerProtocolNonNullString *objp)
{
    xdr_free((xdrproc_t)xdr_virLogManagerProtocolNonNullString, (char *)objp);
}


void xdr_virLogManagerProtocolString_clear(virLogManagerProtocolString *objp)
{
    xdr_free((xdrproc_t)xdr_virLogManagerProtocolString, (char *)objp);
}


void xdr_virLogManagerProtocolDomain_clear(virLogManagerProtocolDomain *objp)
{
    xdr_free((xdrproc_t)xdr_virLogManagerProtocolDomain, (char *)objp);
}


void xdr_virLogManagerProtocolLogFilePosition_clear(virLogManagerProtocolLogFilePosition *objp)
{
    xdr_free((xdrproc_t)xdr_virLogManagerProtocolLogFilePosition, (char *)objp);
}


void xdr_virLogManagerProtocolDomainOpenLogFileArgs_clear(virLogManagerProtocolDomainOpenLogFileArgs *objp)
{
    xdr_free((xdrproc_t)xdr_virLogManagerProtocolDomainOpenLogFileArgs, (char *)objp);
}


void xdr_virLogManagerProtocolDomainOpenLogFileRet_clear(virLogManagerProtocolDomainOpenLogFileRet *objp)
{
    xdr_free((xdrproc_t)xdr_virLogManagerProtocolDomainOpenLogFileRet, (char *)objp);
}


void xdr_virLogManagerProtocolDomainGetLogFilePositionArgs_clear(virLogManagerProtocolDomainGetLogFilePositionArgs *objp)
{
    xdr_free((xdrproc_t)xdr_virLogManagerProtocolDomainGetLogFilePositionArgs, (char *)objp);
}


void xdr_virLogManagerProtocolDomainGetLogFilePositionRet_clear(virLogManagerProtocolDomainGetLogFilePositionRet *objp)
{
    xdr_free((xdrproc_t)xdr_virLogManagerProtocolDomainGetLogFilePositionRet, (char *)objp);
}


void xdr_virLogManagerProtocolDomainReadLogFileArgs_clear(virLogManagerProtocolDomainReadLogFileArgs *objp)
{
    xdr_free((xdrproc_t)xdr_virLogManagerProtocolDomainReadLogFileArgs, (char *)objp);
}


void xdr_virLogManagerProtocolDomainReadLogFileRet_clear(virLogManagerProtocolDomainReadLogFileRet *objp)
{
    xdr_free((xdrproc_t)xdr_virLogManagerProtocolDomainReadLogFileRet, (char *)objp);
}


void xdr_virLogManagerProtocolDomainAppendLogFileArgs_clear(virLogManagerProtocolDomainAppendLogFileArgs *objp)
{
    xdr_free((xdrproc_t)xdr_virLogManagerProtocolDomainAppendLogFileArgs, (char *)objp);
}


void xdr_virLogManagerProtocolDomainAppendLogFileRet_clear(virLogManagerProtocolDomainAppendLogFileRet *objp)
{
    xdr_free((xdrproc_t)xdr_virLogManagerProtocolDomainAppendLogFileRet, (char *)objp);
}

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

bool_t
xdr_virLogManagerProtocolNonNullString(XDR *xdrs, virLogManagerProtocolNonNullString *objp)
{
    if (!xdr_string(xdrs, objp, VIR_LOG_MANAGER_PROTOCOL_STRING_MAX))
        return FALSE;
    return TRUE;
}

bool_t
xdr_virLogManagerProtocolString(XDR *xdrs, virLogManagerProtocolString *objp)
{
    if (!xdr_pointer(xdrs, (char **)objp, sizeof(virLogManagerProtocolNonNullString), (xdrproc_t)xdr_virLogManagerProtocolNonNullString))
        return FALSE;
    return TRUE;
}

bool_t
xdr_virLogManagerProtocolDomain(XDR *xdrs, virLogManagerProtocolDomain *objp)
{
    if (!xdr_virLogManagerProtocolUUID(xdrs, objp->uuid))
        return FALSE;
    if (!xdr_virLogManagerProtocolNonNullString(xdrs, &objp->name))
        return FALSE;
    return TRUE;
}

bool_t
xdr_virLogManagerProtocolLogFilePosition(XDR *xdrs, virLogManagerProtocolLogFilePosition *objp)
{
    if (!xdr_uint64_t(xdrs, &objp->inode))
        return FALSE;
    if (!xdr_uint64_t(xdrs, &objp->offset))
        return FALSE;
    return TRUE;
}

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

bool_t
xdr_virLogManagerProtocolDomainOpenLogFileArgs(XDR *xdrs, virLogManagerProtocolDomainOpenLogFileArgs *objp)
{
    if (!xdr_virLogManagerProtocolNonNullString(xdrs, &objp->driver))
        return FALSE;
    if (!xdr_virLogManagerProtocolDomain(xdrs, &objp->dom))
        return FALSE;
    if (!xdr_virLogManagerProtocolNonNullString(xdrs, &objp->path))
        return FALSE;
    if (!xdr_u_int(xdrs, &objp->flags))
        return FALSE;
    return TRUE;
}

bool_t
xdr_virLogManagerProtocolDomainOpenLogFileRet(XDR *xdrs, virLogManagerProtocolDomainOpenLogFileRet *objp)
{
    if (!xdr_virLogManagerProtocolLogFilePosition(xdrs, &objp->pos))
        return FALSE;
    return TRUE;
}

bool_t
xdr_virLogManagerProtocolDomainGetLogFilePositionArgs(XDR *xdrs, virLogManagerProtocolDomainGetLogFilePositionArgs *objp)
{
    if (!xdr_virLogManagerProtocolNonNullString(xdrs, &objp->path))
        return FALSE;
    if (!xdr_u_int(xdrs, &objp->flags))
        return FALSE;
    return TRUE;
}

bool_t
xdr_virLogManagerProtocolDomainGetLogFilePositionRet(XDR *xdrs, virLogManagerProtocolDomainGetLogFilePositionRet *objp)
{
    if (!xdr_virLogManagerProtocolLogFilePosition(xdrs, &objp->pos))
        return FALSE;
    return TRUE;
}

bool_t
xdr_virLogManagerProtocolDomainReadLogFileArgs(XDR *xdrs, virLogManagerProtocolDomainReadLogFileArgs *objp)
{
    if (!xdr_virLogManagerProtocolNonNullString(xdrs, &objp->path))
        return FALSE;
    if (!xdr_virLogManagerProtocolLogFilePosition(xdrs, &objp->pos))
        return FALSE;
    if (!xdr_uint64_t(xdrs, &objp->maxlen))
        return FALSE;
    if (!xdr_u_int(xdrs, &objp->flags))
        return FALSE;
    return TRUE;
}

bool_t
xdr_virLogManagerProtocolDomainReadLogFileRet(XDR *xdrs, virLogManagerProtocolDomainReadLogFileRet *objp)
{
    if (!xdr_virLogManagerProtocolNonNullString(xdrs, &objp->data))
        return FALSE;
    return TRUE;
}

bool_t
xdr_virLogManagerProtocolDomainAppendLogFileArgs(XDR *xdrs, virLogManagerProtocolDomainAppendLogFileArgs *objp)
{
    if (!xdr_virLogManagerProtocolNonNullString(xdrs, &objp->driver))
        return FALSE;
    if (!xdr_virLogManagerProtocolDomain(xdrs, &objp->dom))
        return FALSE;
    if (!xdr_virLogManagerProtocolNonNullString(xdrs, &objp->path))
        return FALSE;
    if (!xdr_virLogManagerProtocolNonNullString(xdrs, &objp->message))
        return FALSE;
    if (!xdr_u_int(xdrs, &objp->flags))
        return FALSE;
    return TRUE;
}

bool_t
xdr_virLogManagerProtocolDomainAppendLogFileRet(XDR *xdrs, virLogManagerProtocolDomainAppendLogFileRet *objp)
{
    if (!xdr_int(xdrs, &objp->ret))
        return FALSE;
    return TRUE;
}

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

