Adding a missing #if
[privoxy.git] / src / deanimate.h
1 #ifndef DEANIMATE_H_INCLUDED
2 #define DEANIMATE_H_INCLUDED
3 #define DEANIMATE_H_VERSION "$Id: deanimate.h,v 1.8 2002/03/26 22:29:54 swa Exp $"
4 /*********************************************************************
5  *
6  * File        :  $Source: /cvsroot/ijbswa/current/deanimate.h,v $
7  *
8  * Purpose     :  Declares functions to deanimate GIF images on the fly.
9  *                
10  *                Functions declared include: gif_deanimate, buf_free
11  *                
12  *
13  * Copyright   :  Written by and Copyright (C) 2001 Andreas S. Oesterhelt
14  *                for the Privoxy team. http://www.privoxy.org/
15  *
16  *                Based on ideas from the Image::DeAnim Perl module by
17  *                Ken MacFarlane, <ksm+cpan@universal.dca.net>
18  *
19  *                Based on the Internet Junkbuster originally written
20  *                by and Copyright (C) 1997 Anonymous Coders and 
21  *                Junkbusters Corporation.  http://www.junkbusters.com
22  *
23  *                This program is free software; you can redistribute it 
24  *                and/or modify it under the terms of the GNU General
25  *                Public License as published by the Free Software
26  *                Foundation; either version 2 of the License, or (at
27  *                your option) any later version.
28  *
29  *                This program is distributed in the hope that it will
30  *                be useful, but WITHOUT ANY WARRANTY; without even the
31  *                implied warranty of MERCHANTABILITY or FITNESS FOR A
32  *                PARTICULAR PURPOSE.  See the GNU General Public
33  *                License for more details.
34  *
35  *                The GNU General Public License should be included with
36  *                this file.  If not, you can view it at
37  *                http://www.gnu.org/copyleft/gpl.html
38  *                or write to the Free Software Foundation, Inc., 59
39  *                Temple Place - Suite 330, Boston, MA  02111-1307, USA.
40  *
41  * Revisions   :
42  *    $Log: deanimate.h,v $
43  *    Revision 1.8  2002/03/26 22:29:54  swa
44  *    we have a new homepage!
45  *
46  *    Revision 1.7  2002/03/24 13:25:43  swa
47  *    name change related issues
48  *
49  *    Revision 1.6  2002/03/08 17:46:04  jongfoster
50  *    Fixing int/size_t warnings
51  *
52  *    Revision 1.5  2002/03/07 03:46:17  oes
53  *    Fixed compiler warnings
54  *
55  *    Revision 1.4  2001/07/29 18:50:04  jongfoster
56  *    Fixing "extern C" block, and renaming #define _DEANIMATE_H
57  *
58  *    Revision 1.3  2001/07/18 12:29:05  oes
59  *    Updated prototype for gif_deanimate
60  *
61  *    Revision 1.2  2001/07/13 13:46:20  oes
62  *    Introduced GIF deanimation feature
63  *
64  *
65  *********************************************************************/
66 \f
67
68 #ifdef __cplusplus
69 extern "C" {
70 #endif
71
72 /*
73  * A struct that holds a buffer, a read/write offset,
74  * and the buffer's capacity.
75  */
76 struct binbuffer
77 {
78    char *buffer; 
79    size_t offset;   
80    size_t size;    
81 };
82
83 /*
84  * Function prototypes
85  */
86 extern int gif_deanimate(struct binbuffer *src, struct binbuffer *dst, int get_first_image);
87 extern void buf_free(struct binbuffer *buf);
88
89 /* 
90  * Revision control strings from this header and associated .c file
91  */
92 extern const char deanimate_rcs[];
93 extern const char deanimate_h_rcs[];
94
95 #ifdef __cplusplus
96 } /* extern "C" */
97 #endif
98
99 #endif /* ndef DEANIMATE_H_INCLUDED */
100
101 /*
102   Local Variables:
103   tab-width: 3
104   end:
105 */