From b1cf4d87c9bc13d51969e52abf900a77b769ce12 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 22 May 2005 04:22:51 +0000 Subject: [PATCH] Add struct offsets to field and vfunc elements. 2005-05-22 Matthias Clasen * tests/*: Add struct offsets to field and vfunc elements. * src/generate.c (write_vfunc_info): Write offset information for vfuncs. * src/gidlnode.c (g_idl_node_build_metadata): Write the struct offsets into the metadata. * src/gidlparser.c: Parse the offset attributes of field and vfunc elements. * src/gidlnode.h: Add offset members to field and vfunc nodes. --- girepository/src/generate.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/girepository/src/generate.c b/girepository/src/generate.c index dac7c65c0..9b7418022 100644 --- a/girepository/src/generate.c +++ b/girepository/src/generate.c @@ -657,10 +657,12 @@ write_vfunc_info (const gchar *namespace, GIVFuncInfoFlags flags; const gchar *name; gboolean deprecated; + gint offset; name = g_base_info_get_name ((GIBaseInfo *)info); flags = g_vfunc_info_get_flags (info); deprecated = g_base_info_is_deprecated ((GIBaseInfo *)info); + offset = g_vfunc_info_get_offset (info); g_fprintf (file, " \n"); write_callable_info (namespace, (GICallableInfo*)info, file, 6);