1 /*  Copyright 2001 Rien Croonenborghs, Ben Kibbey, Shaun Jackman, Ivan Brozovic
2 
3     This file is part of lcab.
4     lcab is free software; you can redistribute it and/or modify
5     it under the terms of the GNU General Public License as published by
6     the Free Software Foundation; either version 2 of the License, or
7     (at your option) any later version.
8     lcab is distributed in the hope that it will be useful,
9     but WITHOUT ANY WARRANTY; without even the implied warranty of
10     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11     GNU General Public License for more details.
12     You should have received a copy of the GNU General Public License
13     along with lcab; if not, write to the Free Software
14     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
15 */
16 
17 #include "cdata.h"
18 
19 // initialize the cabdata-structure
20 // set checksum for datablock
21 // checksums are computed at a later time and added then
cdata_init(struct cdata * cd,int checksum)22 void cdata_init( struct cdata *cd, int checksum )
23 {
24 	cd->checksum = checksum;
25 }
26 
27 // set number of compressed bytes in datablock
cdata_ncbytes(struct cdata * cd,int ncb)28 void cdata_ncbytes( struct cdata *cd, int ncb )
29 {
30 	cd->ncbytes = ncb;
31 }
32 
33 // set number of uncompressed bytes in datablock
cdata_nubytes(struct cdata * cd,int nub)34 void cdata_nubytes( struct cdata *cd, int nub )
35 {
36 	cd->nubytes = nub;
37 }
38 
39 
40