From abab1b1d015839eeeab78763e27ebc80bbc71aaa Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Thu, 10 Nov 2011 13:51:28 +0100 Subject: [PATCH] gstmemory: Register a GBoxed GType Allows using it from g-i --- gst/gstmemory.c | 2 ++ gst/gstmemory.h | 3 +++ 2 files changed, 5 insertions(+) diff --git a/gst/gstmemory.c b/gst/gstmemory.c index ebaefc3a42..7ea238022f 100644 --- a/gst/gstmemory.c +++ b/gst/gstmemory.c @@ -61,6 +61,8 @@ #include "gst_private.h" #include "gstmemory.h" +G_DEFINE_BOXED_TYPE (GstMemory, gst_memory, (GBoxedCopyFunc) gst_memory_ref, + (GBoxedFreeFunc) gst_memory_unref); /* buffer alignment in bytes - 1 * an alignment of 7 would be the same as malloc() guarantees diff --git a/gst/gstmemory.h b/gst/gstmemory.h index c1f8e67c23..c4d618706f 100644 --- a/gst/gstmemory.h +++ b/gst/gstmemory.h @@ -29,6 +29,9 @@ G_BEGIN_DECLS +#define GST_TYPE_MEMORY (gst_memory_get_type()) +GType gst_memory_get_type(void); + typedef struct _GstMemory GstMemory; typedef struct _GstMemoryInfo GstMemoryInfo; typedef struct _GstAllocator GstAllocator;