175fd0b74Schristos /* compress-debug.h - Header file for compressed debug sections. 2*e992f068Schristos Copyright (C) 2010-2022 Free Software Foundation, Inc. 375fd0b74Schristos 475fd0b74Schristos This file is part of GAS, the GNU Assembler. 575fd0b74Schristos 675fd0b74Schristos GAS is free software; you can redistribute it and/or modify 775fd0b74Schristos it under the terms of the GNU General Public License as published by 875fd0b74Schristos the Free Software Foundation; either version 3, or (at your option) 975fd0b74Schristos any later version. 1075fd0b74Schristos 1175fd0b74Schristos GAS is distributed in the hope that it will be useful, 1275fd0b74Schristos but WITHOUT ANY WARRANTY; without even the implied warranty of 1375fd0b74Schristos MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1475fd0b74Schristos GNU General Public License for more details. 1575fd0b74Schristos 1675fd0b74Schristos You should have received a copy of the GNU General Public License 1775fd0b74Schristos along with GAS; see the file COPYING. If not, write to the Free 1875fd0b74Schristos Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA 1975fd0b74Schristos 02110-1301, USA. */ 2075fd0b74Schristos 2175fd0b74Schristos #ifndef COMPRESS_DEBUG_H 2275fd0b74Schristos #define COMPRESS_DEBUG_H 2375fd0b74Schristos 2475fd0b74Schristos struct z_stream_s; 2575fd0b74Schristos 2675fd0b74Schristos /* Initialize the compression engine. */ 2775fd0b74Schristos extern struct z_stream_s * 2875fd0b74Schristos compress_init (void); 2975fd0b74Schristos 3075fd0b74Schristos /* Stream the contents of a frag to the compression engine. Output 3175fd0b74Schristos from the engine goes into the current frag on the obstack. */ 3275fd0b74Schristos extern int 3375fd0b74Schristos compress_data (struct z_stream_s *, const char **, int *, char **, int *); 3475fd0b74Schristos 3575fd0b74Schristos /* Finish the compression and consume the remaining compressed output. */ 3675fd0b74Schristos extern int 3775fd0b74Schristos compress_finish (struct z_stream_s *, char **, int *, int *); 3875fd0b74Schristos 3975fd0b74Schristos #endif /* COMPRESS_DEBUG_H */ 40