Added SILC Thread Queue API
[crypto.git] / apps / irssi / src / fe-common / core / keyboard.h
index c508d53b810b3ac3d4b64e4535b50b1be9b9077b..970dc7b75bf2983f4a10e3324f99f52aff03faa5 100644 (file)
@@ -4,20 +4,22 @@
 #include "signals.h"
 
 typedef struct _KEYBOARD_REC KEYBOARD_REC;
+typedef struct _KEYINFO_REC KEYINFO_REC;
+typedef struct _KEY_REC KEY_REC;
 
-typedef struct {
+struct _KEYINFO_REC {
        char *id;
        char *description;
 
        GSList *keys, *default_keys;
-} KEYINFO_REC;
+};
 
-typedef struct {
+struct _KEY_REC {
        KEYINFO_REC *info;
 
        char *key;
        char *data;
-} KEY_REC;
+};
 
 extern GSList *keyinfos;
 
@@ -27,8 +29,9 @@ extern GSList *keyinfos;
 KEYBOARD_REC *keyboard_create(void *gui_data);
 /* Destroys a keyboard */
 void keyboard_destroy(KEYBOARD_REC *keyboard);
-/* Returns TRUE if key press was consumed. Control characters should be sent
-   as "^@" .. "^_" instead of #0..#31 chars, #127 should be sent as ^? */
+/* Returns 1 if key press was consumed, -1 if not, 0 if it's beginning of a
+   key combo. Control characters should be sent as "^@" .. "^_" instead of
+   #0..#31 chars, #127 should be sent as ^? */
 int key_pressed(KEYBOARD_REC *keyboard, const char *key);
 
 void key_bind(const char *id, const char *description,