libinotifytools
inotifytools
inotifytools.h
Go to the documentation of this file.
1
#ifndef _inotifytools_H
2
#define _inotifytools_H
3
4
#ifdef __FreeBSD__
5
#define stat64 stat
6
#define lstat64 lstat
7
#endif
8
9
#ifdef __cplusplus
10
extern
"C"
11
{
12
#endif
13
14
#include <stdio.h>
15
16
int
inotifytools_str_to_event
(
char
const
* event);
17
int
inotifytools_str_to_event_sep
(
char
const
* event,
char
sep);
18
char
*
inotifytools_event_to_str
(
int
events);
19
char
*
inotifytools_event_to_str_sep
(
int
events,
char
sep);
20
void
inotifytools_set_filename_by_wd
(
int
wd,
char
const
* filename );
21
void
inotifytools_set_filename_by_filename
(
char
const
* oldname,
22
char
const
* newname );
23
void
inotifytools_replace_filename
(
char
const
* oldname,
24
char
const
* newname );
25
char
*
inotifytools_filename_from_wd
(
int
wd );
26
int
inotifytools_wd_from_filename
(
char
const
* filename );
27
int
inotifytools_remove_watch_by_filename
(
char
const
* filename );
28
int
inotifytools_remove_watch_by_wd
(
int
wd );
29
int
inotifytools_watch_file
(
char
const
* filename,
int
events );
30
int
inotifytools_watch_files
(
char
const
* filenames[],
int
events );
31
int
inotifytools_watch_recursively
(
char
const
* path,
int
events );
32
int
inotifytools_watch_recursively_with_exclude
(
char
const
* path,
33
int
events,
34
char
const
** exclude_list );
35
// [UH]
36
int
inotifytools_ignore_events_by_regex
(
char
const
*pattern,
int
flags );
37
int
inotifytools_ignore_events_by_inverted_regex
(
char
const
*pattern,
int
flags );
38
struct
inotify_event *
inotifytools_next_event
(
long
int
timeout );
39
struct
inotify_event *
inotifytools_next_events
(
long
int
timeout,
int
num_events );
40
int
inotifytools_error
();
41
int
inotifytools_get_stat_by_wd
(
int
wd,
int
event );
42
int
inotifytools_get_stat_total
(
int
event );
43
int
inotifytools_get_stat_by_filename
(
char
const
* filename,
44
int
event );
45
void
inotifytools_initialize_stats
();
46
int
inotifytools_initialize
();
47
void
inotifytools_cleanup
();
48
int
inotifytools_get_num_watches
();
49
50
int
inotifytools_printf
(
struct
inotify_event* event,
char
* fmt );
51
int
inotifytools_fprintf
( FILE* file,
struct
inotify_event* event,
char
* fmt );
52
int
inotifytools_sprintf
(
char
* out,
struct
inotify_event* event,
char
* fmt );
53
int
inotifytools_snprintf
(
char
* out,
int
size,
struct
inotify_event* event,
54
char
* fmt );
55
void
inotifytools_set_printf_timefmt
(
char
* fmt );
56
57
int
inotifytools_get_max_user_watches
();
58
int
inotifytools_get_max_user_instances
();
59
int
inotifytools_get_max_queued_events
();
60
61
#ifdef __cplusplus
62
}
63
#endif
64
65
#endif // _inotifytools_H
inotifytools_initialize
int inotifytools_initialize()
Definition:
inotifytools.c:284
inotifytools_remove_watch_by_wd
int inotifytools_remove_watch_by_wd(int wd)
Definition:
inotifytools.c:927
inotifytools_next_events
struct inotify_event * inotifytools_next_events(long int timeout, int num_events)
Definition:
inotifytools.c:1111
inotifytools_get_stat_by_filename
int inotifytools_get_stat_by_filename(char const *filename, int event)
Definition:
inotifytools.c:1595
inotifytools_set_printf_timefmt
void inotifytools_set_printf_timefmt(char *fmt)
Definition:
inotifytools.c:1964
inotifytools_sprintf
int inotifytools_sprintf(char *out, struct inotify_event *event, char *fmt)
Definition:
inotifytools.c:1786
inotifytools_event_to_str_sep
char * inotifytools_event_to_str_sep(int events, char sep)
Definition:
inotifytools.c:673
inotifytools_initialize_stats
void inotifytools_initialize_stats()
Definition:
inotifytools.c:426
inotifytools_watch_recursively_with_exclude
int inotifytools_watch_recursively_with_exclude(char const *path, int events, char const **exclude_list)
Definition:
inotifytools.c:1305
inotifytools_printf
int inotifytools_printf(struct inotify_event *event, char *fmt)
Definition:
inotifytools.c:1683
inotifytools_get_max_user_watches
int inotifytools_get_max_user_watches()
Definition:
inotifytools.c:2006
inotifytools_set_filename_by_filename
void inotifytools_set_filename_by_filename(char const *oldname, char const *newname)
Definition:
inotifytools.c:846
inotifytools_fprintf
int inotifytools_fprintf(FILE *file, struct inotify_event *event, char *fmt)
Definition:
inotifytools.c:1728
inotifytools_get_stat_total
int inotifytools_get_stat_total(int event)
Definition:
inotifytools.c:1541
inotifytools_set_filename_by_wd
void inotifytools_set_filename_by_wd(int wd, char const *filename)
Definition:
inotifytools.c:824
inotifytools_get_num_watches
int inotifytools_get_num_watches()
Definition:
inotifytools.c:1637
inotifytools_get_stat_by_wd
int inotifytools_get_stat_by_wd(int wd, int event)
Definition:
inotifytools.c:1518
inotifytools_event_to_str
char * inotifytools_event_to_str(int events)
Definition:
inotifytools.c:645
inotifytools_watch_file
int inotifytools_watch_file(char const *filename, int events)
Definition:
inotifytools.c:973
inotifytools_error
int inotifytools_error()
Definition:
inotifytools.c:1611
inotifytools_wd_from_filename
int inotifytools_wd_from_filename(char const *filename)
Definition:
inotifytools.c:803
inotifytools_str_to_event
int inotifytools_str_to_event(char const *event)
Definition:
inotifytools.c:558
inotifytools_watch_files
int inotifytools_watch_files(char const *filenames[], int events)
Definition:
inotifytools.c:995
inotifytools_ignore_events_by_regex
int inotifytools_ignore_events_by_regex(char const *pattern, int flags)
Definition:
inotifytools.c:2060
inotifytools_remove_watch_by_filename
int inotifytools_remove_watch_by_filename(char const *filename)
Definition:
inotifytools.c:950
inotifytools_replace_filename
void inotifytools_replace_filename(char const *oldname, char const *newname)
Definition:
inotifytools.c:876
inotifytools_next_event
struct inotify_event * inotifytools_next_event(long int timeout)
Definition:
inotifytools.c:1058
inotifytools_str_to_event_sep
int inotifytools_str_to_event_sep(char const *event, char sep)
Definition:
inotifytools.c:479
inotifytools_filename_from_wd
char * inotifytools_filename_from_wd(int wd)
Definition:
inotifytools.c:780
inotifytools_snprintf
int inotifytools_snprintf(char *out, int size, struct inotify_event *event, char *fmt)
Definition:
inotifytools.c:1837
inotifytools_cleanup
void inotifytools_cleanup()
Definition:
inotifytools.c:329
inotifytools_ignore_events_by_inverted_regex
int inotifytools_ignore_events_by_inverted_regex(char const *pattern, int flags)
Definition:
inotifytools.c:2075
inotifytools_watch_recursively
int inotifytools_watch_recursively(char const *path, int events)
Definition:
inotifytools.c:1269
inotifytools_get_max_queued_events
int inotifytools_get_max_queued_events()
Definition:
inotifytools.c:1976
inotifytools_get_max_user_instances
int inotifytools_get_max_user_instances()
Definition:
inotifytools.c:1991
Generated by
1.8.17