summaryrefslogtreecommitdiff
path: root/docs/gir-1.2.rnc
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2022-08-30 23:45:50 +0100
committerEmmanuele Bassi <ebassi@gmail.com>2023-01-08 14:03:20 +0000
commit1053187779726413926676bad585780e4ac13ec0 (patch)
treeade58ed5bc8cd851d9664f7f12e1325c82d2f466 /docs/gir-1.2.rnc
parentbfe4b306506547bd7bbc25123c1323e561b5096e (diff)
downloadgobject-introspection-1053187779726413926676bad585780e4ac13ec0.tar.gz
Add an optional attribute for the property default value
The default-value attribute for a property element is fundamentally meant for documentation generators. We only care about the GIR data, as the conversion from the default value to a string is lossy by definition, and may very well not roundtrip.
Diffstat (limited to 'docs/gir-1.2.rnc')
-rw-r--r--docs/gir-1.2.rnc2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/gir-1.2.rnc b/docs/gir-1.2.rnc
index 7c398be0..5182f7cb 100644
--- a/docs/gir-1.2.rnc
+++ b/docs/gir-1.2.rnc
@@ -350,6 +350,8 @@ grammar {
attribute setter { xsd:string }?,
## The getter function for this property
attribute getter { xsd:string }?,
+ ## The default value of the property, as a string; if missing, the default value is zero for integer types, and null for pointer types
+ attribute default-value { xsd:string }?,
# Define the transfer of ownership of the property element
TransferOwnership?,