From 7074381bea2027e0abd7bdbfa24a9acef0620c01 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sat, 8 Jul 2000 21:47:05 +0000 Subject: Reading and saving keyboard configuration actually works now. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@434 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/core/keyboard.h | 27 +++++++++++---------------- 1 file changed, 11 insertions(+), 16 deletions(-) (limited to 'src/fe-common/core/keyboard.h') diff --git a/src/fe-common/core/keyboard.h b/src/fe-common/core/keyboard.h index a6278adc..4bce8c2b 100644 --- a/src/fe-common/core/keyboard.h +++ b/src/fe-common/core/keyboard.h @@ -3,36 +3,31 @@ #include "signals.h" -typedef struct -{ +typedef struct { char *id; char *description; GSList *keys; -} -KEYINFO_REC; +} KEYINFO_REC; -typedef struct -{ +typedef struct { KEYINFO_REC *info; char *key; void *data; -} -KEY_REC; +} KEY_REC; extern GSList *keyinfos; -void key_bind(gchar *id, gchar *data, gchar *description, gchar *key_default, SIGNAL_FUNC func); -void key_unbind(gchar *id, SIGNAL_FUNC func); +void key_bind(const char *id, const char *description, + const char *key_default, const char *data, SIGNAL_FUNC func); +void key_unbind(const char *id, SIGNAL_FUNC func); -void key_configure_add(gchar *id, gchar *data, gchar *key); -void key_configure_remove(gchar *key); +void key_configure_add(const char *id, const char *key, const char *data); +void key_configure_remove(const char *key); -KEYINFO_REC *key_info_find(gchar *id); -gboolean key_pressed(gchar *key, gpointer data); - -void keyboard_save(void); +KEYINFO_REC *key_info_find(const char *id); +int key_pressed(const char *key, void *data); void keyboard_init(void); void keyboard_deinit(void); -- cgit v1.2.3