launch_daemon: Added stop target ability.

* Before, you had to stop each job by itself.
This commit is contained in:
Axel Dörfler
2016-11-29 23:14:36 +01:00
parent 4d99bf9af7
commit 852e09d61f
4 changed files with 78 additions and 0 deletions
+1
View File
@@ -26,6 +26,7 @@ namespace BPrivate {
enum {
B_GET_LAUNCH_DATA = 'lnda',
B_LAUNCH_TARGET = 'lntg',
B_STOP_LAUNCH_TARGET = 'lnst',
B_LAUNCH_JOB = 'lnjo',
B_ENABLE_LAUNCH_JOB = 'lnje',
B_STOP_LAUNCH_JOB = 'lnsj',
+2
View File
@@ -33,6 +33,8 @@ public:
status_t Target(const char* name,
const BMessage* data = NULL,
const char* baseName = NULL);
status_t StopTarget(const char* name,
bool force = false);
status_t Start(const char* name);
status_t Stop(const char* name, bool force = false);