tests: basesrc: unref gst_bus_timed_pop_filtered return
[platform/upstream/gstreamer.git] / gst / gststreamcollection.h
index 7ee2ae2..11345c5 100644 (file)
@@ -26,7 +26,6 @@
 #define __GST_STREAM_COLLECTION_H__
 
 #include <gst/gstobject.h>
-#include <gst/gststreams.h>
 
 G_BEGIN_DECLS
 
@@ -41,6 +40,10 @@ G_BEGIN_DECLS
 typedef struct _GstStreamCollection GstStreamCollection;
 typedef struct _GstStreamCollectionClass GstStreamCollectionClass;
 typedef struct _GstStreamCollectionPrivate GstStreamCollectionPrivate;
+
+#include <gst/gststreamcollection.h>
+#include <gst/gststreams.h>
+
 /**
  * GstStreamCollection:
  *
@@ -61,11 +64,12 @@ typedef struct _GstStreamCollectionPrivate GstStreamCollectionPrivate;
  * Applications can activate streams from a collection by using the
  * #GST_EVENT_SELECT_STREAMS event on a pipeline, bin or element.
  *
+ * Since: 1.10
  */
 struct _GstStreamCollection {
+  /*< private >*/
   GstObject object;
 
-  /*< private >*/
   gchar *upstream_id;
   GstStreamCollectionPrivate *priv;
 
@@ -89,17 +93,28 @@ struct _GstStreamCollectionClass {
   gpointer _gst_reserved[GST_PADDING];
 };
 
+GST_API
 GType gst_stream_collection_get_type (void);
 
+GST_API
 GstStreamCollection *gst_stream_collection_new (const gchar *upstream_id);
 
+GST_API
 const gchar *gst_stream_collection_get_upstream_id (GstStreamCollection *collection);
 
+GST_API
 guint gst_stream_collection_get_size (GstStreamCollection *collection);
+
+GST_API
 GstStream *gst_stream_collection_get_stream (GstStreamCollection *collection, guint index);
 
+GST_API
 gboolean gst_stream_collection_add_stream (GstStreamCollection *collection,
-                                          GstStream *stream);
+                                           GstStream *stream);
+
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstStreamCollection, gst_object_unref)
+#endif
 
 G_END_DECLS