/**
* Cancels a subscription which was being monitored.
* inotify_lock must be held when calling.
*/
gboolean
static gboolean
ih_sub_cancel (ih_sub_t * sub)
{
G_LOCK(inotify_lock);
if (!sub->cancelled)
IH_W("cancelling %s\n", sub->pathname);
sub_list = g_list_remove (sub_list, sub);
}
G_UNLOCK(inotify_lock);
return TRUE;
found_callback_t fcb);
gboolean ih_running (void);
gboolean ih_sub_add (ih_sub_t *sub);
gboolean ih_sub_cancel (ih_sub_t *sub);
/* Return FALSE from 'f' if the subscription should be cancelled */
void ih_sub_foreach (void *callerdata, gboolean (*f)(ih_sub_t *sub, void *callerdata));
-