From 6f54f3619960c6c08d21dafe53cffaf74ab459e1 Mon Sep 17 00:00:00 2001 From: Anton Belka Date: Mon, 21 May 2012 01:48:29 +0300 Subject: [PATCH] toc: Add boxed types for GstToc and GstTocEntry --- gst/gsttoc.c | 5 +++++ gst/gsttoc.h | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/gst/gsttoc.c b/gst/gsttoc.c index f04fbdf..44f3b0a 100644 --- a/gst/gsttoc.c +++ b/gst/gsttoc.c @@ -72,6 +72,11 @@ #include "gstpad.h" #include "gstquark.h" +G_DEFINE_BOXED_TYPE (GstToc, gst_toc, + (GBoxedCopyFunc) gst_toc_copy, (GBoxedFreeFunc) gst_toc_free); +G_DEFINE_BOXED_TYPE (GstTocEntry, gst_toc_entry, + (GBoxedCopyFunc) gst_toc_entry_copy, (GBoxedFreeFunc) gst_toc_entry_free); + /** * gst_toc_new: * diff --git a/gst/gsttoc.h b/gst/gsttoc.h index b3e0fc0..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,6 +93,10 @@ 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); -- 2.7.4