00001 00022 #ifndef PLIST_H 00023 #define PLIST_H 00024 00025 00026 #include "shellutils.h" 00027 00028 00049 const ProcInfo *plistAdd(pid_t pid, const char cmdLine[], bool background); 00050 00062 const ProcInfo *plistGet(pid_t pid); 00063 00075 int plistRemove(pid_t pid); 00076 00095 int plistIterate(int (*callback)(const ProcInfo *)); 00096 00117 int plistNotifyEvent(pid_t pid, int event); 00118 00145 int plistHandleEvents(int (*callback)(const ProcInfo *, int)); 00146 00147 00148 #endif /* PLIST_H */