Add GNU LGPL headers to all .c .C and .h files
[oweals/cde.git] / cde / programs / dtappbuilder / src / libABil / gil_loadattP.h
1 /*
2  * CDE - Common Desktop Environment
3  *
4  * Copyright (c) 1993-2012, The Open Group. All rights reserved.
5  *
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)
10  * any later version.
11  *
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
16  * details.
17  *
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
22  */
23
24 /*
25  *      $XConsortium: gil_loadattP.h /main/3 1995/11/06 18:29:01 rswiston $
26  *
27  *      @(#)gil_loadattP.h      1.9 20 Jan 1995 cde_app_builder/src/libABil
28  *
29  *      RESTRICTED CONFIDENTIAL INFORMATION:
30  *      
31  *      The information in this document is subject to special
32  *      restrictions in a confidential disclosure agreement between
33  *      HP, IBM, Sun, USL, SCO and Univel.  Do not distribute this
34  *      document outside HP, IBM, Sun, USL, SCO, or Univel without
35  *      Sun's specific written approval.  This document and all copies
36  *      and derivative works thereof must be returned or destroyed at
37  *      Sun's request.
38  *
39  *      Copyright 1993 Sun Microsystems, Inc.  All rights reserved.
40  *
41  */
42
43 /*
44  * loadatt.h - load attribute (GIL) header file
45  */
46 #ifndef _ABIL_LOADATT_H_
47 #define _ABIL_LOADATT_H_
48
49 #include <ab_private/obj.h>
50 #include "gilP.h"
51
52 typedef struct
53 {
54         BOOL                    bools[AB_OBJ_MAX_CHILDREN];
55         int                     count;
56 } BOOL_ARRAY;
57
58 typedef struct
59 {
60         AB_OBJECT_STATE         states[AB_OBJ_MAX_CHILDREN];
61         int                     count;
62 } INITIAL_STATE_ARRAY;
63
64 typedef struct
65 {
66         ISTRING strings[AB_OBJ_MAX_CHILDREN];
67         int     count;
68 } ISTRING_ARRAY;
69
70 typedef struct
71 {
72         AB_LABEL_TYPE   label_types[AB_OBJ_MAX_CHILDREN];
73         int             count;
74 } LABEL_TYPE_ARRAY;
75
76 int     istr_array_init(ISTRING_ARRAY *array);
77 int     istr_array_uninit(ISTRING_ARRAY *array);
78
79 int     gilP_load_attribute_value(FILE *inFile, 
80                         ABObj obj, AB_GIL_ATTRIBUTE attr, ABObj root);
81 int     gilP_load_bools(FILE *inFile, BOOL_ARRAY *bools);
82 int     gilP_load_label_types(FILE *inFile, 
83                         LABEL_TYPE_ARRAY *label_types);
84 int     gilP_load_initial_states(FILE *inFile, 
85                         INITIAL_STATE_ARRAY *states);
86 int     gilP_load_string(FILE *inFile, ISTRING *string);
87 int     gilP_load_strings(FILE *inFile, ISTRING_ARRAY *strings);
88 int     gilP_load_name(FILE *inFile, ISTRING *name);
89 int     gilP_load_names(FILE *inFile, ISTRING_ARRAY *names);
90 int     gilP_load_handler(FILE *inFile, ISTRING *handler);
91 int     gilP_load_handlers(FILE *inFile, ISTRING_ARRAY *handlers);
92 int     gilP_load_file_names(FILE *inFile, ISTRING_ARRAY *names);
93 int     gilP_load_file_name(FILE *inFile, ISTRING *name);
94
95 #endif /* _ABIL_LOADATT_H_ */
96