mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
glwindow: Constify string parameters to the send_*_event() functions
This commit is contained in:
parent
884be3de11
commit
307db954fd
2 changed files with 6 additions and 6 deletions
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue