mirror of
https://github.com/matrix-construct/construct
synced 2024-10-15 20:18:52 +02:00
32 lines
1.1 KiB
C++
32 lines
1.1 KiB
C++
// Matrix Construct
|
|
//
|
|
// Copyright (C) Matrix Construct Developers, Authors & Contributors
|
|
// Copyright (C) 2016-2019 Jason Volk <jason@zemos.net>
|
|
//
|
|
// Permission to use, copy, modify, and/or distribute this software for any
|
|
// purpose with or without fee is hereby granted, provided that the above
|
|
// copyright notice and this permission notice is present in all copies. The
|
|
// full license for this software is available in the LICENSE file.
|
|
|
|
#pragma once
|
|
#define HAVE_IRCD_MODS_LDSO_H
|
|
|
|
// This is a platform dependent interface. While this header and these decls
|
|
// are unconditionally included in the standard include stack, the defs
|
|
// behind them may not be compiled and linked on all platforms.
|
|
|
|
// Forward declarations for <link.h> because it is not included here.
|
|
extern "C"
|
|
{
|
|
struct link_map;
|
|
}
|
|
|
|
/// Platform-dependent interface on ELF+ld.so supporting compilations.
|
|
namespace ircd::mods::ldso
|
|
{
|
|
using link_map_closure = std::function<bool (struct link_map &)>;
|
|
using link_name_closure = std::function<bool (const string_view &)>;
|
|
|
|
bool for_each(const link_map_closure &);
|
|
bool for_each(const link_name_closure &);
|
|
}
|