X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gst%2Fgsttoc.h;h=d59cf848eaacf883ad60f92483b9bbcc4d5fed09;hb=066b515985897495cae32fca5b7eeeec260c40c9;hp=a1a7b8cf2f3c5981f7a05e53a3d61134cf23678e;hpb=bfc87ac576fa36af3bf75b2fa7c4e6c989637814;p=platform%2Fupstream%2Fgstreamer.git diff --git a/gst/gsttoc.h b/gst/gsttoc.h index a1a7b8c..d59cf84 100644 --- a/gst/gsttoc.h +++ b/gst/gsttoc.h @@ -29,6 +29,9 @@ G_BEGIN_DECLS +#define GST_TYPE_TOC (gst_toc_get_type ()) +#define GST_TYPE_TOC_ENTRY (gst_toc_entry_get_type ()) + typedef struct _GstTocEntry GstTocEntry; typedef struct _GstToc GstToc; @@ -90,10 +93,14 @@ struct _GstToc { gpointer _gst_reserved[GST_PADDING]; }; +/* functions to return type structures */ +GType gst_toc_get_type (void); +GType gst_toc_entry_get_type (void); + /* functions to create new structures */ GstToc * gst_toc_new (void); GstTocEntry * gst_toc_entry_new (GstTocEntryType type, const gchar *uid); -GstTocEntry * gst_toc_entry_new_with_pad (GstTocEntryType type, const gchar *uid, gpointer pad); +GstTocEntry * gst_toc_entry_new_with_pad (GstTocEntryType type, const gchar *uid, GstPad * pad); /* functions to free structures */ void gst_toc_entry_free (GstTocEntry *entry); @@ -105,6 +112,7 @@ GstToc * gst_toc_copy (const GstToc *toc); void gst_toc_entry_set_start_stop (GstTocEntry *entry, gint64 start, gint64 stop); gboolean gst_toc_entry_get_start_stop (const GstTocEntry *entry, gint64 *start, gint64 *stop); +const gchar * gst_toc_entry_type_get_nick (GstTocEntryType type); G_END_DECLS