source: trunk/include/sh_inotify.h@ 351

Last change on this file since 351 was 261, checked in by katerina, 15 years ago

Add missing files for inotify support (ticket #177).

File size: 501 bytes
RevLine 
[261]1#ifndef SH_INOTIFY_H
2#define SH_INOTIFY_H
3
4#define SH_INOTIFY_MAX 128
5
6typedef struct
7{
8 int watch[SH_INOTIFY_MAX];
9 int flag[SH_INOTIFY_MAX];
10 char * file[SH_INOTIFY_MAX];
11 int count;
12
13} sh_watches;
14
15int sh_inotify_wait_for_change(char * filename, sh_watches * watches,
16 int * errnum, int waitsec);
17
18int sh_inotify_add_watch(char * filename, sh_watches * watches, int * errnum);
19
20void sh_inotify_remove(sh_watches * watches);
21
22#define SH_INOTIFY_ERROR(a) (a != 0)
23
24#endif
Note: See TracBrowser for help on using the repository browser.