3 GHashTable
*directory_paths
;
5 void init_directory_paths(void)
7 // FIXME padding '////' from root_path
8 directory_paths
= g_hash_table_new(g_str_hash
, g_str_equal
);
11 void init_inotify(char *root_path
)
13 int descriptor
, watch
;
15 if ((descriptor
= inotify_init()) == -1) {
19 if ((watch
= inotify_add_watch(descriptor
, root_path
, IN_MOVED_FROM
| IN_MOVED_TO
| IN_DELETED
)) == -1) {
25 GNode
*get_file_by_path(char *path
)
29 void insert_file_in_directory(GNode
*directory
, GNode
*file
)
33 void remove_file_from_directory(GNode
*file
)
This page took 0.257102 seconds and 4 git commands to generate.