gstmemory: Register a GBoxed GType
authorEdward Hervey <edward.hervey@collabora.co.uk>
Thu, 10 Nov 2011 12:51:28 +0000 (13:51 +0100)
committerEdward Hervey <edward.hervey@collabora.co.uk>
Thu, 10 Nov 2011 12:54:02 +0000 (13:54 +0100)
Allows using it from g-i

gst/gstmemory.c
gst/gstmemory.h

index ebaefc3..7ea2380 100644 (file)
@@ -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
index c1f8e67..c4d6187 100644 (file)
@@ -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;