mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 07:16:55 +00:00
docs: Add boolean field for readability of properties
Some properties are write-only. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/496>
This commit is contained in:
parent
41d77e0327
commit
d0e430a690
1 changed files with 2 additions and 0 deletions
|
@ -350,6 +350,7 @@ _add_properties (GString * json, GObject * object, GObjectClass * klass)
|
||||||
"\"%s\": {"
|
"\"%s\": {"
|
||||||
"\"construct-only\": %s,"
|
"\"construct-only\": %s,"
|
||||||
"\"construct\": %s,"
|
"\"construct\": %s,"
|
||||||
|
"\"readable\": %s,"
|
||||||
"\"writable\": %s,"
|
"\"writable\": %s,"
|
||||||
"\"blurb\": \"%s\","
|
"\"blurb\": \"%s\","
|
||||||
"\"type-name\": \"%s\"",
|
"\"type-name\": \"%s\"",
|
||||||
|
@ -357,6 +358,7 @@ _add_properties (GString * json, GObject * object, GObjectClass * klass)
|
||||||
spec->name,
|
spec->name,
|
||||||
spec->flags & G_PARAM_CONSTRUCT_ONLY ? "true" : "false",
|
spec->flags & G_PARAM_CONSTRUCT_ONLY ? "true" : "false",
|
||||||
spec->flags & G_PARAM_CONSTRUCT ? "true" : "false",
|
spec->flags & G_PARAM_CONSTRUCT ? "true" : "false",
|
||||||
|
spec->flags & G_PARAM_READABLE ? "true" : "false",
|
||||||
spec->flags & G_PARAM_WRITABLE ? "true" : "false",
|
spec->flags & G_PARAM_WRITABLE ? "true" : "false",
|
||||||
tmpstr, g_type_name (G_PARAM_SPEC_VALUE_TYPE (spec)));
|
tmpstr, g_type_name (G_PARAM_SPEC_VALUE_TYPE (spec)));
|
||||||
g_free (tmpstr);
|
g_free (tmpstr);
|
||||||
|
|
Loading…
Reference in a new issue