ARB
Macros | Enumerations | Functions
aw_inotify.hxx File Reference
#include <cb.h>
Include dependency graph for aw_inotify.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CHANGE_REASONS   (CR_CREATED+1)
 

Enumerations

enum  ChangeReason { CR_MODIFIED, CR_DELETED, CR_CREATED }
 

Functions

 DECLARE_CBTYPE_FFV_AND_BUILDERS (FileChangedCallback, void, const char *, ChangeReason)
 
void AW_add_inotification (const char *file, const FileChangedCallback &fccb)
 
void AW_remove_inotification (const char *file, const FileChangedCallback &fccb)
 

Macro Definition Documentation

#define CHANGE_REASONS   (CR_CREATED+1)

Definition at line 24 of file aw_inotify.hxx.

Enumeration Type Documentation

Enumerator
CR_MODIFIED 
CR_DELETED 
CR_CREATED 

Definition at line 18 of file aw_inotify.hxx.

Function Documentation

DECLARE_CBTYPE_FFV_AND_BUILDERS ( FileChangedCallback  ,
void  ,
const char ,
ChangeReason   
)
void AW_add_inotification ( const char file,
const FileChangedCallback &  fccb 
)

callback after a file changes

Parameters
filethe file to watch
fccbcallback to call

Definition at line 473 of file AW_inotify.cxx.

References AW_root::add_timed_callback(), allTrackers(), fputs(), maintain_timer_callback, show_tracked_error(), AW_root::SINGLETON, and timed_inotifications_check_cb().

Referenced by AW_edit_notified(), and PT_selection::PT_selection().

void AW_remove_inotification ( const char file,
const FileChangedCallback &  fccb 
)

Definition at line 489 of file AW_inotify.cxx.

References allTrackers(), and show_tracked_error().