diff options
Diffstat (limited to '')
-rw-r--r-- | src/directory.h | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/src/directory.h b/src/directory.h index 20b784166..c43f8f3c5 100644 --- a/src/directory.h +++ b/src/directory.h @@ -37,23 +37,22 @@ typedef struct _Directory { unsigned stat; /* not needed if ino_t == dev_t == 0 is impossible */ } Directory; -void reap_update_task(void); - -int isUpdatingDB(void); - -/* - * returns the non-negative update job ID on success, - * returns -1 if busy - * @path will be freed by this function and should not be reused - */ -int directory_update_init(char *path); - void directory_init(void); void directory_finish(void); int isRootDirectory(const char *name); +Directory * directory_get_root(void); + +Directory * newDirectory(const char *dirname, Directory * parent); + +void freeDirectory(Directory * directory); + +Directory * getDirectory(const char *name); + +void sortDirectory(Directory * directory); + int printDirectoryInfo(int fd, const char *dirname); int checkDirectoryDB(void); |