summaryrefslogtreecommitdiffstats
path: root/include/keyb.h
diff options
context:
space:
mode:
authorQC <qball@gmpclient.org>2015-05-02 12:21:54 +0200
committerQC <qball@gmpclient.org>2015-05-02 12:22:31 +0200
commit9492fe7611d0b982c7a985808038933c0e5e8970 (patch)
tree6b3b282fc2d93cdc34af05f87712cfc46504793d /include/keyb.h
parent493801602a94d01919a8ea96c84d42985d08e413 (diff)
Cleanup keyb.h file.
Diffstat (limited to 'include/keyb.h')
-rw-r--r--include/keyb.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/include/keyb.h b/include/keyb.h
index 1ef4a20e..0aa8b860 100644
--- a/include/keyb.h
+++ b/include/keyb.h
@@ -27,26 +27,26 @@ typedef enum _KeyBindingAction
} KeyBindingAction;
-typedef struct _KeyBinding
-{
- unsigned int modmask;
- KeySym keysym;
-} KeyBinding;
-
-typedef struct _ActionBindingEntry
-{
- const char *name;
- char *keystr;
- int num_bindings;
- KeyBinding *kb;
-} ActionBindingEntry;
-
-
+/**
+ * Parse the keybindings.
+ * This should be called after the setting system is initialized.
+ */
void parse_keys_abe ( void );
+
+/**
+ * Setup the keybindings
+ * This adds all the entries to the settings system.
+ */
void setup_abe ( void );
+/**
+ * Cleanup.
+ */
void cleanup_abe ( void );
-extern ActionBindingEntry abe[NUM_ABE];
+/**
+ * Check if this key has been triggered.
+ * @returns TRUE if key combo matches, FALSE otherwise.
+ */
int abe_test_action ( KeyBindingAction action, unsigned int mask, KeySym key );
#endif // __KEYB_H__