xref: /illumos-gate/usr/src/lib/libcurses/screen/object.h (revision 8119dad84d6416f13557b0ba8e2aaf9064cbcfd3)
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 /*LINTLIBRARY*/
45 
46 /*
47  *			COPYRIGHT NOTICE
48  *
49  *	This software is copyright(C) 1982 by Pavel Curtis
50  *
51  *	Permission is granted to reproduce and distribute
52  *	this file by any means so long as no fee is charged
53  *	above a nominal handling fee and so long as this
54  *	notice is always included in the copies.
55  *
56  *	Other rights are reserved except as explicitly granted
57  *	by written permission of the author.
58  *		Pavel Curtis
59  *		Computer Science Dept.
60  *		405 Upson Hall
61  *		Cornell University
62  *		Ithaca, NY 14853
63  *
64  *		Ph- (607) 256-4934
65  *
66  *		Pavel.Cornell@Udel-Relay   (ARPAnet)
67  *		decvax!cornell!pavel(UUCPnet)
68  */
69 
70 /*
71  * $Header:   RCS/object.v  Revision 2.1  82/10/25  14:49:50  pavel  Exp$
72  *
73  *	object.h - Format of compiled terminfo files
74  *
75  *		Header(12 bytes), containing information given below
76  *		Names Section, containing the names of the terminal
77  *		Boolean Section, containing the values of all of the
78  *				boolean capabilities
79  *				A null byte may be inserted here to make
80  *				sure that the Number Section begins on an
81  *				even word boundary.
82  *		Number Section, containing the values of all of the numeric
83  *				capabilities, each as a short integer
84  *		String Section, containing short integer offsets into the
85  *				String Table, one per string capability
86  *		String Table, containing the actual characters of the string
87  *				capabilities.
88  *
89  *	NOTE that all short integers in the file are stored using VAX/PDP-style
90  *	byte-swapping, i.e., least-significant byte first.  The code in
91  *	read_entry() automatically fixes this up on machines which don't use
92  *	this system(I hope).
93  *
94  *  $Log:	RCS/object.v $
95  * Revision 2.1  82/10/25  14:49:50  pavel
96  * Added Copyright Notice
97  *
98  * Revision 2.0  82/10/24  15:18:19  pavel
99  * Beta-one Test Release
100  *
101  * Revision 1.3  82/08/23  22:31:12  pavel
102  * The REAL Alpha-one Release Version
103  *
104  * Revision 1.2  82/08/19  19:10:18  pavel
105  * Alpha Test Release One
106  *
107  * Revision 1.1  82/08/12  18:48:55  pavel
108  * Initial revision
109  *
110  *
111  */
112 
113 #ifdef	__cplusplus
114 extern "C" {
115 #endif
116 
117 #define	MAGIC	0432
118 
119 struct header
120 {
121 	short	magic;		/* Magic Number (0432)			*/
122 	short	name_size;	/* Size of names section		*/
123 	short	bool_count;	/* Number of booleans			*/
124 	short	num_count;	/* Number of numbers			*/
125 	short	str_count;	/* Number of strings			*/
126 	short	str_size;	/* Size of string table			*/
127 };
128 
129 #ifdef	__cplusplus
130 }
131 #endif
132 
133 #endif	/* _OBJECT_H */
134