1 /* $Header: /home/yav/catty/fkiss/RCS/extern.h,v 1.20 2000/10/17 05:00:17 yav Exp $ 2 * fkiss external functions 3 * written by yav <yav@bigfoot.com> 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program; if not, write to the Free Software 17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 18 */ 19 20 21 #ifdef PUBLIC_FKISS_C 22 # define public 23 #else 24 # define public extern 25 #endif 26 public int change_setpal(); 27 public void move_object_start(); 28 public void move_object_end(); 29 public int move_object2(); 30 public void redraw_cells(); 31 public char *ks_filename(); 32 public int search_cell(); 33 public void disp_info(); 34 public FILE *ks_fopen(); 35 public void set_transparency(); 36 public void poor_system_pixels(); 37 public void set_system_pixels(); 38 public void parse_system_colors(); 39 public void free_system_colors(); 40 public int browse_document(); 41 #undef public 42 43 #ifdef PUBLIC_SUB_C 44 # define public 45 #else 46 # define public extern 47 #endif 48 public char *ks_malloc(); 49 public char *ks_realloc(); 50 public char *ks_strdup(); 51 public int ks_system2(); 52 public void ks_system(); 53 public char *get_directory(); 54 public char *get_filename(); 55 public int is_suffix(); 56 public void cut_crlf(); 57 public void kiss_exit(); 58 public char *dos_filename(); 59 public char *dos_pathname(); 60 public int strcmp_dos_filename(); 61 public void ks_srand(); 62 public int ks_rand(); 63 public void lstr_init(); 64 public void lstr_ch(); 65 public void lstr_cat(); 66 public void lstr_bs(); 67 #undef public 68 69 #ifdef PUBLIC_MESSAGE_C 70 # define public 71 #else 72 # define public extern 73 #endif 74 public void msg_init(); 75 public int msg_queued(); 76 #if NeedFunctionPrototypes 77 # if USE_STDARG 78 public void msgset(const char *, ...); 79 public void msg(const char *, ...); 80 public void debug_printf(const char *, ...); 81 # else 82 # if USE_VARARGS 83 public void msgset(); 84 public void msg(); 85 public void debug_printf(); 86 # else 87 public void msgset(); 88 public void msg(); 89 public void debug_printf(); 90 # endif 91 # endif 92 #else /* NeedFunctionPrototypes */ 93 # ifdef __STDC__ 94 public void msgset(const char *, ...); 95 public void msg(const char *, ...); 96 public void debug_printf(const char *, ...); 97 # else /* __STDC__ */ 98 public void msgset(); 99 public void msg(); 100 public void debug_printf(); 101 # endif /* __STDC__ */ 102 #endif /* NeedFunctionPrototypes */ 103 #undef public 104 105 #ifdef PUBLIC_MENU_C 106 # define public 107 #else 108 # define public extern 109 #endif 110 #ifdef X_H 111 public int draw_string(); 112 public void draw_menu_string(); 113 public void change_menu_status(); 114 public int calc_text_size(); 115 public MW *alloc_mw(); 116 public int which_winlist(); 117 public void load_font(); 118 public void expose_menu(); 119 public void create_set_menu(); 120 public void press_menu(); 121 public void enter_menu(); 122 public void leave_menu(); 123 public void menu_setpal_change(); 124 public Window aboutwin; 125 public void set_menu_window_attributes(); 126 public void change_menu_func(); 127 public void menu_resize(); 128 public char *get_client_info(); 129 public char *get_server_info(); 130 public char *get_visual_info(); 131 public char *get_cell_info(); 132 #endif /* X_H */ 133 #undef public 134 135 #ifdef PUBLIC_SELCNF_C 136 # define public 137 #else 138 # define public extern 139 #endif 140 public int is_regular_file(); 141 public int select_menu(); 142 public int select_cnf(); 143 #undef public 144 145 #ifdef PUBLIC_KISSCNF_C 146 # define public 147 #else 148 # define public extern 149 #endif 150 public void init_object_cell(); 151 public int read_config(); 152 #undef public 153 154 #ifdef PUBLIC_KISSEVE_C 155 # define public 156 # define pubvar(type,name,init) type name = init; 157 #else 158 # define public extern 159 # define pubvar(type,name,init) extern type name; 160 #endif 161 public char *parse_string(); 162 public void init_hitck(); 163 public int cnf_event(); 164 public int compile_event(); 165 public int kissevent_initialize(); 166 public int kissevent_handler2(); 167 public int kissevent_handler(); 168 public void kissevent_timer(); 169 public int save_config(); 170 public void init_redraw_area(); 171 public int change_cel_mapping(); 172 public void update_redraw_area(); 173 public int get_sleep_time(); 174 175 #define MAXSHORT ((short)(((unsigned short)~0)>>1)) 176 177 /* global variables, set in "fkiss.c", used in "kisseve.c" */ 178 pubvar( int, WARN_ACTION, 256 ); /* warn if more actions per */ 179 pubvar( int, WARN_SOUNDFILE,256 ); /* warn if more soundfiles */ 180 pubvar( int, WARN_TIMER, 256 ); /* warn if more timer channels */ 181 pubvar( int, WARN_EVENT, 256 ); /* warn if more events */ 182 pubvar( int, MAXACTION, 256 ); /* maximum action per event */ 183 pubvar( int, MAXEVENT, 256 ); /* maximum event number */ 184 pubvar( int, MAXSOUNDFILE, 256 ); /* maximum sound file */ 185 pubvar( int, MAXTIMER, 256 ); /* maximum timer channel */ 186 pubvar( int, warncase, 1 ); /* warn if upper case filename */ 187 #undef public 188 #undef pubvar 189 190 #ifdef PUBLIC_COMMENT_C 191 # define public 192 #else 193 # define public extern 194 #endif 195 public void expose_comment(); 196 public void unmap_comment(); 197 public void map_comment(); 198 #undef public 199 200 #ifdef PUBLIC_BG_C 201 # define public 202 #else 203 # define public extern 204 #endif 205 public void setup_signal_handler(); 206 public int bg_shell(); 207 public void bg_exit(); 208 public int bg_play(); 209 public int background(); 210 #undef public 211 212 #ifdef PUBLIC_CURSOR_C 213 # define public 214 #else 215 # define public extern 216 #endif 217 public void init_cursor(); 218 public void cursor_set(); 219 public void cursor_grip(); 220 public void cursor_hand(); 221 public void cursor_scroll(); 222 #undef public 223 224 #ifdef PUBLIC_COLOR_C 225 # define public 226 #else 227 # define public extern 228 #endif 229 public int read_colors(); 230 public int alloc_colors(); 231 public int set_private_colorcells(); 232 #undef public 233 234 #ifdef PUBLIC_DIR_C 235 # define public 236 #else 237 # define public extern 238 #endif 239 public char **dir_ls(); 240 public void dir_free(); 241 #undef public 242 243 #ifdef PUBLIC_CODECONV_C 244 # define public 245 #else 246 # define public extern 247 #endif 248 public char *coding_name(); 249 public int check_coding(); 250 public void convert_coding(); 251 #undef public 252 253 #ifdef PUBLIC_JISCODE_C 254 # define public 255 #else 256 # define public extern 257 #endif 258 public int is_sjis_1st(); 259 public int is_sjis_2nd(); 260 public unsigned short ysjis2jis(); 261 public unsigned short yjis2sjis(); 262 #undef public 263 264 #ifdef PUBLIC_SOUND_C 265 # define public 266 #else 267 # define public extern 268 #endif 269 public char *sound_device; 270 public int sound_debug; 271 public int use_esd; 272 public unsigned char *esd_host; 273 public int sound_init(); 274 public void sound_end(); 275 public int sound_play(); 276 public int sound_cache(); 277 public long sound_filesize(); 278 #undef public 279 280 /* End of file */ 281