tests: basesrc: unref gst_bus_timed_pop_filtered return
[platform/upstream/gstreamer.git] / gst / gststreamcollection.h
index 49734bd..11345c5 100644 (file)
@@ -26,7 +26,6 @@
 #define __GST_STREAM_COLLECTION_H__
 
 #include <gst/gstobject.h>
-#include <gst/gststreams.h>
 
 G_BEGIN_DECLS
 
@@ -42,6 +41,9 @@ typedef struct _GstStreamCollection GstStreamCollection;
 typedef struct _GstStreamCollectionClass GstStreamCollectionClass;
 typedef struct _GstStreamCollectionPrivate GstStreamCollectionPrivate;
 
+#include <gst/gststreamcollection.h>
+#include <gst/gststreams.h>
+
 /**
  * GstStreamCollection:
  *
@@ -65,9 +67,9 @@ typedef struct _GstStreamCollectionPrivate GstStreamCollectionPrivate;
  * Since: 1.10
  */
 struct _GstStreamCollection {
+  /*< private >*/
   GstObject object;
 
-  /*< private >*/
   gchar *upstream_id;
   GstStreamCollectionPrivate *priv;
 
@@ -91,18 +93,29 @@ 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);
 
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstStreamCollection, gst_object_unref)
+#endif
+
 G_END_DECLS
 
 #endif /* __GST_STREAM_COLLECTION_H__ */