1 /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*-
2 * GObject introspection: A parser for the XML GIR format
3 *
4 * Copyright (C) 2005 Matthias Clasen
5 *
6 * SPDX-License-Identifier: LGPL-2.1-or-later
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the
20 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21 * Boston, MA 02111-1307, USA.
22 */
23
24 #pragma once
25
26 #include <glib.h>
27
28 G_BEGIN_DECLS
29
30 #include "girmodule-private.h"
31
32 typedef struct _GIIrParser GIIrParser;
33
34 GIIrParser *gi_ir_parser_new (void);
35 void gi_ir_parser_free (GIIrParser *parser);
36 void gi_ir_parser_set_includes (GIIrParser *parser,
37 const gchar *const *includes);
38
39 GIIrModule *gi_ir_parser_parse_string (GIIrParser *parser,
40 const gchar *namespace,
41 const gchar *filename,
42 const gchar *buffer,
43 gssize length,
44 GError **error);
45 GIIrModule *gi_ir_parser_parse_file (GIIrParser *parser,
46 const gchar *filename,
47 GError **error);
48
49 G_END_DECLS