2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
6 * These libraries and programs are free software; you can
7 * redistribute them and/or modify them under the terms of the GNU
8 * Lesser General Public License as published by the Free Software
9 * Foundation; either version 2 of the License, or (at your option)
12 * These libraries and programs are distributed in the hope that
13 * they will be useful, but WITHOUT ANY WARRANTY; without even the
14 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU Lesser General Public License for more
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with these librararies and programs; if not, write
20 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21 * Floor, Boston, MA 02110-1301 USA
23 /*******************************************************************************
27 ** static char sccsid[] = "@(#)props.h 1.6 94/11/07 Copyr 1991 Sun Microsystems, Inc.";
29 ** $XConsortium: props.h /main/5 1996/03/29 17:28:13 rswiston $
31 ** RESTRICTED CONFIDENTIAL INFORMATION:
33 ** The information in this document is subject to special
34 ** restrictions in a confidential disclosure agreement between
35 ** HP, IBM, Sun, USL, SCO and Univel. Do not distribute this
36 ** document outside HP, IBM, Sun, USL, SCO, or Univel without
37 ** Sun's specific written approval. This document and all copies
38 ** and derivative works thereof must be returned or destroyed at
41 ** Copyright 1993 Sun Microsystems, Inc. All rights reserved.
43 *******************************************************************************/
46 * (c) Copyright 1993, 1994 Hewlett-Packard Company *
47 * (c) Copyright 1993, 1994 International Business Machines Corp. *
48 * (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
49 * (c) Copyright 1993, 1994 Novell, Inc. *
55 #include <sys/types.h>
59 /*******************************************************************************
61 ** Typedefs and supporting structures
63 *******************************************************************************/
76 typedef struct props_entry {
80 struct props_entry *next;
84 ** Enumerated type to access properties array. If you add a member to this
85 ** enumeration, be sure to add it's value to the character array in props.c
88 CP_BEGOP, /* Don't put anything before this */
134 CP_ENDOP /* Don't put anything after this */
137 /*******************************************************************************
139 ** The not-so-mighty props structure is simply an X resource database and the
140 ** array of Props_entry's which contain the property information.
142 *******************************************************************************/
148 /*******************************************************************************
150 ** External function declarations
152 *******************************************************************************/
153 extern boolean_t cal_convert_cmrc P((Props*));
154 extern char *get_char_prop P((Props*, Props_op));
155 extern char *get_char_prop_default P((Props_op));
156 extern int get_int_prop P((Props*, Props_op));
157 extern void props_clean_up P((Props*));
158 extern boolean_t read_props P((Props*));
159 extern boolean_t save_props P((Props*));
160 extern boolean_t set_char_prop P((Props*, Props_op, char*));
161 extern boolean_t set_int_prop P((Props*, Props_op, int));