libroot: added ability to communicate with the launch_daemon.

* These methods don't really work yet, as BMessage doesn't support
  replying with a KMessage; the request is received, but the reply
  never gets to the target.
This commit is contained in:
Axel Dörfler
2015-07-22 20:40:42 +02:00
parent 43aec2c726
commit 9d69dc097d
5 changed files with 79 additions and 3 deletions
+29
View File
@@ -0,0 +1,29 @@
/*
* Copyright 2015, Axel Dörfler, [email protected].
* Distributed under the terms of the MIT License.
*/
#ifndef _LIBROOT_LAUNCH_H
#define _LIBROOT_LAUNCH_H
#include <LaunchDaemonDefs.h>
#include <OS.h>
#ifdef __cplusplus
namespace BPrivate {
class KMessage;
port_id get_launch_daemon_port();
status_t send_request_to_launch_daemon(KMessage& request, KMessage& reply);
status_t get_launch_data(const char* signature, KMessage& data);
} // namespace BPrivate
#endif // __cplusplus
#endif // _LIBROOT_LAUNCH_H