2 * Copyright (C) 2011 Red Hat Inc.
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.
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.
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.
21 This module "accumulates" the typedefs, entry points etc as they
22 are declared (see pa_wrap.ml).
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. *)
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
34 val get_api : unit -> Wrappi_types.api