[gir-repository] Add Gst-custom.c, annotate gst_init



commit 964e6b86562032a7a4363cfa57a1cd67cc5a0da1
Author: Colin Walters <walters verbum org>
Date:   Fri Jul 3 21:41:18 2009 -0400

    Add Gst-custom.c, annotate gst_init
    
    We need to annotate all _init functions so they can be used
    sanely from bindings.

 gir/Gst-custom.c |    7 +++++++
 gir/Makefile.am  |    4 +++-
 2 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/gir/Gst-custom.c b/gir/Gst-custom.c
new file mode 100644
index 0000000..e0d17e9
--- /dev/null
+++ b/gir/Gst-custom.c
@@ -0,0 +1,7 @@
+/* -*- mode: C; c-basic-offset: 4; indent-tabs-mode: nil; -*- */
+
+/**
+ * gst_init:
+ * @argc: (inout): argument count
+ * @argv: (inout) (array length=argc) (allow-none): arguments
+ **/
diff --git a/gir/Makefile.am b/gir/Makefile.am
index 3ecdd17..64fa086 100644
--- a/gir/Makefile.am
+++ b/gir/Makefile.am
@@ -513,7 +513,7 @@ endif BUILD_GOOCANVAS
 # GStreamer
 if BUILD_GSTREAMER
 GST_INCLUDEDIR=`pkg-config --variable=includedir gstreamer-0.10`
-Gst-0.10.gir: $(INTROSPECTION_SCANNER)
+Gst-0.10.gir: $(INTROSPECTION_SCANNER) Gst-custom.c
 	$(DEBUG) $(INTROSPECTION_SCANNER) -v --namespace Gst --nsversion=0.10 \
 	    --add-include-path=$(srcdir) --add-include-path=. \
              --include=GObject-2.0 \
@@ -525,6 +525,7 @@ Gst-0.10.gir: $(INTROSPECTION_SCANNER)
              --pkg gstreamer-0.10 \
              --pkg gstreamer-base-0.10 \
              --output $@ \
+	     Gst-custom.c \
 	     $(GST_INCLUDEDIR)/gst/gstbin.h \
 	     $(GST_INCLUDEDIR)/gst/gstbuffer.h \
 	     $(GST_INCLUDEDIR)/gst/gstbus.h \
@@ -800,6 +801,7 @@ GstVideo-0.10.gir: Gst-0.10.gir GstBase-0.10.gir $(INTROSPECTION_SCANNER)
 BUILT_GIRSOURCES += GstVideo-0.10.gir
 
 endif BUILD_GSTREAMER_PLUGINS_BASE
+EXTRA_DIST += Gst-custom.c
 
 if BUILD_MISSIONCONTROL
 MISSIONCONTROL_INCLUDEDIR=`pkg-config --variable=includedir libmissioncontrol`



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]