int plistNotifyEvent(pid_t pid, int event)
Notifies the process list that a process has changed its state.
const ProcInfo * plistGet(pid_t pid)
int plistRemove(pid_t pid)
Removes a specific process from the list.
int plistIterate(int(*callback)(const ProcInfo *))
Invokes a callback function on each element in the list whose state has not changed since the last ca...
const ProcInfo * plistAdd(pid_t pid, const char cmdLine[], bool background)
Adds a new process to the list.
int plistHandleEvents(int(*callback)(const ProcInfo *, int))
Invokes a callback function on each element in the list whose state has changed since the last call t...
Process-information structure.
Definition: plist.h:31
char * cmdLine
Definition: plist.h:33
bool background
Definition: plist.h:34
pid_t pid
Definition: plist.h:32