cleaned up the examples, added Makefiles, etc
authorErik Walthinsen <omega@temple-baptist.org>
Mon, 1 Jan 2001 00:42:10 +0000 (00:42 +0000)
committerErik Walthinsen <omega@temple-baptist.org>
Mon, 1 Jan 2001 00:42:10 +0000 (00:42 +0000)
Original commit message from CVS:
cleaned up the examples, added Makefiles, etc

20 files changed:
examples/helloworld/helloworld.c
examples/helloworld2/helloworld2.c
examples/queue/queue.c
examples/queue2/queue2.c
examples/queue3/queue3.c
examples/queue4/queue4.c
examples/thread/thread.c
examples/xml/Makefile
examples/xml/createxml.c
examples/xml/runxml.c
tests/old/examples/helloworld/helloworld.c
tests/old/examples/helloworld2/helloworld2.c
tests/old/examples/queue/queue.c
tests/old/examples/queue2/queue2.c
tests/old/examples/queue3/queue3.c
tests/old/examples/queue4/queue4.c
tests/old/examples/thread/thread.c
tests/old/examples/xml/Makefile
tests/old/examples/xml/createxml.c
tests/old/examples/xml/runxml.c

index 3527cc0..c23e354 100644 (file)
@@ -1,9 +1,10 @@
+#include <stdlib.h>
 #include <gst/gst.h>
 
 gboolean playing;
 
 /* eos will be called when the src element has an end of stream */
-void eos(GstSrc *src
+void eos(GstElement *element
 {
   g_print("have eos, quitting\n");
 
index 376f700..51e4b77 100644 (file)
@@ -1,7 +1,8 @@
+#include <stdlib.h>
 #include <gst/gst.h>
 
 /* eos will be called when the src element has an end of stream */
-void eos(GstSrc *src) 
+void eos(GstElement *element)  
 {
   g_print("have eos, quitting\n");
 
index 10272da..f220207 100644 (file)
@@ -1,9 +1,10 @@
+#include <stdlib.h>
 #include <gst/gst.h>
 
 gboolean playing;
 
 /* eos will be called when the src element has an end of stream */
-void eos(GstSrc *src, gpointer data) 
+void eos(GstElement *element, gpointer data) 
 {
   g_print("have eos, quitting\n");
 
index 6258e9c..175802d 100644 (file)
@@ -1,9 +1,10 @@
+#include <stdlib.h>
 #include <gst/gst.h>
 
 gboolean playing;
 
 /* eos will be called when the src element has an end of stream */
-void eos(GstSrc *src, gpointer data) 
+void eos(GstElement *element, gpointer data) 
 {
   g_print("have eos, quitting\n");
 
index fa79a78..e870978 100644 (file)
@@ -1,9 +1,10 @@
+#include <stdlib.h>
 #include <gst/gst.h>
 
 gboolean playing;
 
 /* eos will be called when the src element has an end of stream */
-void eos(GstSrc *src, gpointer data) 
+void eos(GstElement *element, gpointer data) 
 {
   g_print("have eos, quitting\n");
 
index a86b3ff..867bbe6 100644 (file)
@@ -1,9 +1,10 @@
+#include <stdlib.h>
 #include <gst/gst.h>
 
 gboolean playing;
 
 /* eos will be called when the src element has an end of stream */
-void eos(GstSrc *src, gpointer data) 
+void eos(GstElement *element, gpointer data) 
 {
   g_print("have eos, quitting\n");
 
index 4cd7721..2bb7582 100644 (file)
@@ -1,7 +1,7 @@
 #include <gst/gst.h>
 
 /* eos will be called when the src element has an end of stream */
-void eos(GstSrc *src, gpointer data) 
+void eos(GstElement *element, gpointer data) 
 {
   GstThread *thread = GST_THREAD(data);
   g_print("have eos, quitting\n");
index 1df7ca6..82d57b7 100644 (file)
@@ -1,9 +1,14 @@
 CC = libtool gcc
 
-xml: xml.c 
-       $(CC) -Wall -I../../ ../../gst/libgst.la `gnome-config --cflags --libs gnomeui` xml.c -o xml 
+all: createxml runxml
+
+createxml: createxml.c 
+       $(CC) -Wall -I../../ ../../gst/libgst.la `gnome-config --cflags --libs gnomeui` createxml.c -o createxml 
+
+runxml: runxml.c 
+       $(CC) -Wall -I../../ ../../gst/libgst.la `gnome-config --cflags --libs gnomeui` runxml.c -o runxml 
 
 clean: 
-       rm -f *.o xml
+       rm -f *.o createxml runxml
        
        
index 9a32100..9af7d37 100644 (file)
@@ -1,3 +1,4 @@
+#include <stdlib.h>
 #include <gst/gst.h>
 
 gboolean playing;
index 38b5219..57f4b47 100644 (file)
@@ -1,9 +1,10 @@
+#include <stdlib.h>
 #include <gst/gst.h>
 
 gboolean playing;
 
 /* eos will be called when the src element has an end of stream */
-void eos(GstSrc *src, gpointer data)
+void eos(GstElement *element, gpointer data)
 {
   g_print("have eos, quitting\n");
 
index 3527cc0..c23e354 100644 (file)
@@ -1,9 +1,10 @@
+#include <stdlib.h>
 #include <gst/gst.h>
 
 gboolean playing;
 
 /* eos will be called when the src element has an end of stream */
-void eos(GstSrc *src
+void eos(GstElement *element
 {
   g_print("have eos, quitting\n");
 
index 376f700..51e4b77 100644 (file)
@@ -1,7 +1,8 @@
+#include <stdlib.h>
 #include <gst/gst.h>
 
 /* eos will be called when the src element has an end of stream */
-void eos(GstSrc *src) 
+void eos(GstElement *element)  
 {
   g_print("have eos, quitting\n");
 
index 10272da..f220207 100644 (file)
@@ -1,9 +1,10 @@
+#include <stdlib.h>
 #include <gst/gst.h>
 
 gboolean playing;
 
 /* eos will be called when the src element has an end of stream */
-void eos(GstSrc *src, gpointer data) 
+void eos(GstElement *element, gpointer data) 
 {
   g_print("have eos, quitting\n");
 
index 6258e9c..175802d 100644 (file)
@@ -1,9 +1,10 @@
+#include <stdlib.h>
 #include <gst/gst.h>
 
 gboolean playing;
 
 /* eos will be called when the src element has an end of stream */
-void eos(GstSrc *src, gpointer data) 
+void eos(GstElement *element, gpointer data) 
 {
   g_print("have eos, quitting\n");
 
index fa79a78..e870978 100644 (file)
@@ -1,9 +1,10 @@
+#include <stdlib.h>
 #include <gst/gst.h>
 
 gboolean playing;
 
 /* eos will be called when the src element has an end of stream */
-void eos(GstSrc *src, gpointer data) 
+void eos(GstElement *element, gpointer data) 
 {
   g_print("have eos, quitting\n");
 
index a86b3ff..867bbe6 100644 (file)
@@ -1,9 +1,10 @@
+#include <stdlib.h>
 #include <gst/gst.h>
 
 gboolean playing;
 
 /* eos will be called when the src element has an end of stream */
-void eos(GstSrc *src, gpointer data) 
+void eos(GstElement *element, gpointer data) 
 {
   g_print("have eos, quitting\n");
 
index 4cd7721..2bb7582 100644 (file)
@@ -1,7 +1,7 @@
 #include <gst/gst.h>
 
 /* eos will be called when the src element has an end of stream */
-void eos(GstSrc *src, gpointer data) 
+void eos(GstElement *element, gpointer data) 
 {
   GstThread *thread = GST_THREAD(data);
   g_print("have eos, quitting\n");
index 1df7ca6..82d57b7 100644 (file)
@@ -1,9 +1,14 @@
 CC = libtool gcc
 
-xml: xml.c 
-       $(CC) -Wall -I../../ ../../gst/libgst.la `gnome-config --cflags --libs gnomeui` xml.c -o xml 
+all: createxml runxml
+
+createxml: createxml.c 
+       $(CC) -Wall -I../../ ../../gst/libgst.la `gnome-config --cflags --libs gnomeui` createxml.c -o createxml 
+
+runxml: runxml.c 
+       $(CC) -Wall -I../../ ../../gst/libgst.la `gnome-config --cflags --libs gnomeui` runxml.c -o runxml 
 
 clean: 
-       rm -f *.o xml
+       rm -f *.o createxml runxml
        
        
index 9a32100..9af7d37 100644 (file)
@@ -1,3 +1,4 @@
+#include <stdlib.h>
 #include <gst/gst.h>
 
 gboolean playing;
index 38b5219..57f4b47 100644 (file)
@@ -1,9 +1,10 @@
+#include <stdlib.h>
 #include <gst/gst.h>
 
 gboolean playing;
 
 /* eos will be called when the src element has an end of stream */
-void eos(GstSrc *src, gpointer data)
+void eos(GstElement *element, gpointer data)
 {
   g_print("have eos, quitting\n");