1 /*
2  *  This program is free software; you can redistribute it and/or modify
3  *  it under the terms of the GNU General Public License as published by
4  *  the Free Software Foundation; either version 2 of the License, or
5  *  (at your option) any later version.
6  *
7  *  This program is distributed in the hope that it will be useful,
8  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
9  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10  *  GNU General Public License for more details.
11  *
12  *  You should have received a copy of the GNU General Public License
13  *  along with this program; if not, write to the Free Software
14  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
15  *
16  *  Copyright (C) 2006-2010 XNeur Team
17  *
18  */
19 
20 #ifndef _BIND_TABLE_H_
21 #define _BIND_TABLE_H_
22 
23 #include <X11/XKBlib.h>
24 
25 struct _bind_table
26 {
27 	KeySym key_sym;
28 	KeySym key_sym_shift;
29 	KeyCode key_code;
30 	int modifier_mask;
31 };
32 
33 void bind_actions(void);
34 void unbind_actions(void);
35 
36 void bind_user_actions(void);
37 void unbind_user_actions(void);
38 
39 void grab_action(Window window);
40 void grab_user_action(Window window);
41 
42 void grab_action_common(struct _bind_table btaction, Window window);
43 
44 //void ungrab_modifiers(Window window);
45 
46 enum _hotkey_action get_action(KeySym key_sym, int mask);
47 int get_user_action(KeySym key_sym, int mask);
48 
49 
50 #endif /* _BIND_TABLE_H_ */
51