xref: /titanic_41/usr/src/lib/libcurses/screen/object.h (revision cde2885fdf538266ee2a3b08dee2d5075ce8fa2b)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
24  * Use is subject to license terms.
25  */
26 
27 /*	Copyright (c) 1988 AT&T	*/
28 /*	  All Rights Reserved  	*/
29 
30 /*
31  * University Copyright- Copyright (c) 1982, 1986, 1988
32  * The Regents of the University of California
33  * All Rights Reserved
34  *
35  * University Acknowledgment- Portions of this document are derived from
36  * software developed by the University of California, Berkeley, and its
37  * contributors.
38  */
39 
40 
41 #ifndef	_OBJECT_H
42 #define	_OBJECT_H
43 
44 #pragma ident	"%Z%%M%	%I%	%E% SMI"
45 
46 /*LINTLIBRARY*/
47 
48 /*
49  *			COPYRIGHT NOTICE
50  *
51  *	This software is copyright(C) 1982 by Pavel Curtis
52  *
53  *	Permission is granted to reproduce and distribute
54  *	this file by any means so long as no fee is charged
55  *	above a nominal handling fee and so long as this
56  *	notice is always included in the copies.
57  *
58  *	Other rights are reserved except as explicitly granted
59  *	by written permission of the author.
60  *		Pavel Curtis
61  *		Computer Science Dept.
62  *		405 Upson Hall
63  *		Cornell University
64  *		Ithaca, NY 14853
65  *
66  *		Ph- (607) 256-4934
67  *
68  *		Pavel.Cornell@Udel-Relay   (ARPAnet)
69  *		decvax!cornell!pavel(UUCPnet)
70  */
71 
72 /*
73  * $Header:   RCS/object.v  Revision 2.1  82/10/25  14:49:50  pavel  Exp$
74  *
75  *	object.h - Format of compiled terminfo files
76  *
77  *		Header(12 bytes), containing information given below
78  *		Names Section, containing the names of the terminal
79  *		Boolean Section, containing the values of all of the
80  *				boolean capabilities
81  *				A null byte may be inserted here to make
82  *				sure that the Number Section begins on an
83  *				even word boundary.
84  *		Number Section, containing the values of all of the numeric
85  *				capabilities, each as a short integer
86  *		String Section, containing short integer offsets into the
87  *				String Table, one per string capability
88  *		String Table, containing the actual characters of the string
89  *				capabilities.
90  *
91  *	NOTE that all short integers in the file are stored using VAX/PDP-style
92  *	byte-swapping, i.e., least-significant byte first.  The code in
93  *	read_entry() automatically fixes this up on machines which don't use
94  *	this system(I hope).
95  *
96  *  $Log:	RCS/object.v $
97  * Revision 2.1  82/10/25  14:49:50  pavel
98  * Added Copyright Notice
99  *
100  * Revision 2.0  82/10/24  15:18:19  pavel
101  * Beta-one Test Release
102  *
103  * Revision 1.3  82/08/23  22:31:12  pavel
104  * The REAL Alpha-one Release Version
105  *
106  * Revision 1.2  82/08/19  19:10:18  pavel
107  * Alpha Test Release One
108  *
109  * Revision 1.1  82/08/12  18:48:55  pavel
110  * Initial revision
111  *
112  *
113  */
114 
115 #ifdef	__cplusplus
116 extern "C" {
117 #endif
118 
119 #define	MAGIC	0432
120 
121 struct header
122 {
123 	short	magic;		/* Magic Number (0432)			*/
124 	short	name_size;	/* Size of names section		*/
125 	short	bool_count;	/* Number of booleans			*/
126 	short	num_count;	/* Number of numbers			*/
127 	short	str_count;	/* Number of strings			*/
128 	short	str_size;	/* Size of string table			*/
129 };
130 
131 #ifdef	__cplusplus
132 }
133 #endif
134 
135 #endif	/* _OBJECT_H */
136