static void merged_callback_remove_directory_cover (gpointer key, gpointer value, gpointer callback_data) { merged_callback_remove_directory (value, NEMO_DIRECTORY (callback_data)); }
static void directory_ready_callback (CajaDirectory *directory, GList *files, gpointer callback_data) { MergedCallback *merged_callback; g_assert (CAJA_IS_DIRECTORY (directory)); g_assert (callback_data != NULL); merged_callback = callback_data; g_assert (g_list_find (merged_callback->non_ready_directories, directory) != NULL); /* Update based on this call. */ merged_callback->merged_file_list = g_list_concat (merged_callback->merged_file_list, caja_file_list_copy (files)); /* Check if we are ready. */ merged_callback_remove_directory (merged_callback, directory); }