/* $Copyright:	$
 * Copyright (c) 1984, 1985, 1986, 1987, 1988, 1989, 1990 
 * Sequent Computer Systems, Inc.   All rights reserved.
 *  
 * This software is furnished under a license and may be used
 * only in accordance with the terms of that license and with the
 * inclusion of the above copyright notice.   This software may not
 * be provided or otherwise made available to, or used by, any
 * other person.  No title to or ownership of the software is
 * hereby transferred.
 */

/*	Copyright (c) 1984 AT&T	*/
/*	  All Rights Reserved  	*/

/*	THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T	*/
/*	The copyright notice above does not evidence any   	*/
/*	actual or intended publication of such source code.	*/

/*
 * Copyright  (c) 1985 AT&T
 *	All Rights Reserved
 */

#ident	"$Header: partabdefs.h 1.2 89/10/10 $@(#)vm:inc/partabdefs.h	1.1"

/* Note: this file created with tabstops set to 4.
 *
 * Definitions for the Object Parts Table (OPT).  One of these tables
 * will exist per system, and defines the different parts of different
 * objects.
 */

#define PNAMESIZ	16		/* size of a part name */
#define MAXOBJPARTS 11		/* max parts a single object can have */
#define MAXPARTS	(24+MAXOBJPARTS)		/* max number of parts for all objects */

#define PRT_FILE	0x01	/* the part is a file */
#define PRT_DIR		0x02	/* the part is a directory */
#define PRT_OPT		0x04	/* the part is optional */
#define PRT_BIN		0x08	/* the part is binary */
#define PRT_OEU		0x10	/* the part is an oeu */

struct one_part  {
	char part_name[PNAMESIZ];		/* registered part name*/
	char part_template[PNAMESIZ];	/* template for the name */
	int  part_flags;				/* physical part characteristics */
};

struct opt_entry  {
	char objtype[OTYPESIZ];			/* object type name */
	char objdisp[OTYPESIZ];			/* display name for the object */
	long int_class;					/* internal Telesystem class */
	char *oeu;						/* registered oeu name */
	char *objformat;				/* registered format name */
	char *objapp;					/* registered creating application */
	char *objprod;					/* registered product id */
	char *objclass;					/* registered object classification */
	int  part_offset;				/* first part in Parts list */
	int  numparts;					/* number of parts used */
	int  info_type;					/* type of the info_func program, if any*/
	int  info_int;					/* index of the internal info func */
	char *info_ext;				/* characters of the external info func */
};
