wut/dynload_8h.html
2020-03-26 16:49:18 +11:00

169 lines
18 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>wut: /home/ash/Code/wut2/include/coreinit/dynload.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">wut
&#160;<span id="projectnumber">1.0.0-beta9</span>
</div>
<div id="projectbrief">Wii U Toolchain</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_5050f3de292bd66075be80c4b119f1df.html">coreinit</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">dynload.h File Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;<a class="el" href="wut_8h_source.html">wut.h</a>&gt;</code><br />
<code>#include &quot;<a class="el" href="thread_8h_source.html">thread.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="time_8h_source.html">time.h</a>&quot;</code><br />
</div>
<p><a href="dynload_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:gaf882e18d6e54149aaf0cb3ee65952259"><td class="memItemLeft" align="right" valign="top">typedef enum <a class="el" href="group__coreinit__dynload.html#ga5245754f5bd591f3b573a45b1e856bf7">OSDynLoad_Error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__dynload.html#gaf882e18d6e54149aaf0cb3ee65952259">OSDynLoad_Error</a></td></tr>
<tr class="separator:gaf882e18d6e54149aaf0cb3ee65952259"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae2b55836ecc2f989e6f7511108dab393"><td class="memItemLeft" align="right" valign="top">typedef enum <a class="el" href="group__coreinit__dynload.html#ga49fab4b5016c916e35c068cd84ed5177">OSDynLoad_EntryReason</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__dynload.html#gae2b55836ecc2f989e6f7511108dab393">OSDynLoad_EntryReason</a></td></tr>
<tr class="separator:gae2b55836ecc2f989e6f7511108dab393"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga16bf6e0b644e2160e7d444483aa2daa6"><td class="memItemLeft" align="right" valign="top">typedef void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__dynload.html#ga16bf6e0b644e2160e7d444483aa2daa6">OSDynLoad_Module</a></td></tr>
<tr class="separator:ga16bf6e0b644e2160e7d444483aa2daa6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad40f6477626575abe52bb5f1db011eac"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="group__coreinit__dynload.html#ga5245754f5bd591f3b573a45b1e856bf7">OSDynLoad_Error</a>(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__dynload.html#gad40f6477626575abe52bb5f1db011eac">OSDynLoadAllocFn</a>) (int32_t size, int32_t align, void **outAddr)</td></tr>
<tr class="separator:gad40f6477626575abe52bb5f1db011eac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga09658d49df7c02cbe47b5043fb81c211"><td class="memItemLeft" align="right" valign="top">typedef void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__dynload.html#ga09658d49df7c02cbe47b5043fb81c211">OSDynLoadFreeFn</a>) (void *addr)</td></tr>
<tr class="separator:ga09658d49df7c02cbe47b5043fb81c211"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:ga5245754f5bd591f3b573a45b1e856bf7"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__dynload.html#ga5245754f5bd591f3b573a45b1e856bf7">OSDynLoad_Error</a> { <br />
&#160;&#160;<a class="el" href="group__coreinit__dynload.html#gga5245754f5bd591f3b573a45b1e856bf7a97cc156f7d96bd0a74a74dd9c84069cf">OS_DYNLOAD_OK</a> = 0,
<br />
&#160;&#160;<a class="el" href="group__coreinit__dynload.html#gga5245754f5bd591f3b573a45b1e856bf7a7038dce35033b12c9cb96552d5721190">OS_DYNLOAD_OUT_OF_MEMORY</a> = 0xBAD10002,
<br />
&#160;&#160;<a class="el" href="group__coreinit__dynload.html#gga5245754f5bd591f3b573a45b1e856bf7aa4686d8251b670cbbc15053cffca70d2">OS_DYNLOAD_INVALID_NOTIFY_PTR</a> = 0xBAD1000E,
<br />
&#160;&#160;<a class="el" href="group__coreinit__dynload.html#gga5245754f5bd591f3b573a45b1e856bf7a52d9cdf3bb34ac70f0dbf67ca53a7110">OS_DYNLOAD_INVALID_MODULE_NAME_PTR</a> = 0xBAD1000F,
<br />
&#160;&#160;<a class="el" href="group__coreinit__dynload.html#gga5245754f5bd591f3b573a45b1e856bf7a2f8bda2ccf1cc3347ee241f3a9b4b9e8">OS_DYNLOAD_INVALID_MODULE_NAME</a> = 0xBAD10010,
<br />
&#160;&#160;<a class="el" href="group__coreinit__dynload.html#gga5245754f5bd591f3b573a45b1e856bf7a4a3776e65ad6b0bb943d5dcf719a53da">OS_DYNLOAD_INVALID_ACQUIRE_PTR</a> = 0xBAD10011,
<br />
&#160;&#160;<a class="el" href="group__coreinit__dynload.html#gga5245754f5bd591f3b573a45b1e856bf7a6065f8dd3482098a226b77bbc57396af">OS_DYNLOAD_EMPTY_MODULE_NAME</a> = 0xBAD10012,
<br />
&#160;&#160;<a class="el" href="group__coreinit__dynload.html#gga5245754f5bd591f3b573a45b1e856bf7ae7f14c8b0cd032d537019184e10c9acc">OS_DYNLOAD_INVALID_ALLOCATOR_PTR</a> = 0xBAD10017,
<br />
&#160;&#160;<a class="el" href="group__coreinit__dynload.html#gga5245754f5bd591f3b573a45b1e856bf7af73933f46a4da3fd4cdf5a66fb782d03">OS_DYNLOAD_OUT_OF_SYSTEM_MEMORY</a> = 0xBAD1002F,
<br />
&#160;&#160;<a class="el" href="group__coreinit__dynload.html#gga5245754f5bd591f3b573a45b1e856bf7a9eeab1b79c0dc9aeb2233c54ee4d71fb">OS_DYNLOAD_TLS_ALLOCATOR_LOCKED</a> = 0xBAD10031
<br />
}</td></tr>
<tr class="separator:ga5245754f5bd591f3b573a45b1e856bf7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga49fab4b5016c916e35c068cd84ed5177"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__dynload.html#ga49fab4b5016c916e35c068cd84ed5177">OSDynLoad_EntryReason</a> { <br />
&#160;&#160;<a class="el" href="group__coreinit__dynload.html#gga49fab4b5016c916e35c068cd84ed5177a0feec6f36373211648d7708a5e47f09d">OS_DYNLOAD_LOADED</a> = 0,
<br />
&#160;&#160;<a class="el" href="group__coreinit__dynload.html#gga49fab4b5016c916e35c068cd84ed5177a634880b76cf138111dc323c340538a43">OS_DYNLOAD_UNLOADED</a> = 1
<br />
}</td></tr>
<tr class="separator:ga49fab4b5016c916e35c068cd84ed5177"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga7e6521b6f014cd521db72bf7b2598c31"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__coreinit__dynload.html#ga5245754f5bd591f3b573a45b1e856bf7">OSDynLoad_Error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__dynload.html#ga7e6521b6f014cd521db72bf7b2598c31">OSDynLoad_Acquire</a> (char const *name, <a class="el" href="group__coreinit__dynload.html#ga16bf6e0b644e2160e7d444483aa2daa6">OSDynLoad_Module</a> *outModule)</td></tr>
<tr class="memdesc:ga7e6521b6f014cd521db72bf7b2598c31"><td class="mdescLeft">&#160;</td><td class="mdescRight">Load a module. <a href="group__coreinit__dynload.html#ga7e6521b6f014cd521db72bf7b2598c31">More...</a><br /></td></tr>
<tr class="separator:ga7e6521b6f014cd521db72bf7b2598c31"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac55fc64505799f26cbe05d1b08823890"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__coreinit__dynload.html#ga5245754f5bd591f3b573a45b1e856bf7">OSDynLoad_Error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__dynload.html#gac55fc64505799f26cbe05d1b08823890">OSDynLoad_FindExport</a> (<a class="el" href="group__coreinit__dynload.html#ga16bf6e0b644e2160e7d444483aa2daa6">OSDynLoad_Module</a> module, <a class="el" href="wut__types_8h.html#a975dbe9e4396bf9e0064ce01827fa372">BOOL</a> isData, char const *name, void **outAddr)</td></tr>
<tr class="memdesc:gac55fc64505799f26cbe05d1b08823890"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieve the address of a function or data export from a module. <a href="group__coreinit__dynload.html#gac55fc64505799f26cbe05d1b08823890">More...</a><br /></td></tr>
<tr class="separator:gac55fc64505799f26cbe05d1b08823890"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad85028e9723ff151db81951f615d5313"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__dynload.html#gad85028e9723ff151db81951f615d5313">OSDynLoad_Release</a> (<a class="el" href="group__coreinit__dynload.html#ga16bf6e0b644e2160e7d444483aa2daa6">OSDynLoad_Module</a> module)</td></tr>
<tr class="memdesc:gad85028e9723ff151db81951f615d5313"><td class="mdescLeft">&#160;</td><td class="mdescRight">Free a module handle returned from OSDynLoad_Acquire. <a href="group__coreinit__dynload.html#gad85028e9723ff151db81951f615d5313">More...</a><br /></td></tr>
<tr class="separator:gad85028e9723ff151db81951f615d5313"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac48870094bc213762e837660173453e8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__coreinit__dynload.html#ga5245754f5bd591f3b573a45b1e856bf7">OSDynLoad_Error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__dynload.html#gac48870094bc213762e837660173453e8">OSDynLoad_SetAllocator</a> (<a class="el" href="group__coreinit__dynload.html#gad40f6477626575abe52bb5f1db011eac">OSDynLoadAllocFn</a> allocFn, <a class="el" href="group__coreinit__dynload.html#ga09658d49df7c02cbe47b5043fb81c211">OSDynLoadFreeFn</a> freeFn)</td></tr>
<tr class="memdesc:gac48870094bc213762e837660173453e8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the allocator functions to use for dynamic loading. <a href="group__coreinit__dynload.html#gac48870094bc213762e837660173453e8">More...</a><br /></td></tr>
<tr class="separator:gac48870094bc213762e837660173453e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4320fce62da5aee52f6de05d360824ca"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__coreinit__dynload.html#ga5245754f5bd591f3b573a45b1e856bf7">OSDynLoad_Error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__dynload.html#ga4320fce62da5aee52f6de05d360824ca">OSDynLoad_GetAllocator</a> (<a class="el" href="group__coreinit__dynload.html#gad40f6477626575abe52bb5f1db011eac">OSDynLoadAllocFn</a> *outAllocFn, <a class="el" href="group__coreinit__dynload.html#ga09658d49df7c02cbe47b5043fb81c211">OSDynLoadFreeFn</a> *outFreeFn)</td></tr>
<tr class="memdesc:ga4320fce62da5aee52f6de05d360824ca"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the allocator functions used for dynamic loading. <a href="group__coreinit__dynload.html#ga4320fce62da5aee52f6de05d360824ca">More...</a><br /></td></tr>
<tr class="separator:ga4320fce62da5aee52f6de05d360824ca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6178c09cb8511a82bb9de2ec735e6d5d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__coreinit__dynload.html#ga5245754f5bd591f3b573a45b1e856bf7">OSDynLoad_Error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__dynload.html#ga6178c09cb8511a82bb9de2ec735e6d5d">OSDynLoad_SetTLSAllocator</a> (<a class="el" href="group__coreinit__dynload.html#gad40f6477626575abe52bb5f1db011eac">OSDynLoadAllocFn</a> allocFn, <a class="el" href="group__coreinit__dynload.html#ga09658d49df7c02cbe47b5043fb81c211">OSDynLoadFreeFn</a> freeFn)</td></tr>
<tr class="memdesc:ga6178c09cb8511a82bb9de2ec735e6d5d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the allocator functions to use for thread local storage. <a href="group__coreinit__dynload.html#ga6178c09cb8511a82bb9de2ec735e6d5d">More...</a><br /></td></tr>
<tr class="separator:ga6178c09cb8511a82bb9de2ec735e6d5d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa44e781838aef7106eb64c385f4aee18"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__coreinit__dynload.html#ga5245754f5bd591f3b573a45b1e856bf7">OSDynLoad_Error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__dynload.html#gaa44e781838aef7106eb64c385f4aee18">OSDynLoad_GetTLSAllocator</a> (<a class="el" href="group__coreinit__dynload.html#gad40f6477626575abe52bb5f1db011eac">OSDynLoadAllocFn</a> *outAllocFn, <a class="el" href="group__coreinit__dynload.html#ga09658d49df7c02cbe47b5043fb81c211">OSDynLoadFreeFn</a> *outFreeFn)</td></tr>
<tr class="memdesc:gaa44e781838aef7106eb64c385f4aee18"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the allocator functions used for thread local storage. <a href="group__coreinit__dynload.html#gaa44e781838aef7106eb64c385f4aee18">More...</a><br /></td></tr>
<tr class="separator:gaa44e781838aef7106eb64c385f4aee18"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga83ed719cccdd550c88be842ccdfef058"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__coreinit__dynload.html#ga5245754f5bd591f3b573a45b1e856bf7">OSDynLoad_Error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__dynload.html#ga83ed719cccdd550c88be842ccdfef058">OSDynLoad_GetModuleName</a> (<a class="el" href="group__coreinit__dynload.html#ga16bf6e0b644e2160e7d444483aa2daa6">OSDynLoad_Module</a> module, char *nameBuf, int32_t *nameBufSize)</td></tr>
<tr class="memdesc:ga83ed719cccdd550c88be842ccdfef058"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the name for a given module handle. <a href="group__coreinit__dynload.html#ga83ed719cccdd550c88be842ccdfef058">More...</a><br /></td></tr>
<tr class="separator:ga83ed719cccdd550c88be842ccdfef058"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga71c20a7227a374607dc7cb569a7eb18d"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__dynload.html#ga71c20a7227a374607dc7cb569a7eb18d">rpl_entry</a> (<a class="el" href="group__coreinit__dynload.html#ga16bf6e0b644e2160e7d444483aa2daa6">OSDynLoad_Module</a> module, <a class="el" href="group__coreinit__dynload.html#ga49fab4b5016c916e35c068cd84ed5177">OSDynLoad_EntryReason</a> reason)</td></tr>
<tr class="memdesc:ga71c20a7227a374607dc7cb569a7eb18d"><td class="mdescLeft">&#160;</td><td class="mdescRight">The prototype for an RPL entry point. <a href="group__coreinit__dynload.html#ga71c20a7227a374607dc7cb569a7eb18d">More...</a><br /></td></tr>
<tr class="separator:ga71c20a7227a374607dc7cb569a7eb18d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>