Oliver Braun wrote:
> Hi,
>
> as using <dlfcn.h> functions directly (without generating warnings) has
> become quite ugly (double casts) and even the Windows API for searching
> function symbols does not take UTF-16 arguments, I propose the following
> API additions to osl/module.h:
> NULL if the module could not be found, otherwise a handle to the
> module or the special
> RTLD_DEFAULT on Unix. NOTE: do not call osl_unloadModule on the
> returned handle !
RTLD_DEFAULT is "((void *) 0)" on Linux, so this would be hard to
distinguish from NULL. -1 on the other hand is RTLD_NEXT, so perhaps we
should use another invalid pointer value to show failure. Or perhaps the
API should look like
sal_Bool CALL osl_getModuleHandle(rtl_uString *strModuleName, oslModule*
pResult );
where the return value details success/failure and the result is
returned via the second parameter.
Just my 2 cents, pl
--
If you give someone a program, you will frustrate them for a day;
if you teach them how to program, you will frustrate them for a lifetime.
-- Author unknown
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]