/[cvs]/eggdrop1.9/src/main.h
ViewVC logotype

Contents of /eggdrop1.9/src/main.h

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.41 - (show annotations) (download) (as text)
Mon Jun 21 19:04:51 2004 UTC (15 years, 3 months ago) by stdarg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.40: +2 -2 lines
File MIME type: text/x-csrc
* Trying a simpler method of forking into the background.
* Trying a lockfile approach -- seems to work well so far.

1 /* main.h: header for main.c
2 *
3 * Copyright (C) 1997 Robey Pointer
4 * Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 Eggheads Development Team
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 *
20 * $Id: main.h,v 1.40 2004/06/20 13:33:48 wingman Exp $
21 */
22
23 #ifndef _EGG_MAIN_H
24 #define _EGG_MAIN_H
25
26 void fatal(const char *errmsg);
27
28 #define SHUTDOWN_GRACEFULL 0
29 #define SHUTDOWN_HARD 1
30 #define SHUTDOWN_RESTART 2
31 #define SHUTDOWN_SIGTERM 3
32
33 int core_init();
34 int core_restart(const char *nick);
35 int core_shutdown(int how, const char *nick, const char *reason);
36
37 #endif /* !_EGG_MAIN_H */

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23