test/t_inotify.c: cleanup and moved to t_notify.c
This commit is contained in:
parent
5fd33c5115
commit
1d99ab9eea
2 changed files with 2 additions and 6 deletions
|
|
@ -43,7 +43,7 @@ inotify :
|
||||||
../src/fscrawl.c \
|
../src/fscrawl.c \
|
||||||
../src/queue.c \
|
../src/queue.c \
|
||||||
../src/inotify.c \
|
../src/inotify.c \
|
||||||
t_inotify.c -o test_inotify
|
t_notify.c -o test_inotify
|
||||||
|
|
||||||
fscrawl :
|
fscrawl :
|
||||||
$(CC) $(CFLAGS) \
|
$(CC) $(CFLAGS) \
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,6 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "../src/notify.h"
|
#include "../src/notify.h"
|
||||||
|
|
||||||
PROT_SCAN_CALLBACK(my_callback) {
|
|
||||||
//printf("FROM THREAD -- path: %s; is_dir = %i\n", path, dir);
|
|
||||||
}
|
|
||||||
|
|
||||||
int main(int argc, char *argv[]) {
|
int main(int argc, char *argv[]) {
|
||||||
|
|
||||||
notify_event *event;
|
notify_event *event;
|
||||||
|
|
@ -22,7 +18,7 @@ int main(int argc, char *argv[]) {
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
|
|
||||||
event = notify_read(3);
|
event = notify_read();
|
||||||
|
|
||||||
if (event == NULL)
|
if (event == NULL)
|
||||||
continue;
|
continue;
|
||||||
Reference in a new issue