/* automatically generated by pepy 8.0 #1 (big-screw), do not edit! */

#include "psap.h"

#define	advise	PY_advise

void	advise ();

/* Generated from module UNIV */

#include <stdio.h>
#include "UNIV-types.h"

#ifndef PEPYPARM
#define PEPYPARM char *
#endif /* PEPYPARM */
extern PEPYPARM NullParm;

/* ARGSUSED */

int	decode_UNIV_ObjectDescriptor (pe, explicit, len, buffer, parm)
register PE	pe;
int	explicit;
int    *len;
char  **buffer;
struct type_UNIV_ObjectDescriptor ** parm;
{
#ifdef DEBUG
    (void) testdebug (pe, "UNIV.ObjectDescriptor");
#endif

    if (explicit
            && PE_ID (pe -> pe_class, pe -> pe_id)
                    != PE_ID (PE_CLASS_UNIV, 7)) {
        advise (NULLCP, "ObjectDescriptor %s%s/0x%x", PEPY_ERR_BAD_CLASS,
                pe_classlist[pe -> pe_class], pe -> pe_id);
        return NOTOK;
    }
    if (decode_UNIV_GraphicString (pe, 0, len, buffer, &((*parm))) == NOTOK)
        return NOTOK;

    return OK;
}
