1 /* 2 * XPilot NG, a multiplayer space war game. 3 * 4 * Copyright (C) 1991-2001 by 5 * 6 * Bj�rn Stabell <bjoern@xpilot.org> 7 * Ken Ronny Schouten <ken@xpilot.org> 8 * Bert Gijsbers <bert@xpilot.org> 9 * Dick Balaska <dick@xpilot.org> 10 * 11 * This program is free software; you can redistribute it and/or modify 12 * it under the terms of the GNU General Public License as published by 13 * the Free Software Foundation; either version 2 of the License, or 14 * (at your option) any later version. 15 * 16 * This program is distributed in the hope that it will be useful, 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 * GNU General Public License for more details. 20 * 21 * You should have received a copy of the GNU General Public License 22 * along with this program; if not, write to the Free Software 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 */ 25 26 #ifndef SCHED_H 27 #define SCHED_H 28 29 void block_timer(void); 30 void allow_timer(void); 31 32 void install_input(void (*func)(int, void *), int fd, void *arg); 33 void remove_input(int fd); 34 void sched(void); 35 void stop_sched(void); 36 37 #ifdef SELECT_SCHED 38 39 void install_timer_tick(void (*func)(void), int freq); 40 41 #else /* SELECT_SCHED */ 42 43 #ifndef _WINDOWS 44 void install_timer_tick(void (*func)(void), int freq); 45 #else 46 extern void install_timer_tick(void (__stdcall *func)(void *,unsigned int ,unsigned int ,unsigned long ), int freq); 47 #endif 48 void install_timeout(void (*func)(void *), int offset, void *arg); 49 void remove_timeout(void (*func)(void *), void *arg); 50 51 #endif /* SELECT_SCHED */ 52 53 #endif 54