/* SPDX-FileCopyrightText: 2026 - Sébastien Wilmet <swilmet@gnome.org>
 * SPDX-License-Identifier: LGPL-3.0-or-later
 */

#pragma once

#if !defined (GFLS_H_INSIDE) && !defined (GFLS_COMPILATION)
#error "Only <gfls/gfls.h> can be included directly."
#endif

#include <gfls/gfls-bytes-region.h>

G_BEGIN_DECLS

G_MODULE_EXPORT
gboolean gfls_encoding_convert (GBytes           *input_bytes,
				const gchar      *to_codeset,
				const gchar      *from_codeset,
				gboolean          allow_invalid_characters,
				GBytes          **output_bytes,
				GflsBytesRegion **output_bytes_valid_region,
				GError          **error);

G_END_DECLS
