d482c7ca5b
* BRoster::Launch() cannot be used (yet), as it pre-registers the application we're launching, and that won't work for the registrar or anything else until the registrar is up and running. * Renamed B_GET_LAUNCH_CONNECTIONS to B_GET_LAUNCH_DATA. * Add the team ID to the get-launch-data reply. * Added BLaunchRoster::GetPort() for convenience. * Removed some superfluous debug output, but temporarily dump all stdio to /dev/dprintf (ie. the syslog). * Made job matching case insensitive (as MIME types should be).
36 lines
660 B
C++
36 lines
660 B
C++
/*
|
|
* Copyright 2015 Haiku, Inc. All rights reserved.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef _LAUNCH_ROSTER_H
|
|
#define _LAUNCH_ROSTER_H
|
|
|
|
|
|
#include <Messenger.h>
|
|
|
|
|
|
class BLaunchRoster {
|
|
public:
|
|
BLaunchRoster();
|
|
~BLaunchRoster();
|
|
|
|
status_t InitCheck() const;
|
|
|
|
status_t GetData(const char* signature, BMessage& data);
|
|
port_id GetPort(const char* signature,
|
|
const char* name = NULL);
|
|
|
|
private:
|
|
void _InitMessenger();
|
|
|
|
private:
|
|
BMessenger fMessenger;
|
|
uint32 _reserved[5];
|
|
};
|
|
|
|
// global BLaunchRoster instance
|
|
extern const BLaunchRoster* be_launch_roster;
|
|
|
|
|
|
#endif // _LAUNCH_ROSTER_H
|