Re: libmng data-push mechanism(s)
Glenn Randers-Pehrson <[email protected]> Wed, 14 Apr 2004 07:00:42 -0400
| Newsgroups | gmane.comp.graphics.mng.general |
|---|---|
| Message-ID | <[email protected]> |
At 10:37 AM 4/14/2004 +0200, Alexander Opitz wrote: >Hi Glenn, > >> There is a mechanism for testing whether a function is available or not. >> It happens to be #ifdef'ed out in Mozilla but we can easily re-enable it >> (Just remove #define MNG_NO_SUPPORT_FUNCQUERY from mozlibconf.h). > >*lol* ... schould I query for all possible function names from a() up to >zzzzz...zzz() if I don't know the name of the function that will be(and now >is) added in an unknown future? > >Or do you joking me? No, the query is in case the user has installed an old libmng instead of the supplied libmng-1.0.8. You query for the new (1.0.8) functions that might not be present. Or, you query for the version number and take appropriate action if the version number is too old. Or, you can just go ahead and use the new functions and let the loader bail out if it cannot find them in the libmng version being loaded. I'd probably take that third approach and not bother with queries. Glenn -- Send the message body "help" to [email protected]