[Mono-dev] [PATCH] Make mono_dl_register_library into a fallback

Miguel de Icaza miguel at novell.com
Tue Jul 13 14:11:56 EDT 2010


> Something along these lines:
> typedef void* (*MonoDlFallbackLoad) (const char *name, int flags, char **err, void *user_data);
> typedef void* (*MonoDlFallbackSymbol) (void *handle, const char *name, char **err, void *user_data);
> typedef void* (*MonoDlFallbackClose) (void *handle, void *user_data);
> void mono_dl_register_fallback (MonoDlFallbackLoad load_func, MonoDlFallbackSymbol symbol_func,
> 		MonoDlFallbackClose close_func, void *user_data);
> The old interface could be easily implemented on top of this new one (though we
> likely could drop it as well).

This implements the suggested API based on Michael's patch.

I still kept the mono_dl_register as we are now using in 4 different
ports and we have a bunch of different tools generating that output as
well as having pointed third parties to this API.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: mono-dl-fallback.diff
Type: text/x-patch
Size: 12606 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20100713/79f2d7d2/attachment.bin 

More information about the Mono-devel-list mailing list