diff options
author | Colin Walters <walters@verbum.org> | 2010-07-26 16:26:46 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2010-08-17 13:14:51 -0400 |
commit | 8942500c99de223eff6f91677a5dff206e09b3a7 (patch) | |
tree | 67b89e622e14874635a7fa9268ac12e16d363f31 /girepository/girparser.h | |
parent | 616a918019f730184bc7aee0f4570a67db8850b9 (diff) | |
download | gobject-introspection-8942500c99de223eff6f91677a5dff206e09b3a7.tar.gz |
[gircompiler] Clean up parsing
We never actually include multiple modules in the compiler,
so just nuke that. Also rather than passing around GIrModule
consistently pass around a GIrTypelibBuild structure which
has various things.
This lets us maintain a stack there which we can walk for
better error messages.
Also, fix up the node lookup in giroffsets.c; previously
it didn't really handle includes correctly. We really need to
switch to always using Foo.Bar (i.e. GIName) names internally...
Diffstat (limited to 'girepository/girparser.h')
-rw-r--r-- | girepository/girparser.h | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/girepository/girparser.h b/girepository/girparser.h index 6fca1b3d..076c9818 100644 --- a/girepository/girparser.h +++ b/girepository/girparser.h @@ -25,6 +25,8 @@ G_BEGIN_DECLS +#include "girmodule.h" + typedef struct _GIrParser GIrParser; GIrParser *g_ir_parser_new (void); @@ -32,15 +34,15 @@ void g_ir_parser_free (GIrParser *parser); void g_ir_parser_set_includes (GIrParser *parser, const gchar *const *includes); -GList *g_ir_parser_parse_string (GIrParser *parser, - const gchar *namespace, - const gchar *filename, - const gchar *buffer, - gssize length, - GError **error); -GList *g_ir_parser_parse_file (GIrParser *parser, - const gchar *filename, - GError **error); +GIrModule *g_ir_parser_parse_string (GIrParser *parser, + const gchar *namespace, + const gchar *filename, + const gchar *buffer, + gssize length, + GError **error); +GIrModule *g_ir_parser_parse_file (GIrParser *parser, + const gchar *filename, + GError **error); G_END_DECLS |