diff options
Diffstat (limited to 'gst-libs/gst/propertyprobe/propertyprobe.h')
-rw-r--r-- | gst-libs/gst/propertyprobe/propertyprobe.h | 68 |
1 files changed, 37 insertions, 31 deletions
diff --git a/gst-libs/gst/propertyprobe/propertyprobe.h b/gst-libs/gst/propertyprobe/propertyprobe.h index 39250a32..695aa4da 100644 --- a/gst-libs/gst/propertyprobe/propertyprobe.h +++ b/gst-libs/gst/propertyprobe/propertyprobe.h @@ -25,6 +25,7 @@ #include <gst/gst.h> G_BEGIN_DECLS + #define GST_TYPE_PROPERTY_PROBE \ (gst_property_probe_get_type ()) #define GST_PROPERTY_PROBE(obj) \ @@ -33,59 +34,64 @@ G_BEGIN_DECLS (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_PROPERTY_PROBE)) #define GST_PROPERTY_PROBE_GET_IFACE(obj) \ (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GST_TYPE_PROPERTY_PROBE, GstPropertyProbeInterface)) -typedef struct _GstPropertyProbe GstPropertyProbe; /* dummy typedef */ -typedef struct _GstPropertyProbeInterface -{ +typedef struct _GstPropertyProbe GstPropertyProbe; /* dummy typedef */ + +typedef struct _GstPropertyProbeInterface { GTypeInterface klass; /* signals */ - void (*probe_needed) (GstPropertyProbe * probe, const GParamSpec * pspec); + void (*probe_needed) (GstPropertyProbe *probe, + const GParamSpec *pspec); /* virtual functions */ - const GList *(*get_properties) (GstPropertyProbe * probe); - gboolean (*needs_probe) (GstPropertyProbe * probe, - guint prop_id, const GParamSpec * pspec); - void (*probe_property) (GstPropertyProbe * probe, - guint prop_id, const GParamSpec * pspec); - GValueArray *(*get_values) (GstPropertyProbe * probe, - guint prop_id, const GParamSpec * pspec); + const GList * (*get_properties) (GstPropertyProbe *probe); + gboolean (*needs_probe) (GstPropertyProbe *probe, + guint prop_id, + const GParamSpec *pspec); + void (*probe_property) (GstPropertyProbe *probe, + guint prop_id, + const GParamSpec *pspec); + GValueArray * (*get_values) (GstPropertyProbe *probe, + guint prop_id, + const GParamSpec *pspec); gpointer _gst_reserved[GST_PADDING]; } GstPropertyProbeInterface; -GType gst_property_probe_get_type (void); +GType gst_property_probe_get_type (void); /* virtual class function wrappers */ /* returns list of GParamSpecs */ -const GList *gst_property_probe_get_properties (GstPropertyProbe * probe); -const GParamSpec *gst_property_probe_get_property (GstPropertyProbe * probe, - const gchar * name); +const GList * gst_property_probe_get_properties (GstPropertyProbe *probe); +const GParamSpec *gst_property_probe_get_property (GstPropertyProbe *probe, + const gchar *name); /* probe one property */ -void gst_property_probe_probe_property (GstPropertyProbe * probe, - const GParamSpec * pspec); -void gst_property_probe_probe_property_name (GstPropertyProbe * probe, - const gchar * name); +void gst_property_probe_probe_property (GstPropertyProbe *probe, + const GParamSpec *pspec); +void gst_property_probe_probe_property_name (GstPropertyProbe *probe, + const gchar *name); /* do we need a probe? */ -gboolean gst_property_probe_needs_probe (GstPropertyProbe * probe, - const GParamSpec * pspec); -gboolean gst_property_probe_needs_probe_name (GstPropertyProbe * probe, - const gchar * name); +gboolean gst_property_probe_needs_probe (GstPropertyProbe *probe, + const GParamSpec *pspec); +gboolean gst_property_probe_needs_probe_name (GstPropertyProbe *probe, + const gchar *name); /* returns list of GValues */ -GValueArray *gst_property_probe_get_values (GstPropertyProbe * probe, - const GParamSpec * pspec); -GValueArray *gst_property_probe_get_values_name (GstPropertyProbe * probe, - const gchar * name); +GValueArray * gst_property_probe_get_values (GstPropertyProbe *probe, + const GParamSpec *pspec); +GValueArray * gst_property_probe_get_values_name (GstPropertyProbe *probe, + const gchar *name); /* sugar */ -GValueArray *gst_property_probe_probe_and_get_values (GstPropertyProbe * probe, - const GParamSpec * pspec); -GValueArray *gst_property_probe_probe_and_get_values_name (GstPropertyProbe * - probe, const gchar * name); +GValueArray * gst_property_probe_probe_and_get_values (GstPropertyProbe *probe, + const GParamSpec *pspec); +GValueArray * gst_property_probe_probe_and_get_values_name (GstPropertyProbe *probe, + const gchar *name); G_END_DECLS + #endif /* __GST_PROPERTY_PROBE_H__ */ |