![]() |
![]() |
![]() |
GStreamer 0.9 Core Reference Manual | ![]() |
---|
GstMiniObjectGstMiniObject — |
#include <gst/gst.h> GstMiniObject; enum GstMiniObjectFlags; GstMiniObject* (*GstMiniObjectCopyFunction) (const GstMiniObject*); void (*GstMiniObjectFinalizeFunction) (GstMiniObject*); #define GST_MINI_OBJECT_FLAGS (obj) #define GST_MINI_OBJECT_FLAG_IS_SET (obj,flag) #define GST_MINI_OBJECT_FLAG_SET (obj,flag) #define GST_MINI_OBJECT_FLAG_UNSET (obj,flag) #define GST_MINI_OBJECT_REFCOUNT (obj) #define GST_MINI_OBJECT_REFCOUNT_VALUE (obj) GstMiniObject* gst_mini_object_new (GType type); GstMiniObject* gst_mini_object_copy (const GstMiniObject *mini_object); gboolean gst_mini_object_is_writable (const GstMiniObject *mini_object); GstMiniObject* gst_mini_object_make_writable (GstMiniObject *mini_object); GstMiniObject* gst_mini_object_ref (GstMiniObject *mini_object); void gst_mini_object_unref (GstMiniObject *mini_object); void gst_mini_object_replace (GstMiniObject **olddata, GstMiniObject *newdata); GParamSpec* gst_param_spec_mini_object (const char *name, const char *nick, const char *blurb, GType object_type, GParamFlags flags); void gst_value_set_mini_object (GValue *value, GstMiniObject *mini_object); void gst_value_take_mini_object (GValue *value, GstMiniObject *mini_object); GstMiniObject* gst_value_get_mini_object (const GValue *value);
typedef struct { GTypeInstance instance; gint refcount; guint flags; gpointer _gst_reserved[GST_PADDING]; } GstMiniObject;
typedef enum { GST_MINI_OBJECT_FLAG_READONLY = (1<<0), GST_MINI_OBJECT_FLAG_STATIC = (1<<1), GST_MINI_OBJECT_FLAG_LAST = (1<<4) } GstMiniObjectFlags;
GstMiniObject* (*GstMiniObjectCopyFunction) (const GstMiniObject*);
Param1 : |
|
Returns : |
#define GST_MINI_OBJECT_FLAG_IS_SET(obj,flag) (GST_MINI_OBJECT_FLAGS(obj) & (flag))
obj : |
|
flag : |
#define GST_MINI_OBJECT_FLAG_SET(obj,flag) (GST_MINI_OBJECT_FLAGS (obj) |= (flag))
obj : |
|
flag : |
#define GST_MINI_OBJECT_FLAG_UNSET(obj,flag) (GST_MINI_OBJECT_FLAGS (obj) &= ~(flag))
obj : |
|
flag : |
#define GST_MINI_OBJECT_REFCOUNT(obj) ((GST_MINI_OBJECT_CAST(obj))->refcount)
obj : |
#define GST_MINI_OBJECT_REFCOUNT_VALUE(obj) (g_atomic_int_get (&(GST_MINI_OBJECT_CAST(obj))->refcount))
obj : |
GstMiniObject* gst_mini_object_copy (const GstMiniObject *mini_object);
mini_object : |
|
Returns : |
gboolean gst_mini_object_is_writable (const GstMiniObject *mini_object);
mini_object : |
|
Returns : |
GstMiniObject* gst_mini_object_make_writable (GstMiniObject *mini_object);
mini_object : |
|
Returns : |
GstMiniObject* gst_mini_object_ref (GstMiniObject *mini_object);
mini_object : |
|
Returns : |
void gst_mini_object_replace (GstMiniObject **olddata, GstMiniObject *newdata);
olddata : |
|
newdata : |
GParamSpec* gst_param_spec_mini_object (const char *name, const char *nick, const char *blurb, GType object_type, GParamFlags flags);
name : |
|
nick : |
|
blurb : |
|
object_type : |
|
flags : |
|
Returns : |
void gst_value_set_mini_object (GValue *value, GstMiniObject *mini_object);
Set the contents of a GST_TYPE_MINI_OBJECT
derived GValue to
mini_object
.
The caller retains ownership of the reference.
value : |
a valid GValue of GST_TYPE_MINI_OBJECT derived type
|
mini_object : |
mini object value to set |
void gst_value_take_mini_object (GValue *value, GstMiniObject *mini_object);
Set the contents of a GST_TYPE_MINI_OBJECT
derived GValue to
mini_object
.
Takes over the ownership of the caller's reference to mini_object
;
the caller doesn't have to unref it any more.
value : |
a valid GValue of GST_TYPE_MINI_OBJECT derived type
|
mini_object : |
mini object value to take |
GstMiniObject* gst_value_get_mini_object (const GValue *value);
Get the contents of a GST_TYPE_MINI_OBJECT
derived GValue.
Does not increase the refcount of the returned object.
Returns
: mini object contents of value
value : |
a valid GValue of GST_TYPE_MINI_OBJECT derived type
|
Returns : |
<< GstMessage | GstObject >> |