mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
invoke win32app functions from main
This commit is contained in:
parent
95b2bf3645
commit
74d4b8e0b9
5 changed files with 167 additions and 186 deletions
11
Daemon.h
11
Daemon.h
|
@ -24,14 +24,14 @@ namespace i2p
|
|||
|
||||
bool isLogging;
|
||||
bool isDaemon;
|
||||
|
||||
|
||||
bool running;
|
||||
|
||||
protected:
|
||||
Daemon_Singleton();
|
||||
virtual ~Daemon_Singleton();
|
||||
|
||||
bool IsService () const;
|
||||
bool IsService () const;
|
||||
|
||||
// d-pointer for httpServer, httpProxy, etc.
|
||||
class Daemon_Singleton_Private;
|
||||
|
@ -48,9 +48,10 @@ namespace i2p
|
|||
return instance;
|
||||
}
|
||||
|
||||
virtual bool init(int argc, char* argv[]);
|
||||
virtual bool start();
|
||||
virtual bool stop();
|
||||
bool init(int argc, char* argv[]);
|
||||
bool start();
|
||||
bool stop();
|
||||
void run ();
|
||||
};
|
||||
#else
|
||||
class DaemonLinux : public Daemon_Singleton
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue