xmodmap.h revision 1a30de1f
1/* $Xorg: xmodmap.h,v 1.4 2001/02/09 02:05:56 xorgcvs Exp $ */ 2/* 3 4Copyright 1988, 1998 The Open Group 5 6Permission to use, copy, modify, distribute, and sell this software and its 7documentation for any purpose is hereby granted without fee, provided that 8the above copyright notice appear in all copies and that both that 9copyright notice and this permission notice appear in supporting 10documentation. 11 12The above copyright notice and this permission notice shall be included 13in all copies or substantial portions of the Software. 14 15THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 16OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 18IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR 19OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 20ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 21OTHER DEALINGS IN THE SOFTWARE. 22 23Except as contained in this notice, the name of The Open Group shall 24not be used in advertising or otherwise to promote the sale, use or 25other dealings in this Software without prior written authorization 26from The Open Group. 27 28*/ 29/* $XFree86: xc/programs/xmodmap/xmodmap.h,v 1.4 2001/01/17 23:46:21 dawes Exp $ */ 30 31extern const char *ProgramName; 32extern Display *dpy; 33extern int min_keycode, max_keycode; 34extern Bool verbose; 35extern Bool dontExecute; 36extern const char *inputFilename; 37extern int lineno; 38extern int parse_errors; 39 40extern void initialize_map(void); 41extern void process_file(const char *filename); 42extern void process_line(char *buffer); 43extern void handle_line(char *line, int len); 44extern void print_work_queue(void); 45extern int execute_work_queue(void); 46extern void print_modifier_map(void); 47extern void print_key_table(Bool exprs); 48extern void print_pointer_map(void); 49 50extern int UpdateModifierMapping(XModifierKeymap *map); 51extern int AddModifier(XModifierKeymap **mapp, KeyCode keycode, int modifier); 52extern int RemoveModifier(XModifierKeymap **mapp, KeyCode keycode, 53 int modifier); 54extern int ClearModifier(XModifierKeymap **mapp, int modifier); 55extern void PrintModifierMapping(XModifierKeymap *map, FILE *fp); 56extern void PrintKeyTable(Bool exprs, FILE *fp); 57extern void PrintPointerMap(FILE *fp); 58extern int SetPointerMap(unsigned char *map, int n); 59 60extern void *chk_malloc(size_t n_bytes); 61