mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +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\": {"
|
||||
"\"construct-only\": %s,"
|
||||
"\"construct\": %s,"
|
||||
"\"readable\": %s,"
|
||||
"\"writable\": %s,"
|
||||
"\"blurb\": \"%s\","
|
||||
"\"type-name\": \"%s\"",
|
||||
|
@ -357,6 +358,7 @@ _add_properties (GString * json, GObject * object, GObjectClass * klass)
|
|||
spec->name,
|
||||
spec->flags & G_PARAM_CONSTRUCT_ONLY ? "true" : "false",
|
||||
spec->flags & G_PARAM_CONSTRUCT ? "true" : "false",
|
||||
spec->flags & G_PARAM_READABLE ? "true" : "false",
|
||||
spec->flags & G_PARAM_WRITABLE ? "true" : "false",
|
||||
tmpstr, g_type_name (G_PARAM_SPEC_VALUE_TYPE (spec)));
|
||||
g_free (tmpstr);
|
||||
|
|
Loading…
Reference in a new issue