/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once

#include "dlopen-note.h"
#include "forward.h"

#if HAVE_LIBIDN2
#ifndef SYSTEMD_CFLAGS_MARKER_LIBIDN2
#  error "missing libidn2_cflags in meson dependency."
#endif

#include <idn2.h>

#include "dlfcn-util.h"

extern DLSYM_PROTOTYPE(idn2_lookup_u8);
extern DLSYM_PROTOTYPE(idn2_strerror);
extern DLSYM_PROTOTYPE(idn2_to_unicode_8z8z);
#endif

int dlopen_idn(int log_level) _dlopen_loader_;
