summaryrefslogtreecommitdiff
path: root/girepository/gitypeinfo.h
diff options
context:
space:
mode:
authorPhilip Chimento <philip.chimento@gmail.com>2020-04-11 14:22:18 -0700
committerPhilip Chimento <philip.chimento@gmail.com>2020-04-26 10:24:26 -0700
commit129c588fe3ec724a1537637d1c716e126b519b37 (patch)
tree7bf94aedbef7c3d552558c6280062838e8239deb /girepository/gitypeinfo.h
parentbcf8fa77d7946ce6285866b36b9c0d8134861109 (diff)
downloadgobject-introspection-129c588fe3ec724a1537637d1c716e126b519b37.tar.gz
girepository: Add GITypeInfo utility functions for storing values in pointers
This functionality is used in both PyGObject and GJS, and if not done correctly can lead to architecture-specific bugs. It seems best to add API in gobject-introspection for the correct way to do it. See also: GNOME/gjs#309
Diffstat (limited to 'girepository/gitypeinfo.h')
-rw-r--r--girepository/gitypeinfo.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/girepository/gitypeinfo.h b/girepository/gitypeinfo.h
index 4d5679c9..fd7d5be6 100644
--- a/girepository/gitypeinfo.h
+++ b/girepository/gitypeinfo.h
@@ -80,6 +80,18 @@ gboolean g_type_info_is_zero_terminated (GITypeInfo *info);
GI_AVAILABLE_IN_ALL
GIArrayType g_type_info_get_array_type (GITypeInfo *info);
+GI_AVAILABLE_IN_1_66
+GITypeTag g_type_info_get_storage_type (GITypeInfo *info);
+
+GI_AVAILABLE_IN_1_66
+void g_type_info_argument_from_hash_pointer (GITypeInfo *info,
+ gpointer hash_pointer,
+ GIArgument *arg);
+
+GI_AVAILABLE_IN_1_66
+gpointer g_type_info_hash_pointer_from_argument (GITypeInfo *info,
+ GIArgument *arg);
+
G_END_DECLS