X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fcasewriter-provider.h;h=7231a1f3bbfc1af5580547ae723090f03035f098;hb=5c3291dc396b795696e94f47780308fd7ace6fc4;hp=1f4fcab6d7798f31dc1cdeed37007ee1d1536fb1;hpb=ed88deded6a59254dd55883308c4c20966efc77e;p=pspp-builds.git diff --git a/src/data/casewriter-provider.h b/src/data/casewriter-provider.h index 1f4fcab6..7231a1f3 100644 --- a/src/data/casewriter-provider.h +++ b/src/data/casewriter-provider.h @@ -1,31 +1,30 @@ -/* PSPP - computes sample statistics. - Copyright (C) 2006 Free Software Foundation, Inc. +/* PSPP - a program for statistical analysis. + 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 the Free Software Foundation; either version 2 of the - License, or (at your option) any later version. + 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 + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. - This program is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - 02110-1301, USA. */ + along with this program. If not, see . */ #ifndef DATA_CASEWRITER_PROVIDER_H #define DATA_CASEWRITER_PROVIDER_H 1 #include -struct casewriter_class +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 @@ -58,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 */