Initial import of the CDE 2.1.30 sources from the Open Group.
[oweals/cde.git] / cde / programs / dtcm / libDtCmP / resource.h
1 /*******************************************************************************
2 **
3 **  resource.h
4 **
5 **  static char sccsid[] = "@(#)resource.h 1.5 94/11/07 Copyr 1991 Sun Microsystems, Inc.";
6 **
7 **  $XConsortium: resource.h /main/3 1995/11/03 10:38:43 rswiston $
8 **
9 **  RESTRICTED CONFIDENTIAL INFORMATION:
10 **
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
17 **  Sun's request.
18 **
19 **  Copyright 1993 Sun Microsystems, Inc.  All rights reserved.
20 **
21 *******************************************************************************/
22
23 /*                                                                      *
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.                                *
28  */
29
30 #ifndef _RESOURCE_H
31 #define _RESOURCE_H
32  
33 #include "ansi_c.h"
34 #include <sys/types.h>
35
36 /*
37 **  Resource structure
38 */
39 struct Resource {
40         char            *resource_name;
41         char            *resource_value;
42         struct Resource *next;
43 };
44 typedef struct Resource Resource;
45
46 /*
47 **  Function declarations
48 */
49 extern void             free_resources          P((Resource*));
50 extern char             *get_resource           P((Resource*, char *, char*,
51                                                         char*, char*));
52 extern char             *get_resource_by_val    P((Resource*, char*, char*));
53 extern boolean_t        load_resources          P((Resource**, char*));
54 extern boolean_t        save_resources          P((Resource*, char*));
55 extern boolean_t        set_resource            P((Resource**, char*, char*,
56                                                         char*, char*));
57 extern boolean_t        set_resource_by_val     P((Resource**, char*, char*));
58
59 #endif