prism2.device: Compiler delint
[AROS.git] / arch / all-hosted / hostlib / open.c
blob7418e8b5afde080bc283be82e0b252870b496ddc
1 #include <proto/exec.h>
2 #include <proto/hostlib.h>
4 #include <stdarg.h>
6 #include "hostinterface.h"
7 #include "hostlib_intern.h"
9 AROS_LH2(void *, HostLib_Open,
10 AROS_LHA(const char *, filename, A0),
11 AROS_LHA(char **, error, A1),
12 struct HostLibBase *, HostLibBase, 1, HostLib)
14 AROS_LIBFUNC_INIT
16 void *ret;
18 HOSTLIB_LOCK();
20 ret = HostLibBase->HostIFace->hostlib_Open(filename, error);
21 AROS_HOST_BARRIER
23 HOSTLIB_UNLOCK();
25 return ret;
27 AROS_LIBFUNC_EXIT