1 /* 2 * file mi_host.h - Menu item for host selection in networked games 3 * 4 * $Id: mi_host.h,v 1.9 2006/02/09 21:21:24 fzago Exp $ 5 * 6 * Program XBLAST 7 * (C) by Oliver Vogel (e-mail: m.vogel@ndh.net) 8 * 9 * This program is free software; you can redistribute it and/or modify 10 * it under the terms of the GNU General Public License as published 11 * by the Free Software Foundation; either version 2; or (at your option) 12 * any later version 13 * 14 * This program is distributed in the hope that it will be entertaining, 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 * MERCHANTABILTY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General 17 * Public License for more details. 18 * 19 * You should have received a copy of the GNU General Public License along 20 * with this program; if not, write to the Free Software Foundation, Inc. 21 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 22 */ 23 #ifndef XBLAST_MI_HOST_H 24 #define XBLAST_MI_HOST_H 25 26 /* 27 * global prototypes 28 */ 29 extern XBMenuItem *MenuCreateHost (int x, int y, int w, unsigned client, const char **pText, 30 XBHSFocusFunc focusFunc, XBHSChangeFunc chgFunc, 31 XBHSUpdateFunc upFunc); 32 extern XBMenuItem *MenuCreateServer (int x, int y, int w, const char **pText); 33 extern XBMenuItem *MenuCreateClient (int x, int y, int w, const char **pText, XBHostState * pState, 34 const int *pPing); 35 extern XBMenuItem *MenuCreatePeer (int x, int y, int w, const char **pText, XBHostState * pState, 36 const int *pPing); 37 38 extern XBMenuItem *MenuCreateTeam (int x, int y, int w, unsigned id, unsigned player, 39 XBTSFocusFunc focusFunc, XBTSChangeFunc chgFunc, 40 XBTSUpdateFunc upFunc); 41 extern XBMenuItem *MenuCreateServerTeam (int x, int y, int w, XBTeamState * pTeam); 42 extern XBMenuItem *MenuCreatePeerTeam (int x, int y, int w, XBTeamState * pTeam); 43 44 extern void MenuDeleteHost (XBMenuItem * item); 45 extern void MenuDeleteTeam (XBMenuItem * item); 46 47 #endif 48 /* 49 * end of file mi_host.h 50 */ 51