GstUtils

Name

GstUtils -- Utility functions

Synopsis


#include <gst/gst.h>


gint        gst_util_get_int_arg            (GtkObject *object,
                                             guchar *argname);
gboolean    gst_util_get_bool_arg           (GtkObject *object,
                                             guchar *argname);
glong       gst_util_get_long_arg           (GtkObject *object,
                                             guchar *argname);
gfloat      gst_util_get_float_arg          (GtkObject *object,
                                             guchar *argname);
gdouble     gst_util_get_double_arg         (GtkObject *object,
                                             guchar *argname);
guchar*     gst_util_get_string_arg         (GtkObject *object,
                                             guchar *argname);
gpointer    gst_util_get_pointer_arg        (GtkObject *object,
                                             guchar *argname);
GtkWidget*  gst_util_get_widget_arg         (GtkObject *object,
                                             guchar *argname);
void        gst_util_dump_mem               (guchar *mem,
                                             guint size);

Description

Some convenience functions

Details

gst_util_get_int_arg ()

gint        gst_util_get_int_arg            (GtkObject *object,
                                             guchar *argname);

Retrieves a property of an object as an integer.

object : the object to query
argname : the name of the argument
Returns : the property of the object


gst_util_get_bool_arg ()

gboolean    gst_util_get_bool_arg           (GtkObject *object,
                                             guchar *argname);

Retrieves a property of an object as a boolean.

object : the object to query
argname : the name of the argument
Returns : the property of the object


gst_util_get_long_arg ()

glong       gst_util_get_long_arg           (GtkObject *object,
                                             guchar *argname);

Retrieves a property of an object as a long.

object : the object to query
argname : the name of the argument
Returns : the property of the object


gst_util_get_float_arg ()

gfloat      gst_util_get_float_arg          (GtkObject *object,
                                             guchar *argname);

Retrieves a property of an object as a float.

object : the object to query
argname : the name of the argument
Returns : the property of the object


gst_util_get_double_arg ()

gdouble     gst_util_get_double_arg         (GtkObject *object,
                                             guchar *argname);

Retrieves a property of an object as a double.

object : the object to query
argname : the name of the argument
Returns : the property of the object


gst_util_get_string_arg ()

guchar*     gst_util_get_string_arg         (GtkObject *object,
                                             guchar *argname);

Retrieves a property of an object as a string.

object : the object to query
argname : the name of the argument
Returns : the property of the object


gst_util_get_pointer_arg ()

gpointer    gst_util_get_pointer_arg        (GtkObject *object,
                                             guchar *argname);

Retrieves a property of an object as a pointer.

object : the object to query
argname : the name of the argument
Returns : the property of the object


gst_util_get_widget_arg ()

GtkWidget*  gst_util_get_widget_arg         (GtkObject *object,
                                             guchar *argname);

Retrieves a property of an object as a widget.

object : the object to query
argname : the name of the argument
Returns : the property of the object


gst_util_dump_mem ()

void        gst_util_dump_mem               (guchar *mem,
                                             guint size);

Dumps the memory block into a hex representation. Useful for debugging.

mem : a pointer to the memory to dump
size : the size of the memory block to dump