X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fcasewriter-provider.h;h=7231a1f3bbfc1af5580547ae723090f03035f098;hb=407f3c634628b92fb6b57cbcff229270107cdddc;hp=8298af465da9d88640fe813f6a12309c6effd036;hpb=130ced32165dc409b1be560d3d7a581a7ba3c5ee;p=pspp diff --git a/src/data/casewriter-provider.h b/src/data/casewriter-provider.h index 8298af465d..7231a1f3bb 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 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 @@ -23,7 +23,8 @@ 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,7 +57,7 @@ struct casewriter_class struct casereader *(*convert_to_reader) (struct casewriter *, void *aux); }; -struct casewriter *casewriter_create (size_t value_cnt, +struct casewriter *casewriter_create (const struct caseproto *, const struct casewriter_class *, void *); #endif /* data/casewriter-provider.h */