5 #ifndef __MONO_UTILS_DL_FALLBACK_H__
6 #define __MONO_UTILS_DL_FALLBACK_H__
8 #include <mono/utils/mono-publib.h>
20 * This is the dynamic loader fallback API
22 typedef struct MonoDlFallbackHandler MonoDlFallbackHandler
;
25 * The "err" variable contents must be allocated using g_malloc or g_strdup
27 typedef void* (*MonoDlFallbackLoad
) (const char *name
, int flags
, char **err
, void *user_data
);
28 typedef void* (*MonoDlFallbackSymbol
) (void *handle
, const char *name
, char **err
, void *user_data
);
29 typedef void* (*MonoDlFallbackClose
) (void *handle
, void *user_data
);
31 MONO_API MonoDlFallbackHandler
*mono_dl_fallback_register (MonoDlFallbackLoad load_func
, MonoDlFallbackSymbol symbol_func
,
32 MonoDlFallbackClose close_func
, void *user_data
);
34 MONO_API
void mono_dl_fallback_unregister (MonoDlFallbackHandler
*handler
);
38 #endif /* __MONO_UTILS_DL_FALLBACK_H__ */