Cherry pick changes from wip-scritchui which should be mainline.
[SquirrelJME.git] / nanocoat / src / dylib.c
blobe18deb8a4d32b888150c6613ecd52a982f8c3e60
1 /* -*- Mode: C; indent-tabs-mode: t; tab-width: 4 -*-
2 // ---------------------------------------------------------------------------
3 // SquirrelJME
4 // Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
5 // ---------------------------------------------------------------------------
6 // SquirrelJME is under the Mozilla Public License Version 2.0.
7 // See license.mkd for licensing and copyright information.
8 // -------------------------------------------------------------------------*/
10 #include "sjme/dylib.h"
11 #include "sjme/debug.h"
13 sjme_errorCode sjme_dylib_close(
14 sjme_attrInNotNull sjme_dylib inLib)
16 #if defined(SJME_CONFIG_HAS_NO_DYLIB_SUPPORT)
17 return SJME_ERROR_UNSUPPORTED_OPERATION;
18 #else
19 sjme_todo("Impl?");
20 return SJME_ERROR_NOT_IMPLEMENTED;
21 #endif
24 sjme_errorCode sjme_dylib_lookup(
25 sjme_attrInNotNull sjme_dylib inLib,
26 sjme_attrInNotNull sjme_lpcstr inSymbol,
27 void* outPtr)
29 #if defined(SJME_CONFIG_HAS_NO_DYLIB_SUPPORT)
30 return SJME_ERROR_UNSUPPORTED_OPERATION;
31 #else
32 sjme_todo("Impl?");
33 return SJME_ERROR_NOT_IMPLEMENTED;
34 #endif
37 sjme_errorCode sjme_dylib_open(
38 sjme_attrInNotNull sjme_lpcstr libPath,
39 sjme_attrInOutNotNull sjme_dylib* outLib)
41 #if defined(SJME_CONFIG_HAS_NO_DYLIB_SUPPORT)
42 return SJME_ERROR_UNSUPPORTED_OPERATION;
43 #else
44 sjme_todo("Impl?");
45 return SJME_ERROR_NOT_IMPLEMENTED;
46 #endif