haiku/headers/private/app/LaunchRoster.h
Axel Dörfler 1480e5da6f The beginnings of a launch_daemon for Haiku.
* This will be heavily inspired by Apple's launchd, as well as
  systemd -- for now it really doesn't do a whole lot, though.
* What works so far: the configuration files are read, parsed, and
  the jobs created.
* The jobs are even initialized, and their message ports created.
* BApplication now retrieves a previously created port from the
  launch_daemon for use with BServer.
* Only the registrar actually uses this for now.
2015-07-22 20:39:47 +02:00

34 lines
580 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);
private:
void _InitMessenger();
private:
BMessenger fMessenger;
uint32 _reserved[5];
};
// global BLaunchRoster instance
extern const BLaunchRoster* be_launch_roster;
#endif // _LAUNCH_ROSTER_H