Add GNU LGPL headers to all .c .C and .h files
[oweals/cde.git] / cde / programs / dtappbuilder / src / libABil / bil.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  *      $XConsortium: bil.h /main/3 1995/11/06 18:23:13 rswiston $
25  *
26  *      @(#)bil.h       1.11 14 Feb 1994        cde_app_builder/src/libABil
27  *
28  *      RESTRICTED CONFIDENTIAL INFORMATION:
29  *      
30  *      The information in this document is subject to special
31  *      restrictions in a confidential disclosure agreement between
32  *      HP, IBM, Sun, USL, SCO and Univel.  Do not distribute this
33  *      document outside HP, IBM, Sun, USL, SCO, or Univel without
34  *      Sun's specific written approval.  This document and all copies
35  *      and derivative works thereof must be returned or destroyed at
36  *      Sun's request.
37  *
38  *      Copyright 1993 Sun Microsystems, Inc.  All rights reserved.
39  *
40  */
41
42 #ifndef _ABIL_BIL_H_
43 #define _ABIL_BIL_H_
44
45 #include <X11/Intrinsic.h>
46 #include <ab_private/bil_parse.h>
47
48 typedef enum
49 {
50     BIL_SAVE_UNDEF = 0,
51     BIL_SAVE_DUMP,              /* just dump the whole thing */
52     BIL_SAVE_FILE_PER_MODULE,   /* assume 1 project file, 1 for each module */
53     BIL_SAVE_ENCAPSULATED,      /* assume everything goes in one file */
54     BIL_SAVE_TYPE_NUM_VALUES
55 } BIL_SAVE_TYPE;
56
57
58 extern ABObj    bil_load_file(
59                     STRING      path,
60                     FILE        *inFile,
61                     ABObj       proj,
62                     ABObjList   *compObjsOut    /* composite objs loaded */
63                 );
64 extern int      bil_load_file_and_resolve_all(
65                     STRING      fileName, 
66                     FILE        *inFile,
67                     ABObj       *newProjectPtr
68                 );
69 extern int      bil_save_tree(
70                     ABObj       root,
71                     STRING      filename,
72                     STRING      old_proj_dir,
73                     BIL_SAVE_TYPE type
74                 );
75 extern STRING   bil_get_filename(
76                     ABObj       proj,
77                     ABObj       module
78                 );
79
80 #endif /* _ABIL_BIL_H_ */