xmodmap.h revision 1a30de1f
11a30de1fSmrg/* $Xorg: xmodmap.h,v 1.4 2001/02/09 02:05:56 xorgcvs Exp $ */ 21a30de1fSmrg/* 31a30de1fSmrg 41a30de1fSmrgCopyright 1988, 1998 The Open Group 51a30de1fSmrg 61a30de1fSmrgPermission to use, copy, modify, distribute, and sell this software and its 71a30de1fSmrgdocumentation for any purpose is hereby granted without fee, provided that 81a30de1fSmrgthe above copyright notice appear in all copies and that both that 91a30de1fSmrgcopyright notice and this permission notice appear in supporting 101a30de1fSmrgdocumentation. 111a30de1fSmrg 121a30de1fSmrgThe above copyright notice and this permission notice shall be included 131a30de1fSmrgin all copies or substantial portions of the Software. 141a30de1fSmrg 151a30de1fSmrgTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 161a30de1fSmrgOR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 171a30de1fSmrgMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 181a30de1fSmrgIN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR 191a30de1fSmrgOTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 201a30de1fSmrgARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 211a30de1fSmrgOTHER DEALINGS IN THE SOFTWARE. 221a30de1fSmrg 231a30de1fSmrgExcept as contained in this notice, the name of The Open Group shall 241a30de1fSmrgnot be used in advertising or otherwise to promote the sale, use or 251a30de1fSmrgother dealings in this Software without prior written authorization 261a30de1fSmrgfrom The Open Group. 271a30de1fSmrg 281a30de1fSmrg*/ 291a30de1fSmrg/* $XFree86: xc/programs/xmodmap/xmodmap.h,v 1.4 2001/01/17 23:46:21 dawes Exp $ */ 301a30de1fSmrg 311a30de1fSmrgextern const char *ProgramName; 321a30de1fSmrgextern Display *dpy; 331a30de1fSmrgextern int min_keycode, max_keycode; 341a30de1fSmrgextern Bool verbose; 351a30de1fSmrgextern Bool dontExecute; 361a30de1fSmrgextern const char *inputFilename; 371a30de1fSmrgextern int lineno; 381a30de1fSmrgextern int parse_errors; 391a30de1fSmrg 401a30de1fSmrgextern void initialize_map(void); 411a30de1fSmrgextern void process_file(const char *filename); 421a30de1fSmrgextern void process_line(char *buffer); 431a30de1fSmrgextern void handle_line(char *line, int len); 441a30de1fSmrgextern void print_work_queue(void); 451a30de1fSmrgextern int execute_work_queue(void); 461a30de1fSmrgextern void print_modifier_map(void); 471a30de1fSmrgextern void print_key_table(Bool exprs); 481a30de1fSmrgextern void print_pointer_map(void); 491a30de1fSmrg 501a30de1fSmrgextern int UpdateModifierMapping(XModifierKeymap *map); 511a30de1fSmrgextern int AddModifier(XModifierKeymap **mapp, KeyCode keycode, int modifier); 521a30de1fSmrgextern int RemoveModifier(XModifierKeymap **mapp, KeyCode keycode, 531a30de1fSmrg int modifier); 541a30de1fSmrgextern int ClearModifier(XModifierKeymap **mapp, int modifier); 551a30de1fSmrgextern void PrintModifierMapping(XModifierKeymap *map, FILE *fp); 561a30de1fSmrgextern void PrintKeyTable(Bool exprs, FILE *fp); 571a30de1fSmrgextern void PrintPointerMap(FILE *fp); 581a30de1fSmrgextern int SetPointerMap(unsigned char *map, int n); 591a30de1fSmrg 601a30de1fSmrgextern void *chk_malloc(size_t n_bytes); 61