From 3e4723aa06c508410ba1cea273501e82491b2b85 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Mon, 27 Sep 2010 08:23:25 +0200 Subject: [PATCH] notify/notify.h: changed the api abit. --- src/arch.c | 2 +- src/notify/inotify.c | 2 +- src/notify/notify.h | 4 +--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/arch.c b/src/arch.c index 28321b3..cabd7d3 100644 --- a/src/arch.c +++ b/src/arch.c @@ -26,7 +26,7 @@ static void clean_exit(int excode) { time_t t = time(NULL); - notify_cleanup(); + notify_exit(); // Clean output int status = output_exit(); diff --git a/src/notify/inotify.c b/src/notify/inotify.c index 6e0a812..b9be358 100644 --- a/src/notify/inotify.c +++ b/src/notify/inotify.c @@ -180,7 +180,7 @@ int notify_init() { return 1; } -void notify_cleanup() { +void notify_exit() { fd = 0; diff --git a/src/notify/notify.h b/src/notify/notify.h index 4631fc4..1c05c33 100644 --- a/src/notify/notify.h +++ b/src/notify/notify.h @@ -17,14 +17,12 @@ int notify_init(); -void notify_cleanup(); +void notify_exit(); int notify_add_watch(const char *path); int notify_rm_watch(const char *path); -void notify_print_stat(); - notify_event* notify_read(); void notify_stat();