notify/notify.h: changed the api abit.
This commit is contained in:
parent
7106d9aa5e
commit
3e4723aa06
3 changed files with 3 additions and 5 deletions
|
|
@ -26,7 +26,7 @@ static void clean_exit(int excode) {
|
||||||
|
|
||||||
time_t t = time(NULL);
|
time_t t = time(NULL);
|
||||||
|
|
||||||
notify_cleanup();
|
notify_exit();
|
||||||
|
|
||||||
// Clean output
|
// Clean output
|
||||||
int status = output_exit();
|
int status = output_exit();
|
||||||
|
|
|
||||||
|
|
@ -180,7 +180,7 @@ int notify_init() {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void notify_cleanup() {
|
void notify_exit() {
|
||||||
|
|
||||||
fd = 0;
|
fd = 0;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,14 +17,12 @@
|
||||||
|
|
||||||
int notify_init();
|
int notify_init();
|
||||||
|
|
||||||
void notify_cleanup();
|
void notify_exit();
|
||||||
|
|
||||||
int notify_add_watch(const char *path);
|
int notify_add_watch(const char *path);
|
||||||
|
|
||||||
int notify_rm_watch(const char *path);
|
int notify_rm_watch(const char *path);
|
||||||
|
|
||||||
void notify_print_stat();
|
|
||||||
|
|
||||||
notify_event* notify_read();
|
notify_event* notify_read();
|
||||||
|
|
||||||
void notify_stat();
|
void notify_stat();
|
||||||
|
|
|
||||||
Reference in a new issue