1 #ifndef __MONO_UTILS_DL_FALLBACK_H__
2 #define __MONO_UTILS_DL_FALLBACK_H__
4 #include <mono/utils/mono-publib.h>
15 * This is the dynamic loader fallback API
17 typedef struct MonoDlFallbackHandler MonoDlFallbackHandler
;
20 * The "err" variable contents must be allocated using g_malloc or g_strdup
22 typedef void* (*MonoDlFallbackLoad
) (const char *name
, int flags
, char **err
, void *user_data
);
23 typedef void* (*MonoDlFallbackSymbol
) (void *handle
, const char *name
, char **err
, void *user_data
);
24 typedef void* (*MonoDlFallbackClose
) (void *handle
, void *user_data
);
26 MONO_API MonoDlFallbackHandler
*mono_dl_fallback_register (MonoDlFallbackLoad load_func
, MonoDlFallbackSymbol symbol_func
,
27 MonoDlFallbackClose close_func
, void *user_data
);
29 MONO_API
void mono_dl_fallback_unregister (MonoDlFallbackHandler
*handler
);
33 #endif /* __MONO_UTILS_DL_FALLBACK_H__ */