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:
Axel Dörfler
2015-03-26 21:47:24 +00:00
parent b7a87fd137
commit 0690387cd2
5 changed files with 42 additions and 32 deletions
+1
View File
@@ -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&);
+10 -4
View File
@@ -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