2012-04-19 20:58:29 +02:00
|
|
|
/*
|
|
|
|
* InspIRCd -- Internet Relay Chat Daemon
|
|
|
|
*
|
2024-06-07 10:37:56 +01:00
|
|
|
* Copyright (C) 2013, 2022 Sadie Powell <sadie@witchery.services>
|
2020-01-11 22:02:47 +00:00
|
|
|
* Copyright (C) 2013 ChrisTX <xpipe@hotmail.de>
|
|
|
|
* Copyright (C) 2012 Robby <robby@chatbelgie.be>
|
|
|
|
* Copyright (C) 2008 Craig Edwards <brain@inspircd.org>
|
2012-04-19 20:58:29 +02:00
|
|
|
*
|
|
|
|
* This file is part of InspIRCd. InspIRCd 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, version 2.
|
|
|
|
*
|
|
|
|
* 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, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2013-04-02 20:12:15 +01:00
|
|
|
|
2013-03-23 23:52:51 +01:00
|
|
|
#pragma once
|
2013-04-02 20:12:15 +01:00
|
|
|
|
2013-03-23 23:52:51 +01:00
|
|
|
#ifdef _WIN32
|
2008-08-24 19:08:36 +00:00
|
|
|
|
2022-05-07 19:49:56 +01:00
|
|
|
/* Redirect main() through a different method in win32service.cpp, to intercept service startup */
|
|
|
|
int smain(int argc, char** argv);
|
|
|
|
|
2008-08-24 19:08:36 +00:00
|
|
|
/* Hook for win32service.cpp to exit properly with the service specific error code */
|
2013-03-23 23:52:51 +01:00
|
|
|
void SetServiceStopped(unsigned long dwStatus);
|
2008-08-24 23:45:09 +00:00
|
|
|
|
|
|
|
/* Marks the service as running, not called until the config is parsed */
|
|
|
|
void SetServiceRunning();
|
|
|
|
|
2012-04-14 18:03:25 -07:00
|
|
|
#endif
|