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


# line 25 "dse.py"

#ifndef	lint
static char *rcsid = "$Header: /xtel/isode/isode/acsap/RCS/dse.py,v 9.0 1992/06/16 12:05:59 isode Rel $";
#endif

extern caddr_t _ZptrtabDSE[];	/* forward decl */

#define OFFSET(t,f)	((int ) &(((t *)0)->f))


#define AOFFSET(t,f)	((int ) (((t *)0)->f))

static ptpe et_PSAPaddrDSE[] = {
	{ PE_START, 0, 0, 0, (char **)&_ZptrtabDSE[0] },
	{ SSEQ_START, 0, 16, FL_UNIVERSAL, (char **)&_ZptrtabDSE[0] },
	{ ETAG, 0, 0, FL_CONTEXT|FL_OPTIONAL, (char **)&_ZptrtabDSE[1] },
	{ OCTETSTRING, OFFSET(struct type_DSE_PSAPaddr, pSelector), 4, FL_UNIVERSAL|FL_OPTIONAL, (char **)&_ZptrtabDSE[1] },
	{ ETAG, 0, 1, FL_CONTEXT|FL_OPTIONAL, (char **)&_ZptrtabDSE[2] },
	{ OCTETSTRING, OFFSET(struct type_DSE_PSAPaddr, sSelector), 4, FL_UNIVERSAL|FL_OPTIONAL, (char **)&_ZptrtabDSE[2] },
	{ ETAG, 0, 2, FL_CONTEXT|FL_OPTIONAL, (char **)&_ZptrtabDSE[3] },
	{ OCTETSTRING, OFFSET(struct type_DSE_PSAPaddr, tSelector), 4, FL_UNIVERSAL|FL_OPTIONAL, (char **)&_ZptrtabDSE[3] },
	{ ETAG, 0, 3, FL_CONTEXT, (char **)&_ZptrtabDSE[4] },
	{ SETOF_START, OFFSET(struct type_DSE_PSAPaddr, nAddress), 17, FL_UNIVERSAL, (char **)&_ZptrtabDSE[4] },
	{ OCTETSTRING, OFFSET(struct member_DSE_0, member_DSE_1), 4, FL_UNIVERSAL, (char **)&_ZptrtabDSE[0] },
	{ PE_END, OFFSET(struct member_DSE_0, next), 0, 0, (char **)&_ZptrtabDSE[4] },
	{ PE_END, 0, 0, 0, (char **)&_ZptrtabDSE[0] },
	{ PE_END, 0, 0, 0, (char **)&_ZptrtabDSE[0] }
	};

static ptpe dt_PSAPaddrDSE[] = {
	{ PE_START, 0, 0, 0, (char **)&_ZptrtabDSE[0] },
	{ SSEQ_START, 0, 16, FL_UNIVERSAL, (char **)&_ZptrtabDSE[0] },
	{ MEMALLOC, 0, sizeof (struct type_DSE_PSAPaddr), 0, (char **)&_ZptrtabDSE[0] },
	{ ETAG, 0, 0, FL_CONTEXT|FL_OPTIONAL, (char **)&_ZptrtabDSE[1] },
	{ OCTETSTRING, OFFSET(struct type_DSE_PSAPaddr, pSelector), 4, FL_UNIVERSAL|FL_OPTIONAL, (char **)&_ZptrtabDSE[1] },
	{ ETAG, 0, 1, FL_CONTEXT|FL_OPTIONAL, (char **)&_ZptrtabDSE[2] },
	{ OCTETSTRING, OFFSET(struct type_DSE_PSAPaddr, sSelector), 4, FL_UNIVERSAL|FL_OPTIONAL, (char **)&_ZptrtabDSE[2] },
	{ ETAG, 0, 2, FL_CONTEXT|FL_OPTIONAL, (char **)&_ZptrtabDSE[3] },
	{ OCTETSTRING, OFFSET(struct type_DSE_PSAPaddr, tSelector), 4, FL_UNIVERSAL|FL_OPTIONAL, (char **)&_ZptrtabDSE[3] },
	{ ETAG, 0, 3, FL_CONTEXT, (char **)&_ZptrtabDSE[4] },
	{ SETOF_START, OFFSET(struct type_DSE_PSAPaddr, nAddress), 17, FL_UNIVERSAL, (char **)&_ZptrtabDSE[4] },
	{ MEMALLOC, 0, sizeof (struct member_DSE_0), 0, (char **)&_ZptrtabDSE[4] },
	{ OCTETSTRING, OFFSET(struct member_DSE_0, member_DSE_1), 4, FL_UNIVERSAL, (char **)&_ZptrtabDSE[0] },
	{ PE_END, OFFSET(struct member_DSE_0, next), 0, 0, (char **)&_ZptrtabDSE[4] },
	{ PE_END, 0, 0, 0, (char **)&_ZptrtabDSE[0] },
	{ PE_END, 0, 0, 0, (char **)&_ZptrtabDSE[0] }
	};

static ptpe pt_PSAPaddrDSE[] = {
	{ PE_START, 0, 0, 0, (char **)&_ZptrtabDSE[0] },
	{ SSEQ_START, -1, 16, FL_UNIVERSAL, NULLVP },
	{ ETAG, -1, 0, FL_CONTEXT|FL_OPTIONAL|FL_PRTAG, (char **)&_ZptrtabDSE[1] },
	{ OCTETSTRING, -1, 4, FL_UNIVERSAL|FL_OPTIONAL, NULLVP },
	{ ETAG, -1, 1, FL_CONTEXT|FL_OPTIONAL|FL_PRTAG, (char **)&_ZptrtabDSE[2] },
	{ OCTETSTRING, -1, 4, FL_UNIVERSAL|FL_OPTIONAL, NULLVP },
	{ ETAG, -1, 2, FL_CONTEXT|FL_OPTIONAL|FL_PRTAG, (char **)&_ZptrtabDSE[3] },
	{ OCTETSTRING, -1, 4, FL_UNIVERSAL|FL_OPTIONAL, NULLVP },
	{ ETAG, -1, 3, FL_CONTEXT, (char **)&_ZptrtabDSE[4] },
	{ SETOF_START, -1, 17, FL_UNIVERSAL, NULLVP },
	{ OCTETSTRING, -1, 4, FL_UNIVERSAL, NULLVP },
	{ PE_END, OFFSET(struct member_DSE_0, next), 0, 0, NULLVP },
	{ PE_END, 0, 0, 0, NULLVP },
	{ PE_END, 0, 0, 0, (char **)&_ZptrtabDSE[0] }
	};

static ptpe *etabl[] = {
	et_PSAPaddrDSE,
	};

static ptpe *dtabl[] = {
	dt_PSAPaddrDSE,
	};

static ptpe *ptabl[] = {
	pt_PSAPaddrDSE,
	};


/* Pointer table 5 entries */
caddr_t _ZptrtabDSE[] = {
    (caddr_t ) "PSAPaddr",
    (caddr_t ) "pSelector",
    (caddr_t ) "sSelector",
    (caddr_t ) "tSelector",
    (caddr_t ) "nAddress",
};

modtyp _ZDSE_mod = {
	"DSE",
	1,
	etabl,
	dtabl,
	ptabl,
	0,
	0,
	0,
	_ZptrtabDSE,
	};


#if	defined(lint) || defined(PEPSY_LINKABLE_FUNCS)

#undef decode_DSE_PSAPaddr
int	decode_DSE_PSAPaddr(pe, top, len, buffer, parm)
PE	pe;
int	top,
       *len;
char  **buffer;
struct type_DSE_PSAPaddr **parm;
{
  return (dec_f(_ZPSAPaddrDSE, &_ZDSE_mod, pe, top, len, buffer,
		(char **) parm));
}

#undef free_DSE_PSAPaddr
void free_DSE_PSAPaddr(val)
struct type_DSE_PSAPaddr *val;
{
(void) fre_obj((char *) val, _ZDSE_mod.md_dtab[_ZPSAPaddrDSE], &_ZDSE_mod, 1);
}

#endif	/* lint||PEPSY_LINKABLE_FUNCS */
