1 /* 2 * Copyright 2015 Haiku, Inc. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef _LAUNCH_ROSTER_H 6 #define _LAUNCH_ROSTER_H 7 8 9 #include <Messenger.h> 10 11 12 class BLaunchRoster { 13 public: 14 BLaunchRoster(); 15 ~BLaunchRoster(); 16 17 status_t InitCheck() const; 18 19 status_t GetData(const char* signature, BMessage& data); 20 port_id GetPort(const char* signature, 21 const char* name = NULL); 22 23 private: 24 void _InitMessenger(); 25 26 private: 27 BMessenger fMessenger; 28 uint32 _reserved[5]; 29 }; 30 31 // global BLaunchRoster instance 32 extern const BLaunchRoster* be_launch_roster; 33 34 35 #endif // _LAUNCH_ROSTER_H 36