#define __GST_STREAM_COLLECTION_H__
#include <gst/gstobject.h>
-#include <gst/gststreams.h>
G_BEGIN_DECLS
typedef struct _GstStreamCollectionClass GstStreamCollectionClass;
typedef struct _GstStreamCollectionPrivate GstStreamCollectionPrivate;
+#include <gst/gststreamcollection.h>
+#include <gst/gststreams.h>
+
/**
* GstStreamCollection:
*
* Since: 1.10
*/
struct _GstStreamCollection {
+ /*< private >*/
GstObject object;
- /*< private >*/
gchar *upstream_id;
GstStreamCollectionPrivate *priv;
gpointer _gst_reserved[GST_PADDING];
};
+GST_EXPORT
GType gst_stream_collection_get_type (void);
+GST_EXPORT
GstStreamCollection *gst_stream_collection_new (const gchar *upstream_id);
+GST_EXPORT
const gchar *gst_stream_collection_get_upstream_id (GstStreamCollection *collection);
+GST_EXPORT
guint gst_stream_collection_get_size (GstStreamCollection *collection);
+
+GST_EXPORT
GstStream *gst_stream_collection_get_stream (GstStreamCollection *collection, guint index);
+GST_EXPORT
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__ */