~ubuntu-branches/ubuntu/oneiric/eggdrop/oneiric

« back to all changes in this revision

Viewing changes to src/mod/compress.mod/compress.h

  • Committer: Bazaar Package Importer
  • Author(s): Guilherme de S. Pastore
  • Date: 2004-06-17 09:15:28 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040617091528-64rrw1sa33lkfhmh
Tags: 1.6.16-2
* Fixed typo on README.Debian
* Fixed hyphens in manual page
* Converted debian/rules to CDBS
* Set path to binary on example config file
* Changed LANGDIR on src/eggdrop.h (Closes: #254824)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 * compress.h -- part of src/mod/compress.mod
3
3
 *   header file for the zlib compression module
4
4
 *
5
 
 * $Id: compress.h,v 1.5 2002/01/02 03:46:38 guppy Exp $
 
5
 * $Id: compress.h,v 1.9 2004/01/09 05:56:37 wcc Exp $
6
6
 */
7
7
/*
8
 
 * Copyright (C) 2000, 2001, 2002 Eggheads Development Team
 
8
 * Copyright (C) 2000, 2001, 2002, 2003, 2004 Eggheads Development Team
9
9
 *
10
10
 * This program is free software; you can redistribute it and/or
11
11
 * modify it under the terms of the GNU General Public License
25
25
#ifndef _EGG_MOD_COMPRESS_COMPRESS_H
26
26
#define _EGG_MOD_COMPRESS_COMPRESS_H
27
27
 
28
 
#define UFF_COMPRESS    0x000008        /* Compress the user file       */
 
28
#define UFF_COMPRESS    0x000008        /* Compress the user file       */
29
29
 
30
30
typedef enum {
31
 
  COMPF_ERROR,          /* Compression failed.                  */
32
 
  COMPF_SUCCESS         /* Compression succeeded.               */
 
31
  COMPF_ERROR,                  /* Compression failed.                  */
 
32
  COMPF_SUCCESS                 /* Compression succeeded.               */
33
33
} compf_result;
34
34
 
35
35
typedef enum {
36
 
  COMPF_UNCOMPRESSED,   /* File is uncompressed.                */
37
 
  COMPF_COMPRESSED,     /* File is compressed.                  */
38
 
  COMPF_FAILED          /* Could not determine file type.       */
 
36
  COMPF_UNCOMPRESSED,           /* File is uncompressed.                */
 
37
  COMPF_COMPRESSED,             /* File is compressed.                  */
 
38
  COMPF_FAILED                  /* Could not determine file type.       */
39
39
} compf_type;
40
40
 
41
41
 
42
42
#ifndef MAKING_COMPRESS
43
43
/* 4 - 7 */
44
44
# define compress_to_file   ((int (*)(char *, char *, int))(compress_funcs[4]))
45
 
# define compress_file      ((int (*)(char *, int))(compress_funcs[5]))
 
45
# define compress_file      ((int (*)(char *, int))(compress_funcs[5]))
46
46
# define uncompress_to_file ((int (*)(char *, char *))(uncompress_funcs[6]))
47
47
# define uncompress_file    ((int (*)(char *))(uncompress_funcs[7]))
48
48
/* 8 - 11 */