inotify-map: rename lookup to get_path
This commit is contained in:
parent
514a91b52e
commit
e0302e8ac4
4 changed files with 8 additions and 23 deletions
|
|
@ -192,7 +192,7 @@ int inotify_map_get_wd(const char *path) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
char** inotify_map_lookup(int wd) {
|
||||
char** inotify_map_get_path(int wd) {
|
||||
|
||||
char **out = NULL;
|
||||
struct list *list;
|
||||
|
|
@ -215,7 +215,7 @@ char** inotify_map_lookup_by_path(const char *path) {
|
|||
|
||||
int wd = inotify_map_get_wd(path);
|
||||
if (wd)
|
||||
return inotify_map_lookup(wd);
|
||||
return inotify_map_get_path(wd);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ void inotify_unmap_all();
|
|||
|
||||
int inotify_map_get_wd(const char *path);
|
||||
|
||||
char** inotify_map_lookup(int wd);
|
||||
char** inotify_map_get_path(int wd);
|
||||
|
||||
char** inotify_map_lookup_by_path(const char *path);
|
||||
|
||||
|
|
|
|||
|
|
@ -143,7 +143,7 @@ static void proc_event(inoev *iev) {
|
|||
}
|
||||
|
||||
/* lookup the watch descriptor in rbtree */
|
||||
paths = inotify_map_lookup(iev->wd);
|
||||
paths = inotify_map_get_path(iev->wd);
|
||||
|
||||
if (!paths) {
|
||||
logmsg(LOG_WARN, "-- IGNORING EVENT -- invalid watchdescriptor %i", iev->wd);
|
||||
|
|
|
|||
Reference in a new issue