[gegl/wip/nielsdg/vapi-fixes: 2/2] Fix some VAPI annotations
- From: Niels De Graef <nielsdg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl/wip/nielsdg/vapi-fixes: 2/2] Fix some VAPI annotations
- Date: Thu, 7 May 2020 23:09:16 +0000 (UTC)
commit 73f519ae2b6ce2a4f7757bd8c23f746839c9e98d
Author: Niels De Graef <nielsdegraef gmail com>
Date: Fri May 8 01:05:21 2020 +0200
Fix some VAPI annotations
* No need for cheader_filename="gegl.h", since the GIR file now
correctly includes it
* Mark init.argv as `(optional)`, since NULL is a valid value
* Mark some vararg functions as skip=false since Vala can handle these
gegl/Gegl.metadata.in | 11 +++++++++--
gegl/gegl-init.h | 2 +-
2 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/gegl/Gegl.metadata.in b/gegl/Gegl.metadata.in
index 75e8dd41e..f53e3f511 100644
--- a/gegl/Gegl.metadata.in
+++ b/gegl/Gegl.metadata.in
@@ -1,5 +1,12 @@
-Gegl cheader_filename="gegl.h"
ParamSpecFormat skip
ParamFormat skip
param_spec_format skip
-init.argv unowned
\ No newline at end of file
+init.argv unowned
+
+render_op skip=false
+apply_op skip=false
+filter_op skip=false
+
+Node
+ .new_child skip=false
+ .link_many skip=false
diff --git a/gegl/gegl-init.h b/gegl/gegl-init.h
index 96706ea2b..3952419d2 100644
--- a/gegl/gegl-init.h
+++ b/gegl/gegl-init.h
@@ -42,7 +42,7 @@ G_BEGIN_DECLS
/**
* gegl_init:
- * @argc: (inout): a pointer to the number of command line arguments.
+ * @argc: (inout) (optional): a pointer to the number of command line arguments.
* @argv: (inout) (array length=argc) (allow-none): a pointer to the array of command line arguments.
*
* Call this function before using any other GEGL functions. It will
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]