[vlc-devel] commit: macosx/VLCKit: Load VLCLibrary when VLCKit is loaded. No longer need atexit( ... ) to unload library, use __attribute__(( destructor))__ instead. Also make sure we don' t autorelease the VLCLibrary (as the library' s destructor will take care of that for us). (Faustino Osuna )

Pierre d'Herbemont pdherbemont at free.fr
Tue Mar 4 23:51:50 CET 2008


On Mar 4, 2008, at 11:41 PM, git version control wrote:

> --- a/projects/macosx/framework/Headers/Public/VLCLibrary.h
> +++ b/projects/macosx/framework/Headers/Public/VLCLibrary.h
> @@ -27,6 +27,10 @@
> #import "VLCMediaList.h"
> #import "VLCMedia.h"
>
> +
> +extern void * CreateSharedLibraryOnStartup( void )  
> __attribute__((constructor));
> +extern void * DestroySharedLibraryAtExit( void )  
> __attribute__((destructor));
> +

Do we really need to put that in the public headers? This could be  
moved to VLCLibrary.m, no?

Pierre.



More information about the vlc-devel mailing list