diff options
author | Colin Walters <walters@verbum.org> | 2010-10-18 12:04:08 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2010-10-18 12:04:08 -0400 |
commit | f97cc8687469f25752f7927545ad4daecef8ab44 (patch) | |
tree | c1c792e80f9c24ad5990e2dd7fd7acc4a2d31dcb /girepository/gitypelib-internal.h | |
parent | 80a42c6eb38b4b8fd68b5d4e8780a834ad8bdda5 (diff) | |
download | gobject-introspection-f97cc8687469f25752f7927545ad4daecef8ab44.tar.gz |
girepository: Refactor lookup code
This is a cleanup patch in preparation for future indexing
patches.
The lookup code was a mess trying to mash in the 3 different
cases of name, GType, and index into one mega-function.
Split it up properly, and move the core typelib internal-scanning
bits into gitypelib.c where it belongs.
Diffstat (limited to 'girepository/gitypelib-internal.h')
-rw-r--r-- | girepository/gitypelib-internal.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/girepository/gitypelib-internal.h b/girepository/gitypelib-internal.h index 87a18170..26fd6bfb 100644 --- a/girepository/gitypelib-internal.h +++ b/girepository/gitypelib-internal.h @@ -1100,6 +1100,13 @@ struct _GITypelib { DirEntry *g_typelib_get_dir_entry (GITypelib *typelib, guint16 index); +DirEntry *g_typelib_get_dir_entry_by_name (GITypelib *typelib, + const char *name); + +DirEntry *g_typelib_get_dir_entry_by_gtype (GITypelib *typelib, + gboolean fastpass, + GType gtype); + void g_typelib_check_sanity (void); #define g_typelib_get_string(typelib,offset) ((const gchar*)&(typelib->data)[(offset)]) |