1 /***** 2 * Xnee's Not an Event Emulator 3 * 4 * Xnee enables recording and replaying of X protocol data 5 * 6 * Copyright (C) 1999, 2000, 2001, 2002, 2003 Henrik Sandklef 7 * 8 * This program is free software; you can redistribute it and/or 9 * modify it under the terms of the GNU General Public License 10 * as published by the Free Software Foundation; either version 3 11 * of the License, or any later version. 12 * 13 * 14 * This program is distributed in the hope that it will be useful, 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 * GNU General Public License for more details. 18 * 19 * You should have received a copy of the GNU General Public License 20 * along with this program; if not, write to the Free Software 21 * Foundation, Inc., 51 Franklin Street, Boston, 22 * MA 02110-1301, USA. 23 ****/ 24 25 26 #ifndef XNEE_XNEE_DISPLAY_H 27 #define XNEE_XNEE_DISPLAY_H 28 29 #include "libxnee/xnee.h" 30 31 32 33 int 34 xnee_setup_display (xnee_data *xd); 35 36 37 /** 38 * Set xnee_data->display to the value as 39 * specified in environment variable DISPLAY 40 * 41 * @param xd xnee's main structure 42 * @return void 43 */ 44 void 45 xnee_set_default_display (xnee_data *xd); 46 47 48 49 50 51 /** 52 * open a display for the host as specified in 53 * xnee_program_data->program 54 * @param xd xnee's main structure 55 * @return Display * NULL if the display could not be opened 56 */ 57 Display * 58 xnee_open_display (xnee_data *xd); 59 60 61 62 63 /** 64 * Adds a display to ditribution list 65 * @param xd xnee's main structure 66 * @param disp Display to add 67 * @return int 0 on success 68 */ 69 int 70 xnee_add_display_list (xnee_data* xd, char * disp); 71 72 73 74 75 76 /** 77 * Adds a display to ditribution list 78 * @param str string representation of a display 79 * @param xd xnee's main structure 80 * @return int XNEE_OK on success, XNEE_NOT_OPEN_DISPLAY if failure 81 */ 82 int 83 xnee_add_display_str (char *str , xnee_data* xd); 84 85 86 87 88 /** 89 * Adds a display to ditribution list 90 * @param dpy Display to add 91 * @param xd xnee's main structure 92 * @return int XNEE_OK on success, XNEE_NOT_OPEN_DISPLAY if failure 93 */ 94 int 95 xnee_add_display (Display * dpy, xnee_data* xd); 96 97 98 99 #endif /* XNEE_XNEE_DISPLAY_H */ 100 101