1 #include <aros/symbolsets.h>
2 #include LC_LIBDEFS_FILE
5 #include <aros/debug.h>
10 static int InitFunc(LIBBASETYPEPTR LIBBASE
)
12 D(bug("Inside Init func of png.library\n"));
14 aroscbase_offset
= offsetof(LIBBASETYPE
, _aroscbase
);
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
);
40 ADD2INITLIB(InitFunc
, 0);
41 ADD2OPENLIB(OpenFunc
, 0);
42 ADD2CLOSELIB(CloseFunc
, 0);