summaryrefslogtreecommitdiff
path: root/metadata-format.txt
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2005-05-09 19:32:10 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2005-05-09 19:32:10 +0000
commitbc11a26dc88ace282584279684fc338240be030b (patch)
tree45634d643db61eb8062bcab7c1ddb16601e2122d /metadata-format.txt
parent5575c3ca5544ba5f99cfd820079ec8745c5beba3 (diff)
downloadgobject-introspection-bc11a26dc88ace282584279684fc338240be030b.tar.gz
Clean up handling of names. All elements have a "name", only the elements
2005-05-09 Matthias Clasen <mclasen@redhat.com> * gidl.dtd: Clean up handling of names. All elements have a "name", only the elements corresponding to actual callable functions (function, method, constructor), have an additional "symbol" attribute holding the dlsym()-able function name. * src/generate.c: Adapt to generate xml matching the new dtd. * src/gidlparser.c: * src/gidlnode.c: Adapt to parse the new dtd. * tests/*.test: Adjust to the new dtd. * metadata-format.txt: * src/gmetadata.h: Remove the short_name field from the ValueBlob. * src/gmetadata.c: Shrink size of ValueBlob to 12. * src/girepository.h: * src/ginfo.c (g_value_info_get_short_name): Removed
Diffstat (limited to 'metadata-format.txt')
-rw-r--r--metadata-format.txt14
1 files changed, 6 insertions, 8 deletions
diff --git a/metadata-format.txt b/metadata-format.txt
index d9b7fd7e..c6234468 100644
--- a/metadata-format.txt
+++ b/metadata-format.txt
@@ -1,7 +1,10 @@
GObject binary metadata for introspection
-----------------------------------------
-Version 0.3
+Version 0.4
+
+Changes since 0.3:
+- drop short_name for ValueBlob.
Changes since 0.2:
- make inline types 4 bytes after all, remove header->types and allow
@@ -724,10 +727,9 @@ struct_offset:
type: The type of the field.
-ValueBlob (16 bytes)
+ValueBlob (12 bytes)
-Values commonly occur in enums and flags, but we also allow them to occur
-in interfaces or freestanding, to describe constants.
+Values commonly occur in enums and flags.
struct ValueBlob
{
@@ -735,13 +737,9 @@ struct ValueBlob
guint reserved :31;
guint32 name;
- guint32 short_name;
guint32 value;
}
-short_name:
- A short name for the value;
-
value: The numerical value;