47 lines
1.5 KiB
C
47 lines
1.5 KiB
C
/* NeoStats - IRC Statistical Services
|
|
** Copyright (c) 1999-2008 Adam Rutter, Justin Hammond, Mark Hetherington
|
|
** http://www.neostats.net/
|
|
**
|
|
** This program is free software; you can redistribute it and/or modify
|
|
** it under the terms of the GNU General Public License as published by
|
|
** the Free Software Foundation; either version 2 of the License, or
|
|
** (at your option) any later version.
|
|
**
|
|
** This program is distributed in the hope that it will be useful,
|
|
** but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
** GNU General Public License for more details.
|
|
**
|
|
** You should have received a copy of the GNU General Public License
|
|
** along with this program; if not, write to the Free Software
|
|
** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
|
** USA
|
|
**
|
|
** NeoStats CVS Identification
|
|
** $Id$
|
|
*/
|
|
#ifndef _MAIN_H_
|
|
#define _MAIN_H_
|
|
|
|
/* Program exit codes usually defined in stdlib.h but
|
|
if not found will be defined here */
|
|
#ifndef EXIT_FAILURE
|
|
#define EXIT_FAILURE 1
|
|
#endif /* EXIT_FAILURE */
|
|
#ifndef EXIT_SUCCESS
|
|
#define EXIT_SUCCESS 0
|
|
#endif /* EXIT_SUCCESS */
|
|
|
|
/* do_exit call exit type definitions */
|
|
typedef enum {
|
|
NS_EXIT_NORMAL=0,
|
|
NS_EXIT_RELOAD,
|
|
NS_EXIT_RECONNECT,
|
|
NS_EXIT_ERROR,
|
|
NS_EXIT_SEGFAULT,
|
|
}NS_EXIT_TYPE;
|
|
|
|
void do_exit( NS_EXIT_TYPE exitcode, const char *quitmsg ) __attribute__( ( noreturn ) );
|
|
void update_time_now( void );
|
|
|
|
#endif /* _MAIN_H_ */
|