xref: /dflybsd-src/contrib/binutils-2.27/gas/compress-debug.h (revision e656dc90e3d65d744d534af2f5ea88cf8101ebcf)
1*a9fa9459Szrj /* compress-debug.h - Header file for compressed debug sections.
2*a9fa9459Szrj    Copyright (C) 2010-2016 Free Software Foundation, Inc.
3*a9fa9459Szrj 
4*a9fa9459Szrj    This file is part of GAS, the GNU Assembler.
5*a9fa9459Szrj 
6*a9fa9459Szrj    GAS is free software; you can redistribute it and/or modify
7*a9fa9459Szrj    it under the terms of the GNU General Public License as published by
8*a9fa9459Szrj    the Free Software Foundation; either version 3, or (at your option)
9*a9fa9459Szrj    any later version.
10*a9fa9459Szrj 
11*a9fa9459Szrj    GAS is distributed in the hope that it will be useful,
12*a9fa9459Szrj    but WITHOUT ANY WARRANTY; without even the implied warranty of
13*a9fa9459Szrj    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14*a9fa9459Szrj    GNU General Public License for more details.
15*a9fa9459Szrj 
16*a9fa9459Szrj    You should have received a copy of the GNU General Public License
17*a9fa9459Szrj    along with GAS; see the file COPYING.  If not, write to the Free
18*a9fa9459Szrj    Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
19*a9fa9459Szrj    02110-1301, USA.  */
20*a9fa9459Szrj 
21*a9fa9459Szrj #ifndef COMPRESS_DEBUG_H
22*a9fa9459Szrj #define COMPRESS_DEBUG_H
23*a9fa9459Szrj 
24*a9fa9459Szrj struct z_stream_s;
25*a9fa9459Szrj 
26*a9fa9459Szrj /* Initialize the compression engine.  */
27*a9fa9459Szrj extern struct z_stream_s *
28*a9fa9459Szrj compress_init (void);
29*a9fa9459Szrj 
30*a9fa9459Szrj /* Stream the contents of a frag to the compression engine.  Output
31*a9fa9459Szrj    from the engine goes into the current frag on the obstack.  */
32*a9fa9459Szrj extern int
33*a9fa9459Szrj compress_data (struct z_stream_s *, const char **, int *, char **, int *);
34*a9fa9459Szrj 
35*a9fa9459Szrj /* Finish the compression and consume the remaining compressed output.  */
36*a9fa9459Szrj extern int
37*a9fa9459Szrj compress_finish (struct z_stream_s *, char **, int *, int *);
38*a9fa9459Szrj 
39*a9fa9459Szrj #endif /* COMPRESS_DEBUG_H */
40