diff options
author | Tomeu Vizoso <tomeu@sugarlabs.org> | 2010-04-30 18:15:23 +0200 |
---|---|---|
committer | Tomeu Vizoso <tomeu@sugarlabs.org> | 2010-04-30 18:15:23 +0200 |
commit | 87291e08b0fd34b62e1ad9811c174108b38311a9 (patch) | |
tree | 1932336ef4767a30c57e0c8a4b6513d8f6888ccc /girepository/girepository.h | |
parent | 72f63c149132056655840e00c53119802f72a8bf (diff) | |
download | gobject-introspection-87291e08b0fd34b62e1ad9811c174108b38311a9.tar.gz |
Add support for GArrays: add g_type_info_get_array_type() and properly scan GArray args
Based on a previous patch by C. Scott Ananian <cscott@litl.com>
https://bugzilla.gnome.org/show_bug.cgi?id=581687
Diffstat (limited to 'girepository/girepository.h')
-rw-r--r-- | girepository/girepository.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/girepository/girepository.h b/girepository/girepository.h index cfa5b390..9e62ab15 100644 --- a/girepository/girepository.h +++ b/girepository/girepository.h @@ -383,6 +383,13 @@ typedef enum { * See docs/typelib-format.txt SimpleTypeBlob definition */ } GITypeTag; +typedef enum { + GI_ARRAY_TYPE_C, + GI_ARRAY_TYPE_ARRAY, + GI_ARRAY_TYPE_PTR_ARRAY, + GI_ARRAY_TYPE_BYTE_ARRAY +} GIArrayType; + #define G_TYPE_TAG_IS_BASIC(tag) (tag < GI_TYPE_TAG_ARRAY) const gchar* g_type_tag_to_string (GITypeTag type); @@ -395,6 +402,7 @@ GIBaseInfo * g_type_info_get_interface (GITypeInfo *info); gint g_type_info_get_array_length (GITypeInfo *info); gint g_type_info_get_array_fixed_size(GITypeInfo *info); gboolean g_type_info_is_zero_terminated (GITypeInfo *info); +GIArrayType g_type_info_get_array_type (GITypeInfo *info); gint g_type_info_get_n_error_domains (GITypeInfo *info); GIErrorDomainInfo *g_type_info_get_error_domain (GITypeInfo *info, |