Changeset 372 for trunk/src/sh_inotify.c
- Timestamp:
- Nov 1, 2011, 12:33:37 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_inotify.c
r371 r372 125 125 { 126 126 int watch; 127 int flag; 127 short flag; 128 short type; 128 129 int class; 129 130 unsigned long check_mask; … … 355 356 356 357 char * sh_inotify_pop_dormant(sh_watches * watches, 357 int * class, unsigned long * check_mask )358 int * class, unsigned long * check_mask, int * type) 358 359 { 359 360 char * popret = NULL; … … 372 373 { 373 374 *class = this->watch->class; 375 *type = this->watch->type; 374 376 *check_mask = this->watch->check_mask; 375 377 popret = sh_util_strdup(this->watch->file); … … 472 474 int sh_inotify_add_watch_later(char * filename, sh_watches * watches, 473 475 int * errnum, 474 int class, unsigned long check_mask )476 int class, unsigned long check_mask, int type) 475 477 { 476 478 sh_watch * item; … … 479 481 480 482 item->class = class; 483 item->type = (short) type; 481 484 item->check_mask = check_mask; 482 485 … … 571 574 */ 572 575 int sh_inotify_add_watch(char * filename, sh_watches * watches, int * errnum, 573 int class, unsigned long check_mask )576 int class, unsigned long check_mask, int type) 574 577 { 575 578 volatile int retval = 0; … … 614 617 615 618 item->class = class; 619 item->type = type; 616 620 item->check_mask = check_mask; 617 621 … … 651 655 652 656 char * sh_inotify_search_item(sh_watches * watches, int watch, 653 int * class, unsigned long * check_mask )657 int * class, unsigned long * check_mask, int * type) 654 658 { 655 659 sh_watch * item; … … 668 672 *class = item->class; 669 673 *check_mask = item->check_mask; 674 *type = item->type; 670 675 sret = sh_util_strdup(item->file); 671 676 } … … 705 710 if (filename) 706 711 { 707 if (sh_inotify_add_watch(filename, watches, errnum, 0, 0 ) < 0)712 if (sh_inotify_add_watch(filename, watches, errnum, 0, 0, SH_INOTIFY_FILE) < 0) 708 713 { 709 714 retry_msleep(waitsec, 0);
Note:
See TracChangeset
for help on using the changeset viewer.