changed signature to original, needed for compatibility

change AddOnManager deletion


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9226 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2004-10-06 13:49:45 +00:00
parent abc3b04ccf
commit 0a279d91af
3 changed files with 12 additions and 15 deletions

View File

@ -162,7 +162,8 @@ InputServer::InputServer(void) : BApplication(INPUTSERVER_SIGNATURE),
InputServer::~InputServer(void)
{
CALLED();
delete fAddOnManager;
fAddOnManager->Lock();
fAddOnManager->Quit();
#ifdef COMPILE_FOR_R5
delete_port(fAsPort);
@ -183,18 +184,14 @@ void
InputServer::ArgvReceived(int32 argc, char** argv)
{
CALLED();
if (2 == argc) {
if (0 == strcmp("-q", argv[1]) ) {
// :TODO: Shutdown and restart the InputServer.
PRINT(("InputServer::ArgvReceived - Restarting ...\n"));
status_t quit_status;
BMessenger msgr = BMessenger(INPUTSERVER_SIGNATURE, -1, &quit_status);
if (B_OK == quit_status) {
BMessage msg = BMessage(B_QUIT_REQUESTED);
msgr.SendMessage(&msg);
} else {
PRINTERR(("Unable to send Quit message to running InputServer."));
}
if (2 == argc && (0 == strcmp("-q", argv[1]))) {
PRINT(("InputServer::ArgvReceived - Restarting ...\n"));
status_t quit_status = B_OK;
BMessenger msgr = BMessenger(INPUTSERVER_SIGNATURE, -1, &quit_status);
if (B_OK == quit_status) {
msgr.SendMessage(B_QUIT_REQUESTED);
} else {
PRINTERR(("Unable to send Quit message to running InputServer.\n"));
}
}
}

View File

@ -52,7 +52,7 @@
#include <Screen.h>
#include <SupportDefs.h>
#define INPUTSERVER_SIGNATURE "application/x-vnd.OBOS-input_server"
#define INPUTSERVER_SIGNATURE "application/x-vnd.Be-input_server"
class BPortLink;

View File

@ -7,7 +7,7 @@
application:/x-vnd.obos.app-name
*/
resource app_signature "application/x-vnd.OBOS-input_server";
resource app_signature "application/x-vnd.Be-input_server";
/* BEOS:APP_FLAGS :
00000000 = SINGLE LAUNCH