docs: Add boolean field for readability of properties
authorSebastian Dröge <sebastian@centricular.com>
Tue, 19 May 2020 19:24:39 +0000 (22:24 +0300)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 20 May 2020 12:02:08 +0000 (12:02 +0000)
Some properties are write-only.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/496>

docs/gst-hotdoc-plugins-scanner.c

index 37ffb0c..b47fd3a 100644 (file)
@@ -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);