summaryrefslogtreecommitdiff
path: root/src/gui/gui-keyboard.h
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2008-06-03 10:56:51 +0200
committerSebastien Helleu <flashcode@flashtux.org>2008-06-03 10:56:51 +0200
commit3a53257032a0df8aa5f3b31f14a8e6f4e1f07595 (patch)
tree23d16979c6ee884220afbe148b32981338f7f690 /src/gui/gui-keyboard.h
parent2b1d7df86c745367cfdf4de13629790197b523b3 (diff)
downloadweechat-3a53257032a0df8aa5f3b31f14a8e6f4e1f07595.zip
Add "const" keyword for some "char *" function arguments (core and plugins API)
Diffstat (limited to 'src/gui/gui-keyboard.h')
-rw-r--r--src/gui/gui-keyboard.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/gui/gui-keyboard.h b/src/gui/gui-keyboard.h
index 5e88f97e6..1e997bff6 100644
--- a/src/gui/gui-keyboard.h
+++ b/src/gui/gui-keyboard.h
@@ -49,14 +49,15 @@ extern time_t gui_keyboard_last_activity_time;
extern void gui_keyboard_init ();
extern void gui_keyboard_grab_init ();
extern void gui_keyboard_grab_end ();
-extern char *gui_keyboard_get_internal_code (char *key);
-extern char *gui_keyboard_get_expanded_name (char *key);
+extern char *gui_keyboard_get_internal_code (const char *key);
+extern char *gui_keyboard_get_expanded_name (const char *key);
extern struct t_gui_key *gui_keyboard_search (struct t_gui_buffer *buffer,
- char *key);
+ const char *key);
extern struct t_gui_key *gui_keyboard_bind (struct t_gui_buffer *buffer,
- char *key, char *command);
-extern int gui_keyboard_unbind (struct t_gui_buffer *buffer, char *key);
-extern int gui_keyboard_pressed (char *key_str);
+ const char *key,
+ const char *command);
+extern int gui_keyboard_unbind (struct t_gui_buffer *buffer, const char *key);
+extern int gui_keyboard_pressed (const char *key_str);
extern void gui_keyboard_free (struct t_gui_key **keys,
struct t_gui_key **last_key,
struct t_gui_key *key);