~ubuntu-branches/debian/sid/dico/sid

« back to all changes in this revision

Viewing changes to modules/dict.org/data.c

  • Committer: Bazaar Package Importer
  • Author(s): أحمد المحمودي (Ahmed El-Mahmoudy)
  • Date: 2009-04-03 06:28:25 UTC
  • Revision ID: james.westby@ubuntu.com-20090403062825-n4tbn09hv9ve5s2s
Tags: upstream-2.0
Import upstream version 2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* This file is part of GNU Dico.
 
2
   Copyright (C) 2008 Sergey Poznyakoff
 
3
 
 
4
   GNU Dico 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 3, or (at your option)
 
7
   any later version.
 
8
 
 
9
   GNU Dico is distributed in the hope that it will be useful,
 
10
   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
   GNU General Public License for more details.
 
13
 
 
14
   You should have received a copy of the GNU General Public License
 
15
   along with GNU Dico.  If not, see <http://www.gnu.org/licenses/>. */
 
16
 
 
17
#include "dictorg.h"
 
18
#include <zlib.h>
 
19
 
 
20
struct dictorg_data {
 
21
   int           type;
 
22
   const char    *filename;
 
23
   z_stream      zStream;
 
24
   int           initialized;
 
25
 
 
26
   int           headerLength;
 
27
   int           method;
 
28
   int           flags;
 
29
   time_t        mtime;
 
30
   int           extraFlags;
 
31
   int           os;
 
32
   int           version;
 
33
   int           chunkLength;
 
34
   int           chunkCount;
 
35
   int           *chunks;
 
36
   unsigned long *offsets;      /* Sum-scan of chunks. */
 
37
   const char    *origFilename;
 
38
   const char    *comment;
 
39
   unsigned long crc;
 
40
   unsigned long length;
 
41
   unsigned long compressedLength;
 
42
};