-bool procedure (bool (*proc_func) (const struct ccase *, void *),
- void *aux)
- WARN_UNUSED_RESULT;
-bool procedure_with_splits (void (*begin_func) (const struct ccase *, void *),
- bool (*proc_func) (const struct ccase *, void *),
- void (*end_func) (void *),
+void destroy_dataset (struct dataset *);
+
+struct casefile_factory *dataset_get_casefile_factory (const struct dataset *);
+
+void proc_set_source (struct dataset *ds, struct case_source *);
+bool proc_has_source (const struct dataset *ds);
+
+void proc_set_sink (struct dataset *ds, struct case_sink *);
+struct casefile *proc_capture_output (struct dataset *ds);
+
+typedef bool casefile_func (const struct casefile *, void *);
+typedef bool case_func (const struct ccase *, void *, const struct dataset *);
+typedef void begin_func (const struct ccase *, void *, const struct dataset*);
+
+typedef bool end_func (void *, const struct dataset *);
+
+typedef bool split_func (const struct ccase *, const struct casefile *,
+ void *, const struct dataset *);
+
+
+
+bool procedure (struct dataset *ds, case_func *, void *aux) WARN_UNUSED_RESULT;
+
+bool procedure_with_splits (struct dataset *ds,
+ begin_func *,
+ case_func *,
+ end_func *,