Last change
on this file since 363 was 363, checked in by katerina, 13 years ago |
Change zAVL implementation to allow integer keys.
|
File size:
621 bytes
|
Line | |
---|
1 | #ifndef SH_INOTIFY_H
|
---|
2 | #define SH_INOTIFY_H
|
---|
3 |
|
---|
4 | #define SH_INOTIFY_MAX 128
|
---|
5 |
|
---|
6 | typedef struct
|
---|
7 | {
|
---|
8 | /*
|
---|
9 | void * list_of_watches;
|
---|
10 | */
|
---|
11 |
|
---|
12 | int watch[SH_INOTIFY_MAX];
|
---|
13 | int flag[SH_INOTIFY_MAX];
|
---|
14 | char * file[SH_INOTIFY_MAX];
|
---|
15 |
|
---|
16 | int count;
|
---|
17 | int max_count;
|
---|
18 | } sh_watches;
|
---|
19 |
|
---|
20 | #define SH_INOTIFY_INITIALIZER { { 0 }, { 0 }, { NULL}, 0, 0 }
|
---|
21 |
|
---|
22 | int sh_inotify_wait_for_change(char * filename, sh_watches * watches,
|
---|
23 | int * errnum, int waitsec);
|
---|
24 |
|
---|
25 | int sh_inotify_add_watch(char * filename, sh_watches * watches, int * errnum);
|
---|
26 |
|
---|
27 | void sh_inotify_remove(sh_watches * watches);
|
---|
28 |
|
---|
29 | #define SH_INOTIFY_ERROR(a) (a != 0)
|
---|
30 |
|
---|
31 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.