summaryrefslogtreecommitdiff
path: root/Makefile.introspection
diff options
context:
space:
mode:
authorPhilip Chimento <philip.chimento@gmail.com>2022-02-16 10:37:39 -0800
committerPhilip Chimento <philip.chimento@gmail.com>2022-02-16 17:58:24 -0800
commit649905fc906a3768c3d77a13e2d86f1753d51ec2 (patch)
tree7ceaefe16d337be321dd7b800f7bc458e5af0b9d /Makefile.introspection
parent9e98c46231fc94d43356e8d4b2ca275610cda176 (diff)
downloadgobject-introspection-649905fc906a3768c3d77a13e2d86f1753d51ec2.tar.gz
gitypeinfo: Add pointer-stuffing functions for GITypeTag storage type
This adds gi_type_tag_argument_from_hash_pointer() and gi_type_tag_hash_pointer_from_argument(). They do the same thing as the corresponding g_type_info_... functions, which are used to pack and unpack the correct field of a GIArgument into/from a data pointer in GHashTable or GList, regardless of machine architecture or endianness. These functions take a GITypeTag obtained from g_type_info_get_storage_type(), instead of a GITypeInfo pointer. (The storage type is the only piece of data that is actually used from the GITypeInfo structure.) It's intended for bindings using an argument cache, such as GJS and PyGObject, so that they don't have to store a whole 64-bit GITypeInfo pointer in their cache in many common cases, and can just store the 5-bit type tag instead. The original g_type_info_... functions are reimplemented in terms of the new g_type_tag... functions.
Diffstat (limited to 'Makefile.introspection')
0 files changed, 0 insertions, 0 deletions