-find_result_t *dump_exist(find_result_t *output_find, char *hostname, char *diskname, char *datestamp, int level);
-find_result_t *dumps_match(find_result_t *output_find, char *hostname, char *diskname, char *datestamp, char *level, int ok);
+find_result_t *dump_exist(find_result_t *output_find, char *hostname,
+ char *diskname, char *datestamp, int level);
+find_result_t *dumps_match(find_result_t *output_find, char *hostname,
+ char *diskname, char *datestamp, char *level,
+ int ok);
+find_result_t *dumps_match_dumpspecs(find_result_t *output_find,
+ GSList *dumpspecs,
+ int ok);
+
+/* This function looks in a particular log.xxx file for dumps. Returns TRUE
+ * if something was found. This function also skips dumps whose disklist
+ * entries are not marked 'todo'.
+ * * output_find : Put found dumps here.
+ * * volume_label : If not NULL, restrict the search to
+ * dumps matching the given volume details.
+ * * log_datestamp : If not NULL, checks that this logfile is from this time.
+ * * logfile : Name of logfile in config dir.
+ * * dynamic_disklist : If not NULL, adds disks not already in the global
+ * disklist to the given disklist (and the global one).
+ * If dynamic_disklist is NULL, skips disks not in the
+ * global disklist.
+ */
+gboolean search_logfile(find_result_t **output_find, const char *volume_label,
+ const char *log_datestamp, const char *logfile,
+ disklist_t * dynamic_disklist);