BServer/BApplication: added constructor for looper name.
* Added an extra looperName argument to the private BApplication constructor that BServer is using. * This is now used to fix the ugliness that gave the registrar a different looper name, and even saves a string comparison.
This commit is contained in:
@@ -101,6 +101,7 @@ private:
|
||||
friend class BServer;
|
||||
|
||||
BApplication(const char* signature,
|
||||
const char* looperName,
|
||||
bool initGUI, status_t* error);
|
||||
BApplication(uint32 signature);
|
||||
BApplication(const BApplication&);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2005, Haiku.
|
||||
* Copyright 2005-2015, Haiku.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*
|
||||
* Authors:
|
||||
@@ -8,16 +8,22 @@
|
||||
#ifndef _SERVER_H
|
||||
#define _SERVER_H
|
||||
|
||||
|
||||
#include <Application.h>
|
||||
|
||||
|
||||
class BServer : public BApplication {
|
||||
public:
|
||||
BServer(const char* signature, bool initGUI, status_t *error);
|
||||
BServer(const char* signature, bool initGUI,
|
||||
status_t *error);
|
||||
BServer(const char* signature, const char*
|
||||
looperName, bool initGUI, status_t *error);
|
||||
|
||||
status_t InitGUIContext();
|
||||
status_t InitGUIContext();
|
||||
|
||||
private:
|
||||
bool fGUIContextInitialized;
|
||||
bool fGUIContextInitialized;
|
||||
};
|
||||
|
||||
|
||||
#endif // _SERVER_H
|
||||
|
||||
Reference in New Issue
Block a user