138
142
VFSFileMonitor* vfs_file_monitor_add( char* path,
139
144
VFSFileMonitorCallback cb,
142
147
VFSFileMonitor * monitor;
143
148
VFSFileMonitorCallbackEntry cb_ent;
155
155
monitor = ( VFSFileMonitor* ) g_hash_table_lookup ( monitor_hash, path );
158
158
monitor = g_slice_new0( VFSFileMonitor );
159
159
monitor->path = g_strdup( path );
160
161
monitor->callbacks = g_array_new ( FALSE, FALSE, sizeof( VFSFileMonitorCallbackEntry ) );
161
162
g_hash_table_insert ( monitor_hash,
166
166
/* NOTE: Since gamin, FAM and inotify don't follow symlinks,
167
167
we need to do some special processing here. */