WIP png_au.library
[AROS.git] / workbench / libs / png / init-aros.c
blob52ab4e5270568d821a15e92e13fc32420fbe59ea
1 #include <aros/symbolsets.h>
2 #include LC_LIBDEFS_FILE
4 #define DEBUG 1
5 #include <aros/debug.h>
7 IPTR aroscbase_offset;
10 static int InitFunc(LIBBASETYPEPTR LIBBASE)
12 D(bug("Inside Init func of png.library\n"));
14 aroscbase_offset = offsetof(LIBBASETYPE, _aroscbase);
16 return TRUE;
19 static int OpenFunc(LIBBASETYPEPTR LIBBASE)
21 D(bug("Opening png.library\n"));
23 LIBBASE->_aroscbase = OpenLibrary("arosc.library", 0);
25 D(bug("[png.library::OpenLib] aroscbase=%p\n", LIBBASE->_aroscbase));
27 return LIBBASE->_aroscbase != NULL;
30 static int CloseFunc(LIBBASETYPEPTR LIBBASE)
32 D(bug("Closing png.library\n"));
34 CloseLibrary(LIBBASE->_aroscbase);
36 return TRUE;
40 ADD2INITLIB(InitFunc, 0);
41 ADD2OPENLIB(OpenFunc, 0);
42 ADD2CLOSELIB(CloseFunc, 0);