00001 /* serverlist.h: header for serverlist.c 00002 * 00003 * Copyright (C) 2002, 2003, 2004 Eggheads Development Team 00004 * 00005 * This program is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU General Public License 00007 * as published by the Free Software Foundation; either version 2 00008 * of the License, or (at your option) any later version. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with this program; if not, write to the Free Software 00017 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00018 * 00019 * $Id: serverlist.h,v 1.4 2003-12-18 06:50:47 wcc Exp $ 00020 */ 00021 00022 #ifndef _EGG_MOD_SERVER_SERVERLIST_H_ 00023 #define _EGG_MOD_SERVER_SERVERLIST_H_ 00024 00025 typedef struct server { 00026 struct server *next; 00027 char *host; 00028 int port; 00029 char *pass; 00030 } server_t; 00031 00032 extern server_t *server_list; 00033 extern int server_list_index; 00034 extern int server_list_len; 00035 00036 server_t *server_get_next(); 00037 void server_set_next(int next); 00038 int server_add(char *host, int port, char *pass); 00039 int server_del(int num); 00040 int server_find(const char *host, int port, const char *pass); 00041 int server_clear(); 00042 00043 #endif /* !_EGG_MOD_SERVER_SERVERLIST_H_ */