Archived
1
0
Fork 0
This repository has been archived on 2026-05-10. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
archived/src/inotify-watch.h
2011-03-17 20:22:16 +02:00

23 lines
491 B
C

#ifndef INOTIFY_WATCH_H
#define INOTIFY_WATCH_H
#include "tree.h"
struct watch {
struct tree tree;
int wd;
const char *path;
};
struct watch* inotify_watch_new(int wd, const char *path);
void inotify_watch_destroy(struct watch *watch, void (*fn)(struct watch *));
struct watch* inotify_watch_add(struct watch *parent, struct watch *watch);
void inotify_watch_rm(struct watch *watch);
struct watch* inotify_watch_find_child(struct watch *watch, const char *path);
#endif