/* A callback function for the directory diff calculation routine, produces G_FILE_MONITOR_EVENT_DELETED/CREATED event pair when an overwrite occurs in the directory (see dep-list for details).  */
static void handle_overwritten(void *udata, const char *path, ino_t inode)
/* A callback function for the directory diff calculation routine, produces G_FILE_MONITOR_EVENT_DELETED/CREATED event pair when an overwrite occurs in the directory (see dep-list for details).  */
static void handle_overwritten(void *udata, const char *path, ino_t inode)
{
  handle_ctx *ctx = NULL;
  (void) inode;
  ctx = (handle_ctx *) udata;
  g_assert (udata != NULL);
  g_assert (ctx->sub != NULL);
  g_assert (ctx->source != NULL);
  g_file_monitor_source_handle_event (ctx->source, G_FILE_MONITOR_EVENT_DELETED,
                                      path, NULL, NULL, g_get_monotonic_time ());
  g_file_monitor_source_handle_event (ctx->source, G_FILE_MONITOR_EVENT_CREATED,
                                      path, NULL, NULL, g_get_monotonic_time ());
}