2015-04-02 11:42:35 +02:00
|
|
|
/*
|
|
|
|
* 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);
|
2015-04-15 17:40:18 +02:00
|
|
|
port_id GetPort(const char* signature,
|
|
|
|
const char* name = NULL);
|
2015-04-02 11:42:35 +02:00
|
|
|
|
|
|
|
private:
|
|
|
|
void _InitMessenger();
|
|
|
|
|
|
|
|
private:
|
|
|
|
BMessenger fMessenger;
|
|
|
|
uint32 _reserved[5];
|
|
|
|
};
|
|
|
|
|
|
|
|
// global BLaunchRoster instance
|
|
|
|
extern const BLaunchRoster* be_launch_roster;
|
|
|
|
|
|
|
|
|
|
|
|
#endif // _LAUNCH_ROSTER_H
|