27 #include <sys/types.h>
int plistNotifyEvent(pid_t pid, int event)
Notifies the process list that a process has changed its state.
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...
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...
const ProcInfo * plistGet(pid_t pid)
const ProcInfo * plistAdd(pid_t pid, const char cmdLine[], bool background)
Adds a new process to the list.
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