mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
gstmemory: Register a GBoxed GType
Allows using it from g-i
This commit is contained in:
parent
deb8e74cad
commit
abab1b1d01
2 changed files with 5 additions and 0 deletions
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue