My Project
plist.h
Go to the documentation of this file.
1 #ifndef PLIST_H
2 #define PLIST_H
3 
4 #include <sys/types.h>
5 
29 int insertElement(pid_t pid, const char *commandLine);
30 
50 int removeElement(pid_t pid, char *commandLineBuffer, size_t bufferSize);
51 
63 void walkList(int (*callback) (pid_t, const char *));
64 
65 #endif
void walkList(int(*callback)(pid_t, const char *))
Invokes a callback function on each element in the list.
int insertElement(pid_t pid, const char *commandLine)
Inserts a new pid-command line pair into the linked list.
int removeElement(pid_t pid, char *commandLineBuffer, size_t bufferSize)
Remove a specific pid-command line pair from the linked list.