launch_daemon: Add API to get information on jobs.
* Ie. a listing of all targets/jobs, as well as specific (basic) info on each. * Also added a bit of optional debug output. * Moved translating the path to launch time -- we should take the job's environment into account here at some point.
This commit is contained in:
@@ -32,6 +32,10 @@ enum {
|
||||
B_UNREGISTER_LAUNCH_EVENT = 'lnue',
|
||||
B_NOTIFY_LAUNCH_EVENT = 'lnne',
|
||||
B_RESET_STICKY_LAUNCH_EVENT = 'lnRe',
|
||||
B_GET_LAUNCH_TARGETS = 'lngt',
|
||||
B_GET_LAUNCH_JOBS = 'lngj',
|
||||
B_GET_LAUNCH_TARGET_INFO = 'lntI',
|
||||
B_GET_LAUNCH_JOB_INFO = 'lnjI',
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -45,6 +45,11 @@ public:
|
||||
status_t ResetStickyEvent(const BMessenger& source,
|
||||
const char* name);
|
||||
|
||||
status_t GetTargets(BStringList& targets);
|
||||
status_t GetTargetInfo(const char* name, BMessage& info);
|
||||
status_t GetJobs(const char* target, BStringList& jobs);
|
||||
status_t GetJobInfo(const char* name, BMessage& info);
|
||||
|
||||
class Private;
|
||||
|
||||
private:
|
||||
@@ -54,6 +59,8 @@ private:
|
||||
status_t _UpdateEvent(uint32 what,
|
||||
const BMessenger& source, const char* name,
|
||||
uint32 flags = 0);
|
||||
status_t _GetInfo(uint32 what, const char* name,
|
||||
BMessage& info);
|
||||
|
||||
private:
|
||||
BMessenger fMessenger;
|
||||
|
||||
Reference in New Issue
Block a user