orcparse: add gtk-doc blurb for new API
authorTim-Philipp Müller <tim@centricular.com>
Mon, 29 May 2023 18:59:11 +0000 (19:59 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Mon, 29 May 2023 22:52:06 +0000 (23:52 +0100)
Part-of: <https://gitlab.freedesktop.org/gstreamer/orc/-/merge_requests/104>

orc/orcparse.c

index aae6fb9..b0d6709 100644 (file)
@@ -147,6 +147,18 @@ orc_parse_full (const char *code, OrcProgram ***programs, char **log)
   return n_programs;
 }
 
+/**
+ * orc_parse_code:
+ * @code: the orc source code
+ * @programs: (out) (array length=n_programs): where to store the parsed orc programs
+ * @n_programs: (out): number of parsed programs stored in @programs
+ * @errors: (out) (array length=n_errors) (nullable): where to store parse error details, or %NULL
+ * @n_errors: (out): number of parse errors stored in @errors
+ *
+ * Returns: 0 on success, -1 if there were any parse errors
+ *
+ * Since: 0.4.34
+ */
 int
 orc_parse_code (const char *code, OrcProgram ***programs, int *n_programs,
                 OrcParseError ***errors, int *n_errors)