summaryrefslogtreecommitdiff
path: root/gst-libs
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2014-07-24 12:23:03 +0200
committerSebastian Dröge <sebastian@centricular.com>2014-07-24 12:23:03 +0200
commiteab38c5b2181809e3df6440c53be1d877d1def89 (patch)
tree0f481ba225d3185d9cf0e721aaf365ed7cf62ca4 /gst-libs
parent5291ba37d9cf68bdd64f0d1065a4d8f9b3f7e8d7 (diff)
glwindow: Constify string parameters to the send_*_event() functions
Diffstat (limited to 'gst-libs')
-rw-r--r--gst-libs/gst/gl/gstglwindow.c6
-rw-r--r--gst-libs/gst/gl/gstglwindow.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/gst-libs/gst/gl/gstglwindow.c b/gst-libs/gst/gl/gstglwindow.c
index 9281a6e6d..497474d17 100644
--- a/gst-libs/gst/gl/gstglwindow.c
+++ b/gst-libs/gst/gl/gstglwindow.c
@@ -771,15 +771,15 @@ gst_gl_dummy_window_new (void)
}
void
-gst_gl_window_send_key_event (GstGLWindow * window, char *event_type,
- char *key_str)
+gst_gl_window_send_key_event (GstGLWindow * window, const char *event_type,
+ const char *key_str)
{
g_signal_emit (window, gst_gl_window_signals[EVENT_KEY_SIGNAL], 0,
event_type, key_str);
}
void
-gst_gl_window_send_mouse_event (GstGLWindow * window, char *event_type,
+gst_gl_window_send_mouse_event (GstGLWindow * window, const char *event_type,
int button, double posx, double posy)
{
g_signal_emit (window, gst_gl_window_signals[EVENT_MOUSE_SIGNAL], 0,
diff --git a/gst-libs/gst/gl/gstglwindow.h b/gst-libs/gst/gl/gstglwindow.h
index 0b1941f83..ce5cba905 100644
--- a/gst-libs/gst/gl/gstglwindow.h
+++ b/gst-libs/gst/gl/gstglwindow.h
@@ -153,9 +153,9 @@ GstGLContext * gst_gl_window_get_context (GstGLWindow *window);
gboolean gst_gl_window_is_running (GstGLWindow *window);
-void gst_gl_window_send_key_event(GstGLWindow * window, char * event_type,
- char * key_str);
-void gst_gl_window_send_mouse_event(GstGLWindow * window, char *
+void gst_gl_window_send_key_event(GstGLWindow * window, const char * event_type,
+ const char * key_str);
+void gst_gl_window_send_mouse_event(GstGLWindow * window, const char *
event_type, int button, double posx, double posy);
GST_DEBUG_CATEGORY_EXTERN (gst_gl_window_debug);