#include <stdbool.h>
#include <data/transformations.h>
+#include <data/casefile-factory.h>
#include <libpspp/compiler.h>
struct ccase;
\f
/* Procedures. */
-struct dataset * create_dataset (void);
+struct dictionary ;
+typedef void replace_source_callback (struct case_source *);
+typedef void replace_dictionary_callback (struct dictionary *);
+
+
+struct dataset * create_dataset (struct casefile_factory *fact,
+ replace_source_callback *,
+ replace_dictionary_callback *
+ );
+
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 *aux)
WARN_UNUSED_RESULT;
-
-
time_t time_of_last_procedure (struct dataset *ds);
+
+void proc_open (struct dataset *);
+bool proc_read (struct dataset *, struct ccase **);
+bool proc_close (struct dataset *);
\f
struct ccase *lagged_case (const struct dataset *ds, int n_before);