1 /*******************************************************************************
5 ** static char sccsid[] = "@(#)props.h 1.6 94/11/07 Copyr 1991 Sun Microsystems, Inc.";
7 ** $XConsortium: props.h /main/5 1996/03/29 17:28:13 rswiston $
9 ** RESTRICTED CONFIDENTIAL INFORMATION:
11 ** The information in this document is subject to special
12 ** restrictions in a confidential disclosure agreement between
13 ** HP, IBM, Sun, USL, SCO and Univel. Do not distribute this
14 ** document outside HP, IBM, Sun, USL, SCO, or Univel without
15 ** Sun's specific written approval. This document and all copies
16 ** and derivative works thereof must be returned or destroyed at
19 ** Copyright 1993 Sun Microsystems, Inc. All rights reserved.
21 *******************************************************************************/
24 * (c) Copyright 1993, 1994 Hewlett-Packard Company *
25 * (c) Copyright 1993, 1994 International Business Machines Corp. *
26 * (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
27 * (c) Copyright 1993, 1994 Novell, Inc. *
33 #include <sys/types.h>
37 /*******************************************************************************
39 ** Typedefs and supporting structures
41 *******************************************************************************/
54 typedef struct props_entry {
58 struct props_entry *next;
62 ** Enumerated type to access properties array. If you add a member to this
63 ** enumeration, be sure to add it's value to the character array in props.c
66 CP_BEGOP, /* Don't put anything before this */
112 CP_ENDOP /* Don't put anything after this */
115 /*******************************************************************************
117 ** The not-so-mighty props structure is simply an X resource database and the
118 ** array of Props_entry's which contain the property information.
120 *******************************************************************************/
126 /*******************************************************************************
128 ** External function declarations
130 *******************************************************************************/
131 extern boolean_t cal_convert_cmrc P((Props*));
132 extern char *get_char_prop P((Props*, Props_op));
133 extern char *get_char_prop_default P((Props_op));
134 extern int get_int_prop P((Props*, Props_op));
135 extern void props_clean_up P((Props*));
136 extern boolean_t read_props P((Props*));
137 extern boolean_t save_props P((Props*));
138 extern boolean_t set_char_prop P((Props*, Props_op, char*));
139 extern boolean_t set_int_prop P((Props*, Props_op, int));