145548106Schristos /* compress-debug.h - Header file for compressed debug sections. 2*cb63e24eSchristos Copyright (C) 2010-2024 Free Software Foundation, Inc. 345548106Schristos 445548106Schristos This file is part of GAS, the GNU Assembler. 545548106Schristos 645548106Schristos GAS is free software; you can redistribute it and/or modify 745548106Schristos it under the terms of the GNU General Public License as published by 845548106Schristos the Free Software Foundation; either version 3, or (at your option) 945548106Schristos any later version. 1045548106Schristos 1145548106Schristos GAS is distributed in the hope that it will be useful, 1245548106Schristos but WITHOUT ANY WARRANTY; without even the implied warranty of 1345548106Schristos MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1445548106Schristos GNU General Public License for more details. 1545548106Schristos 1645548106Schristos You should have received a copy of the GNU General Public License 1745548106Schristos along with GAS; see the file COPYING. If not, write to the Free 1845548106Schristos Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA 1945548106Schristos 02110-1301, USA. */ 2045548106Schristos 2145548106Schristos #ifndef COMPRESS_DEBUG_H 2245548106Schristos #define COMPRESS_DEBUG_H 2345548106Schristos 24*cb63e24eSchristos #include <stdbool.h> 25*cb63e24eSchristos 2645548106Schristos struct z_stream_s; 2745548106Schristos 2845548106Schristos /* Initialize the compression engine. */ 29*cb63e24eSchristos extern void *compress_init (bool); 3045548106Schristos 3145548106Schristos /* Stream the contents of a frag to the compression engine. Output 3245548106Schristos from the engine goes into the current frag on the obstack. */ 33*cb63e24eSchristos extern int compress_data (bool, void *, const char **, int *, char **, int *); 3445548106Schristos 3545548106Schristos /* Finish the compression and consume the remaining compressed output. */ 3645548106Schristos extern int 37*cb63e24eSchristos compress_finish (bool, void *, char **, int *, int *); 3845548106Schristos 3945548106Schristos #endif /* COMPRESS_DEBUG_H */ 40