X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fcasewriter-provider.h;h=822edfd0da59ee284bb57f70c0f8613c81eca0b4;hb=81579d9e9f994fb2908f50af41c3eb033d216e58;hp=29a6ee06c41bb8d2a49a6346cebcc9e7b97665df;hpb=43b1296aafe7582e7dbe6c2b6a8b478d7d9b0fcf;p=pspp-builds.git diff --git a/src/data/casewriter-provider.h b/src/data/casewriter-provider.h index 29a6ee06..822edfd0 100644 --- a/src/data/casewriter-provider.h +++ b/src/data/casewriter-provider.h @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 2006 Free Software Foundation, Inc. + Copyright (C) 2006, 2009, 2011 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -17,13 +17,14 @@ #ifndef DATA_CASEWRITER_PROVIDER_H #define DATA_CASEWRITER_PROVIDER_H 1 -#include +#include "data/casewriter.h" struct casewriter_class { /* Mandatory. - Writes case C to WRITER. Destroys C before returning. + Writes case C to WRITER. Ownership of C is transferred to + WRITER. If an I/O error occurs, this function should call casewriter_force_error on WRITER. Some I/O error @@ -56,6 +57,7 @@ struct casewriter_class struct casereader *(*convert_to_reader) (struct casewriter *, void *aux); }; -struct casewriter *casewriter_create (const struct casewriter_class *, void *); +struct casewriter *casewriter_create (const struct caseproto *, + const struct casewriter_class *, void *); #endif /* data/casewriter-provider.h */