libinotifytools
Main Page
Related Pages
Files
File List
File Members
inotifytools
inotifytools.h
Go to the documentation of this file.
1
#ifndef _inotifytools_H
2
#define _inotifytools_H
3
4
#ifdef __cplusplus
5
extern
"C"
6
{
7
#endif
8
9
#include <stdio.h>
10
11
int
inotifytools_str_to_event
(
char
const
* event);
12
int
inotifytools_str_to_event_sep
(
char
const
* event,
char
sep);
13
char
*
inotifytools_event_to_str
(
int
events);
14
char
*
inotifytools_event_to_str_sep
(
int
events,
char
sep);
15
void
inotifytools_set_filename_by_wd
(
int
wd,
char
const
* filename );
16
void
inotifytools_set_filename_by_filename
(
char
const
* oldname,
17
char
const
* newname );
18
void
inotifytools_replace_filename
(
char
const
* oldname,
19
char
const
* newname );
20
char
*
inotifytools_filename_from_wd
(
int
wd );
21
int
inotifytools_wd_from_filename
(
char
const
* filename );
22
int
inotifytools_remove_watch_by_filename
(
char
const
* filename );
23
int
inotifytools_remove_watch_by_wd
(
int
wd );
24
int
inotifytools_watch_file
(
char
const
* filename,
int
events );
25
int
inotifytools_watch_files
(
char
const
* filenames[],
int
events );
26
int
inotifytools_watch_recursively
(
char
const
* path,
int
events );
27
int
inotifytools_watch_recursively_with_exclude
(
char
const
* path,
28
int
events,
29
char
const
** exclude_list );
30
// [UH]
31
int
inotifytools_ignore_events_by_regex
(
char
const
*pattern,
int
flags );
32
struct
inotify_event *
inotifytools_next_event
(
int
timeout );
33
struct
inotify_event *
inotifytools_next_events
(
int
timeout,
int
num_events );
34
int
inotifytools_error
();
35
int
inotifytools_get_stat_by_wd
(
int
wd,
int
event );
36
int
inotifytools_get_stat_total
(
int
event );
37
int
inotifytools_get_stat_by_filename
(
char
const
* filename,
38
int
event );
39
void
inotifytools_initialize_stats
();
40
int
inotifytools_initialize
();
41
void
inotifytools_cleanup
();
42
int
inotifytools_get_num_watches
();
43
44
int
inotifytools_printf
(
struct
inotify_event* event,
char
* fmt );
45
int
inotifytools_fprintf
( FILE* file,
struct
inotify_event* event,
char
* fmt );
46
int
inotifytools_sprintf
(
char
* out,
struct
inotify_event* event,
char
* fmt );
47
int
inotifytools_snprintf
(
char
* out,
int
size,
struct
inotify_event* event,
48
char
* fmt );
49
void
inotifytools_set_printf_timefmt
(
char
* fmt );
50
51
int
inotifytools_get_max_user_watches
();
52
int
inotifytools_get_max_user_instances
();
53
int
inotifytools_get_max_queued_events
();
54
55
#ifdef __cplusplus
56
}
57
#endif
58
59
#endif // _inotifytools_H
Generated on Sat Apr 12 2014 12:07:48 for libinotifytools by
1.8.1.2