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

2010-07-15 Thread Paolo Molaro
On 07/13/10 Miguel de Icaza wrote: 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,

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

2010-07-13 Thread Paolo Molaro
On 07/02/10 Michael Hutchinson wrote: This interface is not suitable as a fallback mechanism, it would be too cumbersome to use and it's probably not ideal even for its intended purpose. What about a callback registration system instead? The intended purpose, AFAIK, is to expose

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

2010-07-13 Thread Michael Hutchinson
On Tue, Jul 13, 2010 at 9:51 AM, Paolo Molaro lu...@ximian.com wrote: On 07/02/10 Michael Hutchinson wrote: This interface is not suitable as a fallback mechanism, it would be too cumbersome to use and it's probably not ideal even for its intended purpose. What about a callback registration

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

2010-07-13 Thread Miguel de Icaza
The first problem this is trying to address is precisely that we are running Mono now on four configurations that have no dynamic linker. All they offer is a static linked image. The second problem is that this solves is allowing us to statically link existing libraries that have existing

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

2010-07-13 Thread Miguel de Icaza
Hello, I just read the Paolo proposal on the API (it was not available on my phone): 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

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

2010-07-13 Thread Miguel de Icaza
Hello, 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,

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

2010-07-12 Thread Michael Hutchinson
On Fri, Jul 2, 2010 at 12:38 PM, Michael Hutchinson m.j.hutchin...@gmail.com wrote: On Fri, Jul 2, 2010 at 6:18 AM, Paolo Molaro lu...@ximian.com wrote: On 07/01/10 Michael Hutchinson wrote: The mono_dl_register_library function can currently be used to register P/Invoke mappings for platforms

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

2010-07-02 Thread Paolo Molaro
On 07/01/10 Michael Hutchinson wrote: The mono_dl_register_library function can currently be used to register P/Invoke mappings for platforms that do not have a dynamic linker. The attached patch makes it also function as a fallback when the system's dynamic linker cannot resolve the library,

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

2010-07-02 Thread Michael Hutchinson
On Fri, Jul 2, 2010 at 6:18 AM, Paolo Molaro lu...@ximian.com wrote: On 07/01/10 Michael Hutchinson wrote: The mono_dl_register_library function can currently be used to register P/Invoke mappings for platforms that do not have a dynamic linker. The attached patch makes it also function as a

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

2010-07-01 Thread Michael Hutchinson
The mono_dl_register_library function can currently be used to register P/Invoke mappings for platforms that do not have a dynamic linker. The attached patch makes it also function as a fallback when the system's dynamic linker cannot resolve the library, so that it is always available to