#include <lwatch.h>
Public Attributes | |
lwatch_event_type | event_type |
the type of the event | |
union { | |
char path [PATH_MAX] | |
for anything other than a rename, this is the pathname associated with the event | |
struct { | |
char prev_path [PATH_MAX] | |
previous pathname for a rename, may be empty | |
char new_path [PATH_MAX] | |
new pathname for a rename, may be empty | |
} rename | |
if the event was a rename, these are the pair of pathnames, one of the two may be empty if we don't know what it was renamed from or to | |
}; |
Changes to the filesystem are abstracted into events of this type and sent to interested listeners. This decouples the subsystem used to watch for filesystem changes from the code used to interpret the filesystem change. See How watch events are utilized..
Definition at line 68 of file lwatch.h.