/* A callback function for the directory diff calculation routine, produces G_FILE_MONITOR_EVENT_RENAMED event on a move.  */
static void handle_moved(void *udata, const char *from_path, ino_t from_inode, const char *to_path, ino_t to_inode)
/* A callback function for the directory diff calculation routine, produces G_FILE_MONITOR_EVENT_RENAMED event on a move.  */
static void handle_moved(void *udata, const char *from_path, ino_t from_inode, const char *to_path, ino_t to_inode)
{
  handle_ctx *ctx = NULL;
  (void) from_inode;
  (void) to_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_RENAMED,
                                      from_path, to_path, NULL, g_get_monotonic_time ());
}