Forward compatibility: build relative-base link libraries where needed
[AROS.git] / arch / all-hosted / hostlib / close.c
blobbb344232dedc342db047c4b5ff4419a6505004c0
1 /*
2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <proto/exec.h>
7 #include <proto/hostlib.h>
9 #include <stdarg.h>
11 #include "hostinterface.h"
12 #include "hostlib_intern.h"
14 AROS_LH2(int, HostLib_Close,
15 AROS_LHA(void *, handle, A0),
16 AROS_LHA(char **, error, A1),
17 struct HostLibBase *, HostLibBase, 2, HostLib)
19 AROS_LIBFUNC_INIT
21 int ret;
23 HOSTLIB_LOCK();
25 ret = HostLibBase->HostIFace->hostlib_Close(handle, error);
26 AROS_HOST_BARRIER
28 HOSTLIB_UNLOCK();
30 return ret;
32 AROS_LIBFUNC_EXIT