toc: Add boxed types for GstToc and GstTocEntry

This commit is contained in:
Anton Belka 2012-05-21 01:48:29 +03:00 committed by Sebastian Dröge
parent 04f8cd886d
commit 6f54f36199
2 changed files with 12 additions and 0 deletions

View file

@ -72,6 +72,11 @@
#include "gstpad.h" #include "gstpad.h"
#include "gstquark.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: * gst_toc_new:
* *

View file

@ -29,6 +29,9 @@
G_BEGIN_DECLS 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 _GstTocEntry GstTocEntry;
typedef struct _GstToc GstToc; typedef struct _GstToc GstToc;
@ -90,6 +93,10 @@ struct _GstToc {
gpointer _gst_reserved[GST_PADDING]; 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 */ /* functions to create new structures */
GstToc * gst_toc_new (void); GstToc * gst_toc_new (void);
GstTocEntry * gst_toc_entry_new (GstTocEntryType type, const gchar *uid); GstTocEntry * gst_toc_entry_new (GstTocEntryType type, const gchar *uid);