some debug cosmetix
[k8yeahconsole.git] / src / xkbutils.h
blob167f9125e654bb4dc729158712cc61cb137fc53d
1 /* coded by Ketmar // Vampire Avalon (psyc://ketmar.no-ip.org/~Ketmar)
2 * Understanding is not required. Only obedience.
4 * This program is free software. It comes without any warranty, to
5 * the extent permitted by applicable law. You can redistribute it
6 * and/or modify it under the terms of the Do What The Fuck You Want
7 * To Public License, Version 2, as published by Sam Hocevar. See
8 * http://sam.zoy.org/wtfpl/COPYING for more details.
9 */
10 #ifndef XKB_UTILS_H
11 #define XKB_UTILS_H
13 #include <X11/Xlib.h>
16 // get current layout
17 extern int activeLayout (Display *dpy);
19 // set current layout
20 extern void setActiveLayout (Display *dpy, int group);
22 // get number of available layout names
23 extern int layoutCount (Display *dpy);
25 // get available layout names
26 // returns counter
27 extern int layoutNames (Display *dpy, char *names[]);
29 // free names list got from layoutNames
30 extern void freeLayoutNames (char **names, int cnt);
32 // debug: print known layouts
33 extern void printLayouts (Display *dpy);
36 #endif