Add more realistic type system.
[wrappi.git] / generator-lib / wrappi_accumulator.mli
1 (* wrappi
2  * Copyright (C) 2011 Red Hat Inc.
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17  *)
18
19 (** Accumulator.
20
21     This module "accumulates" the typedefs, entry points etc as they
22     are declared (see pa_wrap.ml).
23
24     It then performs some manipulations on the API, mainly resolving
25     typedefs within types, and constructs a {!Wrappi_types.api}
26     object which describes the whole API. *)
27
28 val add_typedef : Wrappi_types.typedef -> unit
29 val add_enum : Wrappi_types.enum -> unit
30 val add_struct : Wrappi_types.struct_decl -> unit
31 val add_union : Wrappi_types.union -> unit
32 val add_entry_point : Wrappi_types.entry_point -> unit
33
34 val get_api : unit -> Wrappi_types.api