From 25a54fc391b06e8b9f7e0c8cdb25ef5b1bcd3551 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sun, 21 Mar 2010 22:46:00 +0100 Subject: [PATCH] gst-camera: Add a header declaring the functions from the ui file --- tests/examples/camerabin/Makefile.am | 2 +- tests/examples/camerabin/gst-camera.c | 2 + tests/examples/camerabin/gst-camera.h | 105 ++++++++++++++++++++++++++ 3 files changed, 108 insertions(+), 1 deletion(-) create mode 100644 tests/examples/camerabin/gst-camera.h diff --git a/tests/examples/camerabin/Makefile.am b/tests/examples/camerabin/Makefile.am index e082c24507..afd4c36167 100644 --- a/tests/examples/camerabin/Makefile.am +++ b/tests/examples/camerabin/Makefile.am @@ -4,7 +4,7 @@ if HAVE_GTK GST_CAMERABIN_GTK_EXAMPLES = gst-camera -gst_camera_SOURCES = gst-camera.c +gst_camera_SOURCES = gst-camera.h gst-camera.c gst_camera_CFLAGS = \ -I$(top_builddir)/gst-libs \ $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS) \ diff --git a/tests/examples/camerabin/gst-camera.c b/tests/examples/camerabin/gst-camera.c index 516229bb6a..52c72c6b38 100644 --- a/tests/examples/camerabin/gst-camera.c +++ b/tests/examples/camerabin/gst-camera.c @@ -29,6 +29,8 @@ # include "config.h" #endif +#include "gst-camera.h" + #include #include #include diff --git a/tests/examples/camerabin/gst-camera.h b/tests/examples/camerabin/gst-camera.h new file mode 100644 index 0000000000..b027ecd23e --- /dev/null +++ b/tests/examples/camerabin/gst-camera.h @@ -0,0 +1,105 @@ +/* + * GStreamer + * Copyright (C) 2008 Nokia Corporation + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ +/* + * This is a demo application to test the camerabin element. + * If you have question don't hesitate in contact me edgard.lima@indt.org.br + */ + +#ifndef __GST_CAMERA_BIN_H__ +#define __GST_CAMERA_BIN_H__ + +#include + +void +on_windowMain_delete_event (GtkWidget * widget, GdkEvent * event, gpointer data); + +void +on_buttonShot_clicked (GtkButton * button, gpointer user_data); + +void +on_buttonPause_clicked (GtkButton * button, gpointer user_data); + +void +on_drawingareaView_realize (GtkWidget * widget, gpointer data); + +gboolean +on_drawingareaView_configure_event (GtkWidget * widget, + GdkEventConfigure * event, gpointer data); + +void +on_comboboxResolution_changed (GtkComboBox * widget, gpointer user_data); + +void +on_radiobuttonImageCapture_toggled (GtkToggleButton * togglebutton, + gpointer user_data); + +void +on_radiobuttonVideoCapture_toggled (GtkToggleButton * togglebutton, + gpointer user_data); + +void +on_rbBntVidEff_toggled (GtkToggleButton * togglebutton, gchar * effect); + +void +on_rbBntVidEffNone_toggled (GtkToggleButton * togglebutton, gpointer data); + +void +on_rbBntVidEffEdge_toggled (GtkToggleButton * togglebutton, gpointer data); + +void +on_rbBntVidEffAging_toggled (GtkToggleButton * togglebutton, gpointer user_data); + +void +on_rbBntVidEffDice_toggled (GtkToggleButton * togglebutton, gpointer user_data); + +void +on_rbBntVidEffWarp_toggled (GtkToggleButton * togglebutton, gpointer data); + +void +on_rbBntVidEffShagadelic_toggled (GtkToggleButton * togglebutton, gpointer data); + +void +on_rbBntVidEffVertigo_toggled (GtkToggleButton * togglebutton, gpointer data); + +void +on_rbBntVidEffRev_toggled (GtkToggleButton * togglebutton, gpointer data); + +void +on_rbBntVidEffQuark_toggled (GtkToggleButton * togglebutton, gpointer data); + +void +on_chkbntMute_toggled (GtkToggleButton * togglebutton, gpointer data); + +void +on_chkbtnRawMsg_toggled (GtkToggleButton * togglebutton, gpointer data); + +void +on_hscaleZoom_value_changed (GtkRange * range, gpointer user_data); + +void +on_color_control_value_changed (GtkRange * range, gpointer user_data); + +gboolean +on_key_released (GtkWidget * widget, GdkEventKey * event, gpointer user_data); + +gboolean +on_key_pressed (GtkWidget * widget, GdkEventKey * event, gpointer user_data); + +#endif /* __GST_CAMERA_BIN_H__ */