blob: d97a17a053222cbb37e16c136f005ab2776df513 [file] [log] [blame]
#pragma once
#include <dlfcn.h>
#include <zircon/types.h>
#ifdef __cplusplus
extern "C" {
#endif
void* dlopen_vmo(zx_handle_t, int);
// Replace the handle to the "loader service" used to map names
// to VM objects for dlopen et al. This takes ownership of the
// given handle, and gives the caller ownership of the old handle
// in the return value.
zx_handle_t dl_set_loader_service(zx_handle_t new_svc);
// Ask the active "loader service" (if there is one), to return
// a new connection. Not all loader services need support this.
// On success, a channel handle to the new connection is returned
// via out.
zx_status_t dl_clone_loader_service(zx_handle_t* out);
#ifdef __cplusplus
}
#endif