-#define GST_IMPLEMENT_V4L2_PROBE_METHODS(Type_Class, interface_as_function) \
- \
-static void \
-interface_as_function ## _probe_probe_property (GstPropertyProbe * probe, \
- guint prop_id, \
- const GParamSpec * pspec) \
-{ \
- Type_Class *this_class = (Type_Class*) G_OBJECT_GET_CLASS (probe); \
- gst_v4l2_probe_probe_property (probe, prop_id, pspec, \
- &this_class->v4l2_class_devices); \
-} \
- \
-static gboolean \
-interface_as_function ## _probe_needs_probe (GstPropertyProbe * probe, \
- guint prop_id, \
- const GParamSpec * pspec) \
-{ \
- Type_Class *this_class = (Type_Class*) G_OBJECT_GET_CLASS (probe); \
- return gst_v4l2_probe_needs_probe (probe, prop_id, pspec, \
- &this_class->v4l2_class_devices); \
-} \
- \
-static GValueArray * \
-interface_as_function ## _probe_get_values (GstPropertyProbe * probe, \
- guint prop_id, \
- const GParamSpec * pspec) \
-{ \
- Type_Class *this_class = (Type_Class*) G_OBJECT_GET_CLASS (probe); \
- return gst_v4l2_probe_get_values (probe, prop_id, pspec, \
- &this_class->v4l2_class_devices); \
-} \
- \
-static void \
-interface_as_function ## _property_probe_interface_init (GstPropertyProbeInterface * iface) \
-{ \
- iface->get_properties = gst_v4l2_probe_get_properties; \
- iface->probe_property = interface_as_function ## _probe_probe_property; \
- iface->needs_probe = interface_as_function ## _probe_needs_probe; \
- iface->get_values = interface_as_function ## _probe_get_values; \
-}
+/* TODO Move to proper namespace */
+/* open/close the device */
+gboolean gst_v4l2_open (GstV4l2Object * v4l2object);
+gboolean gst_v4l2_dup (GstV4l2Object * v4l2object, GstV4l2Object * other);
+gboolean gst_v4l2_close (GstV4l2Object * v4l2object);
+
+/* norm/input/output */
+gboolean gst_v4l2_get_norm (GstV4l2Object * v4l2object, v4l2_std_id * norm);
+gboolean gst_v4l2_set_norm (GstV4l2Object * v4l2object, v4l2_std_id norm);
+gboolean gst_v4l2_get_input (GstV4l2Object * v4l2object, gint * input);
+gboolean gst_v4l2_set_input (GstV4l2Object * v4l2object, gint input);
+gboolean gst_v4l2_get_output (GstV4l2Object * v4l2object, gint * output);
+gboolean gst_v4l2_set_output (GstV4l2Object * v4l2object, gint output);
+
+/* frequency control */
+gboolean gst_v4l2_get_frequency (GstV4l2Object * v4l2object, gint tunernum, gulong * frequency);
+gboolean gst_v4l2_set_frequency (GstV4l2Object * v4l2object, gint tunernum, gulong frequency);
+gboolean gst_v4l2_signal_strength (GstV4l2Object * v4l2object, gint tunernum, gulong * signal);
+
+/* attribute control */
+gboolean gst_v4l2_get_attribute (GstV4l2Object * v4l2object, int attribute, int * value);
+gboolean gst_v4l2_set_attribute (GstV4l2Object * v4l2object, int attribute, const int value);
+gboolean gst_v4l2_set_controls (GstV4l2Object * v4l2object, GstStructure * controls);