inotifytools/inotifytools.h

Go to the documentation of this file.
00001 #ifndef _inotifytools_H
00002 #define _inotifytools_H
00003 
00004 #include <stdio.h>
00005 
00006 int inotifytools_str_to_event(char const * event);
00007 int inotifytools_str_to_event_sep(char const * event, char sep);
00008 char * inotifytools_event_to_str(int events);
00009 char * inotifytools_event_to_str_sep(int events, char sep);
00010 char * inotifytools_filename_from_wd( int wd );
00011 int inotifytools_wd_from_filename( char const * filename );
00012 int inotifytools_remove_watch_by_filename( char const * filename );
00013 int inotifytools_remove_watch_by_wd( int wd );
00014 int inotifytools_watch_file( char const * filename, int events );
00015 int inotifytools_watch_files( char const * filenames[], int events );
00016 int inotifytools_watch_recursively( char const * path, int events );
00017 struct inotify_event * inotifytools_next_event( int timeout );
00018 struct inotify_event * inotifytools_next_events( int timeout, int num_events );
00019 int inotifytools_error();
00020 int inotifytools_get_stat_by_wd( int wd, int event );
00021 int inotifytools_get_stat_total( int event );
00022 int inotifytools_get_stat_by_filename( char const * filename,
00023                                                 int event );
00024 void inotifytools_initialize_stats();
00025 int inotifytools_initialize();
00026 int inotifytools_get_num_watches();
00027 
00028 int inotifytools_printf( struct inotify_event* event, char* fmt );
00029 int inotifytools_fprintf( FILE* file, struct inotify_event* event, char* fmt );
00030 int inotifytools_sprintf( char * out, struct inotify_event* event, char* fmt );
00031 int inotifytools_snprintf( char * out, int size, struct inotify_event* event,
00032                            char* fmt );
00033 void inotifytools_set_printf_timefmt( char * fmt );
00034 
00035 int inotifytools_get_max_user_watches();
00036 int inotifytools_get_max_user_instances();
00037 int inotifytools_get_max_queued_events();
00038 
00039 #endif     // _inotifytools_H

Generated on Fri Dec 28 00:52:21 2007 for libinotifytools by  doxygen 1.5.1