gstmemory: Register a GBoxed GType

Allows using it from g-i
This commit is contained in:
Edward Hervey 2011-11-10 13:51:28 +01:00
parent deb8e74cad
commit abab1b1d01
2 changed files with 5 additions and 0 deletions

View file

@ -61,6 +61,8 @@
#include "gst_private.h" #include "gst_private.h"
#include "gstmemory.h" #include "gstmemory.h"
G_DEFINE_BOXED_TYPE (GstMemory, gst_memory, (GBoxedCopyFunc) gst_memory_ref,
(GBoxedFreeFunc) gst_memory_unref);
/* buffer alignment in bytes - 1 /* buffer alignment in bytes - 1
* an alignment of 7 would be the same as malloc() guarantees * an alignment of 7 would be the same as malloc() guarantees

View file

@ -29,6 +29,9 @@
G_BEGIN_DECLS G_BEGIN_DECLS
#define GST_TYPE_MEMORY (gst_memory_get_type())
GType gst_memory_get_type(void);
typedef struct _GstMemory GstMemory; typedef struct _GstMemory GstMemory;
typedef struct _GstMemoryInfo GstMemoryInfo; typedef struct _GstMemoryInfo GstMemoryInfo;
typedef struct _GstAllocator GstAllocator; typedef struct _GstAllocator GstAllocator;