lwatch_event_t Struct Reference

Watch event. More...

#include <lwatch.h>

List of all members.

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
}; 


Detailed Description

Watch event.

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.


The documentation for this struct was generated from the following file:

Generated on Mon Aug 31 10:06:21 2009 by  doxygen 1.5.8