Add GNU LGPL headers to all .c .C and .h files
[oweals/cde.git] / cde / programs / dtappbuilder / src / abmf / abmf.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: abmf.h /main/3 1995/11/06 18:01:36 rswiston $
26  *
27  *      @(#)abmf.h      1.3 15 Jul 1994 cde_app_builder/src/abmf
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  * abmf.h - public entry points to the code generator
45  */
46 #ifndef _ABMF_ABMF_H_
47 #define _ABMF_ABMF_H_
48
49 #include <ab_private/obj.h>
50
51 typedef enum
52 {
53     ABMF_I18N_UNDEF= 0,
54     ABMF_I18N_NONE,                     /* no i18n */
55     ABMF_I18N_XPG4_API,                 /* generated code conforms to
56                                          * XPG4 API
57                                          */
58     ABMF_I18N_METHOD_NUM_VALUES         /* must be last */
59 } ABMF_I18N_METHOD;
60
61
62 typedef enum
63 {
64     ABMF_CGEN_UNDEF,
65     ABMF_CGEN_ALL,
66     ABMF_CGEN_BY_DATE,
67     ABMF_CGEN_BY_DATE_AND_CONTENTS,
68     ABMF_CGEN_RESTRICTION_NUM_VALUES    /* must be last */
69 } ABMF_CGEN_RESTRICTION;
70
71
72 /*
73  * "dumped" resources are written to a resource file, rather than a C file
74  */
75 int     abmf_generate_code(
76                 ABObj                   project, 
77                 ABMF_CGEN_RESTRICTION   restriction,
78                 BOOL                    merge_files,
79                 ABMF_I18N_METHOD        i18nMethod,
80                 BOOL                    prototype_functions,
81                 AB_ARG_CLASS_FLAGS      dumped_resources
82         );
83
84 #endif /* _ABMF_ABMF_H_ */
85