00001 /* main.h: header for main.c 00002 * 00003 * Copyright (C) 1997 Robey Pointer 00004 * Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 Eggheads Development Team 00005 * 00006 * This program is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU General Public License 00008 * as published by the Free Software Foundation; either version 2 00009 * of the License, or (at your option) any later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with this program; if not, write to the Free Software 00018 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00019 * 00020 * $Id: main.h,v 1.41 2004-06-21 19:04:51 stdarg Exp $ 00021 */ 00022 00023 #ifndef _EGG_MAIN_H 00024 #define _EGG_MAIN_H 00025 00026 void fatal(const char *errmsg); 00027 00028 #define SHUTDOWN_GRACEFULL 0 00029 #define SHUTDOWN_HARD 1 00030 #define SHUTDOWN_RESTART 2 00031 #define SHUTDOWN_SIGTERM 3 00032 00033 int core_init(); 00034 int core_restart(const char *nick); 00035 int core_shutdown(int how, const char *nick, const char *reason); 00036 00037 #endif /* !_EGG_MAIN_H */