memory: add boxed GType for the allocator
authorWim Taymans <wim.taymans@collabora.co.uk>
Mon, 30 Jan 2012 12:28:34 +0000 (13:28 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Mon, 30 Jan 2012 12:28:34 +0000 (13:28 +0100)
gst/gstmemory.c
gst/gstmemory.h

index 4e822ed..573d4f1 100644 (file)
@@ -73,6 +73,9 @@
 G_DEFINE_BOXED_TYPE (GstMemory, gst_memory, (GBoxedCopyFunc) gst_memory_ref,
     (GBoxedFreeFunc) gst_memory_unref);
 
+G_DEFINE_BOXED_TYPE (GstAllocator, gst_allocator,
+    (GBoxedCopyFunc) gst_allocator_ref, (GBoxedFreeFunc) gst_allocator_unref);
+
 /**
  * gst_memory_alignment:
  *
index f3d3095..3d09972 100644 (file)
@@ -32,6 +32,9 @@ G_BEGIN_DECLS
 #define GST_TYPE_MEMORY (gst_memory_get_type())
 GType gst_memory_get_type(void);
 
+#define GST_TYPE_ALLOCATOR (gst_allocator_get_type())
+GType gst_allocator_get_type(void);
+
 typedef struct _GstMemory GstMemory;
 typedef struct _GstMemoryInfo GstMemoryInfo;
 typedef struct _GstAllocator GstAllocator;