home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga MA Magazine 1998 #6
/
amigamamagazinepolishissue1998.iso
/
coders
/
biblioteki
/
c_library
/
asyncio
/
source
/
asynclib.c
< prev
next >
Wrap
C/C++ Source or Header
|
1977-12-31
|
549b
|
36 lines
#include <proto/exec.h>
#include <proto/asyncio.h>
void __regargs __autoopenfail( char * );
struct Library *AsyncIOBase;
static void *libbase;
/* Use a custom variable instead? */
extern long __oslibversion;
LONG
_STI_110_OpenAsyncIO( VOID )
{
AsyncIOBase = libbase = OpenLibrary( "asyncio.library", __oslibversion );
if( AsyncIOBase == NULL )
{
__autoopenfail( "asyncio.library" );
return( 1 );
}
return( 0 );
}
VOID
_STD_110_CloseAsyncIO( VOID )
{
if( libbase )
{
CloseLibrary( libbase );
libbase = AsyncIOBase = NULL;
}
}