Ignore:
Timestamp:
Nov 1, 2011, 12:33:37 AM (13 years ago)
Author:
katerina
Message:

One more patch for ticket #265 (inotify). Handle dirs that are only specified as files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/sh_inotify.h

    r371 r372  
    2323#define SH_INOTIFY_INITIALIZER { NULL, NULL, 0, 0 }
    2424
     25#define SH_INOTIFY_FILE 0
     26#define SH_INOTIFY_DIR  1
     27
    2528int sh_inotify_wait_for_change(char * filename, sh_watches * watches,
    2629                               int  * errnum,   int waitsec);
     
    2932
    3033int sh_inotify_add_watch(char * filename, sh_watches * watches, int  * errnum,
    31                          int class, unsigned long check_mask);
     34                         int class, unsigned long check_mask, int type);
    3235
    3336int sh_inotify_add_watch_later(char * filename, sh_watches * watches, int  * errnum,
    34                                int class, unsigned long check_mask);
     37                               int class, unsigned long check_mask, int type);
    3538
    36 char * sh_inotify_pop_dormant(sh_watches * watches, int * class, unsigned long * check_mask);
     39char * sh_inotify_pop_dormant(sh_watches * watches, int * class, unsigned long * check_mask, int * type);
    3740
    3841void sh_inotify_purge_dormant(sh_watches * watches);
     
    4144
    4245char * sh_inotify_search_item(sh_watches * watches, int watch,
    43                               int * class, unsigned long * check_mask);
     46                              int * class, unsigned long * check_mask, int * type);
    4447ssize_t sh_inotify_read(char * buffer, size_t count);
    4548ssize_t sh_inotify_read_timeout(char * buffer, size_t count, int timeout);
Note: See TracChangeset for help on using the changeset viewer.