mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-03 01:52:14 +02:00
261 lines
49 KiB
HTML
261 lines
49 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" lang="en-US">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
|
<meta name="generator" content="Doxygen 1.9.8"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>libnx: include/switch/runtime/env.h Source File</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 id="projectrow">
|
|
<td id="projectalign">
|
|
<div id="projectname">libnx<span id="projectnumber"> v4.9.0</span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.9.8 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
var searchBox = new SearchBox("searchBox", "search/",'.html');
|
|
/* @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:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search');
|
|
$(document).ready(function() { init_search(); });
|
|
});
|
|
/* @license-end */
|
|
</script>
|
|
<div id="main-nav"></div>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(document).ready(function() { init_codefold(0); });
|
|
/* @license-end */
|
|
</script>
|
|
<!-- 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">
|
|
<div id="MSearchResults">
|
|
<div class="SRPage">
|
|
<div id="SRIndex">
|
|
<div id="SRResults"></div>
|
|
<div class="SRStatus" id="Loading">Loading...</div>
|
|
<div class="SRStatus" id="Searching">Searching...</div>
|
|
<div class="SRStatus" id="NoMatches">No Matches</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</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_42bea3d40f1f1694e41a8f3166c98108.html">switch</a></li><li class="navelem"><a class="el" href="dir_afd0453aeaaca58db0f3a26ffe540381.html">runtime</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle"><div class="title">env.h</div></div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="env_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="comment">/**</span></div>
|
|
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="comment"> * @file env.h</span></div>
|
|
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="comment"> * @brief Homebrew environment definitions and utilities.</span></div>
|
|
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="comment"> * @author plutoo</span></div>
|
|
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="comment"> * @copyright libnx Authors</span></div>
|
|
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="comment"> */</span></div>
|
|
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="preprocessor">#pragma once</span></div>
|
|
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="preprocessor">#include "../types.h"</span></div>
|
|
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="preprocessor">#include "../services/acc.h"</span></div>
|
|
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="comment"></span> </div>
|
|
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="comment">/// Structure representing an entry in the homebrew environment configuration.</span></div>
|
|
<div class="foldopen" id="foldopen00012" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"><a class="line" href="structConfigEntry.html"> 12</a></span><span class="comment"></span><span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
|
|
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"><a class="line" href="structConfigEntry.html#a84ebb42abc89f8d0eba6e907ec6375a1"> 13</a></span> <a class="code hl_typedef" href="types_8h.html#afaa62991928fb9fb18ff0db62a040aba">u32</a> <a class="code hl_variable" href="structConfigEntry.html#a84ebb42abc89f8d0eba6e907ec6375a1">Key</a>; <span class="comment">///< Type of entry</span></div>
|
|
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"><a class="line" href="structConfigEntry.html#abe623f9eb8408d01e32f432812651625"> 14</a></span> <a class="code hl_typedef" href="types_8h.html#afaa62991928fb9fb18ff0db62a040aba">u32</a> <a class="code hl_variable" href="structConfigEntry.html#abe623f9eb8408d01e32f432812651625">Flags</a>; <span class="comment">///< Entry flags</span></div>
|
|
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"><a class="line" href="structConfigEntry.html#aff32ba459bcaa52d0eba26df661d9870"> 15</a></span> <a class="code hl_typedef" href="types_8h.html#a3f7e2bcbb0b4c338f3c4f6c937cd4234">u64</a> Value[2]; <span class="comment">///< Entry arguments (type-specific)</span></div>
|
|
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span>} <a class="code hl_struct" href="structConfigEntry.html">ConfigEntry</a>;</div>
|
|
</div>
|
|
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="comment"></span> </div>
|
|
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="comment">/// Entry flags</span></div>
|
|
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span><span class="comment"></span><span class="keyword">enum</span> {</div>
|
|
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"><a class="line" href="env_8h.html#a0ed680fdb405e7195d9f14032851eebba37d2147c59409a606ff7fbbcd48ce310"> 20</a></span> <a class="code hl_enumvalue" href="env_8h.html#a0ed680fdb405e7195d9f14032851eebba37d2147c59409a606ff7fbbcd48ce310">EntryFlag_IsMandatory</a> = <a class="code hl_define" href="types_8h.html#a3a8ea58898cb58fc96013383d39f482c">BIT</a>(0), <span class="comment">///< Specifies that the entry **must** be processed by the homebrew application.</span></div>
|
|
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span>};</div>
|
|
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span><span class="comment"></span> </div>
|
|
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span><span class="comment">///< Types of entry</span></div>
|
|
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span><span class="comment"></span><span class="keyword">enum</span> {</div>
|
|
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"><a class="line" href="env_8h.html#a0944a4353780132eeab7b06e3e42291da455c3ce807b1f796b4be45a55bacb024"> 25</a></span> <a class="code hl_enumvalue" href="env_8h.html#a0944a4353780132eeab7b06e3e42291da455c3ce807b1f796b4be45a55bacb024">EntryType_EndOfList</a>=0, <span class="comment">///< Entry list terminator.</span></div>
|
|
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"><a class="line" href="env_8h.html#a0944a4353780132eeab7b06e3e42291dac367f9dc1459e6549525d20baa5cbb88"> 26</a></span> <a class="code hl_enumvalue" href="env_8h.html#a0944a4353780132eeab7b06e3e42291dac367f9dc1459e6549525d20baa5cbb88">EntryType_MainThreadHandle</a>=1, <span class="comment">///< Provides the handle to the main thread.</span></div>
|
|
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"><a class="line" href="env_8h.html#a0944a4353780132eeab7b06e3e42291da88d2e8b053cf1d2fca7a67a720351e7a"> 27</a></span> <a class="code hl_enumvalue" href="env_8h.html#a0944a4353780132eeab7b06e3e42291da88d2e8b053cf1d2fca7a67a720351e7a">EntryType_NextLoadPath</a>=2, <span class="comment">///< Provides a buffer containing information about the next homebrew application to load.</span></div>
|
|
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"><a class="line" href="env_8h.html#a0944a4353780132eeab7b06e3e42291da6a0fc45f86c310d0b6276be703b3d9ea"> 28</a></span> <a class="code hl_enumvalue" href="env_8h.html#a0944a4353780132eeab7b06e3e42291da6a0fc45f86c310d0b6276be703b3d9ea">EntryType_OverrideHeap</a>=3, <span class="comment">///< Provides heap override information.</span></div>
|
|
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"><a class="line" href="env_8h.html#a0944a4353780132eeab7b06e3e42291da1b22fbfde71e991bf3e3e683deb861cf"> 29</a></span> <a class="code hl_enumvalue" href="env_8h.html#a0944a4353780132eeab7b06e3e42291da1b22fbfde71e991bf3e3e683deb861cf">EntryType_OverrideService</a>=4, <span class="comment">///< Provides service override information.</span></div>
|
|
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"><a class="line" href="env_8h.html#a0944a4353780132eeab7b06e3e42291da0838ff00d609e6b23ba7bbccfb11758a"> 30</a></span> <a class="code hl_enumvalue" href="env_8h.html#a0944a4353780132eeab7b06e3e42291da0838ff00d609e6b23ba7bbccfb11758a">EntryType_Argv</a>=5, <span class="comment">///< Provides argv.</span></div>
|
|
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"><a class="line" href="env_8h.html#a0944a4353780132eeab7b06e3e42291daf89471b35570739f250ceef2217bc1d8"> 31</a></span> <a class="code hl_enumvalue" href="env_8h.html#a0944a4353780132eeab7b06e3e42291daf89471b35570739f250ceef2217bc1d8">EntryType_SyscallAvailableHint</a>=6, <span class="comment">///< Provides syscall availability hints (SVCs 0x00..0x7F).</span></div>
|
|
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"><a class="line" href="env_8h.html#a0944a4353780132eeab7b06e3e42291dac8c5774f2e3d8df0bdfd493ad6d24635"> 32</a></span> <a class="code hl_enumvalue" href="env_8h.html#a0944a4353780132eeab7b06e3e42291dac8c5774f2e3d8df0bdfd493ad6d24635">EntryType_AppletType</a>=7, <span class="comment">///< Provides APT applet type.</span></div>
|
|
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"><a class="line" href="env_8h.html#a0944a4353780132eeab7b06e3e42291da54a8603408db6ec1beedb3f5b1fd8b16"> 33</a></span> <a class="code hl_enumvalue" href="env_8h.html#a0944a4353780132eeab7b06e3e42291da54a8603408db6ec1beedb3f5b1fd8b16">EntryType_AppletWorkaround</a>=8, <span class="comment">///< Indicates that APT is broken and should not be used.</span></div>
|
|
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"><a class="line" href="env_8h.html#a0944a4353780132eeab7b06e3e42291dabbf1b5508678665c78169bd568ec6c20"> 34</a></span> <a class="code hl_enumvalue" href="env_8h.html#a0944a4353780132eeab7b06e3e42291dabbf1b5508678665c78169bd568ec6c20">EntryType_Reserved9</a>=9, <span class="comment">///< Unused/reserved entry type, formerly used by StdioSockets.</span></div>
|
|
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"><a class="line" href="env_8h.html#a0944a4353780132eeab7b06e3e42291da2ef6486d7a6471616def690acfea0b0f"> 35</a></span> <a class="code hl_enumvalue" href="env_8h.html#a0944a4353780132eeab7b06e3e42291da2ef6486d7a6471616def690acfea0b0f">EntryType_ProcessHandle</a>=10, <span class="comment">///< Provides the process handle.</span></div>
|
|
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"><a class="line" href="env_8h.html#a0944a4353780132eeab7b06e3e42291daf19e57ac2a4295e17f2e8b645b34066c"> 36</a></span> <a class="code hl_enumvalue" href="env_8h.html#a0944a4353780132eeab7b06e3e42291daf19e57ac2a4295e17f2e8b645b34066c">EntryType_LastLoadResult</a>=11, <span class="comment">///< Provides the last load result.</span></div>
|
|
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"><a class="line" href="env_8h.html#a0944a4353780132eeab7b06e3e42291daf9ff7019c7c8d36bf16411c8922300da"> 37</a></span> <a class="code hl_enumvalue" href="env_8h.html#a0944a4353780132eeab7b06e3e42291daf9ff7019c7c8d36bf16411c8922300da">EntryType_RandomSeed</a>=14, <span class="comment">///< Provides random data used to seed the pseudo-random number generator.</span></div>
|
|
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"><a class="line" href="env_8h.html#a0944a4353780132eeab7b06e3e42291da4940099de88c919bee29788ebf65968b"> 38</a></span> <a class="code hl_enumvalue" href="env_8h.html#a0944a4353780132eeab7b06e3e42291da4940099de88c919bee29788ebf65968b">EntryType_UserIdStorage</a>=15, <span class="comment">///< Provides persistent storage for the preselected user id.</span></div>
|
|
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"><a class="line" href="env_8h.html#a0944a4353780132eeab7b06e3e42291da0b07e0d7703384325996bc163c506491"> 39</a></span> <a class="code hl_enumvalue" href="env_8h.html#a0944a4353780132eeab7b06e3e42291da0b07e0d7703384325996bc163c506491">EntryType_HosVersion</a>=16, <span class="comment">///< Provides the currently running Horizon OS version.</span></div>
|
|
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"><a class="line" href="env_8h.html#a0944a4353780132eeab7b06e3e42291da3423f3368e16eccd78795fe8ae62d1b8"> 40</a></span> <a class="code hl_enumvalue" href="env_8h.html#a0944a4353780132eeab7b06e3e42291da3423f3368e16eccd78795fe8ae62d1b8">EntryType_SyscallAvailableHint2</a>=17, <span class="comment">///< Provides syscall availability hints (SVCs 0x80..0xBF).</span></div>
|
|
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span>};</div>
|
|
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> </div>
|
|
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span><span class="keyword">enum</span> {</div>
|
|
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> <a class="code hl_enumvalue" href="env_8h.html#a4790f45dcc812c1b00184a2edccdddf5aa793377327e3f74abd20af3ba03c4894">EnvAppletFlags_ApplicationOverride</a> = <a class="code hl_define" href="types_8h.html#a3a8ea58898cb58fc96013383d39f482c">BIT</a>(0) <span class="comment">///< Use AppletType_Application instead of AppletType_SystemApplication.</span></div>
|
|
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"><a class="line" href="env_8h.html#a4790f45dcc812c1b00184a2edccdddf5aa793377327e3f74abd20af3ba03c4894"> 45</a></span>};</div>
|
|
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span><span class="comment"></span> </div>
|
|
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span><span class="comment">/// Loader return function.</span></div>
|
|
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"><a class="line" href="env_8h.html#acc32f4f9ecaefa07ad3f6626c4a214d3"> 48</a></span><span class="comment"></span><span class="keyword">typedef</span> <span class="keywordtype">void</span> <a class="code hl_define" href="types_8h.html#ade5bb7679c90297209347fcb85a0db41">NX_NORETURN</a> (*<a class="code hl_typedef" href="env_8h.html#acc32f4f9ecaefa07ad3f6626c4a214d3">LoaderReturnFn</a>)(<span class="keywordtype">int</span> result_code);</div>
|
|
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span><span class="comment"></span> </div>
|
|
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span><span class="comment">/**</span></div>
|
|
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span><span class="comment"> * @brief Parses the homebrew loader environment block (internally called).</span></div>
|
|
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span><span class="comment"> * @param ctx Reserved.</span></div>
|
|
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span><span class="comment"> * @param main_thread Reserved.</span></div>
|
|
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span><span class="comment"> * @param saved_lr Reserved.</span></div>
|
|
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span><span class="comment"> */</span></div>
|
|
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"><a class="line" href="env_8h.html#a124ac37e03e794f79c2e1d35c705e41d"> 56</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="env_8h.html#a124ac37e03e794f79c2e1d35c705e41d">envSetup</a>(<span class="keywordtype">void</span>* ctx, <a class="code hl_typedef" href="types_8h.html#ab6d744c6b5de129f12937e482dc674fb">Handle</a> main_thread, <a class="code hl_typedef" href="env_8h.html#acc32f4f9ecaefa07ad3f6626c4a214d3">LoaderReturnFn</a> saved_lr);</div>
|
|
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span><span class="comment"></span> </div>
|
|
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span><span class="comment">/// Returns information text about the loader, if present.</span></div>
|
|
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"><a class="line" href="env_8h.html#ae062d62927dd5dd518b9e45ed0a6599f"> 59</a></span><span class="comment"></span><span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code hl_function" href="env_8h.html#ae062d62927dd5dd518b9e45ed0a6599f">envGetLoaderInfo</a>(<span class="keywordtype">void</span>);<span class="comment"></span></div>
|
|
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span><span class="comment">/// Returns the size of the loader information text.</span></div>
|
|
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"><a class="line" href="env_8h.html#aab54f5f5ecfdf85f56a53482994bdc34"> 61</a></span><span class="comment"></span><a class="code hl_typedef" href="types_8h.html#a3f7e2bcbb0b4c338f3c4f6c937cd4234">u64</a> <a class="code hl_function" href="env_8h.html#aab54f5f5ecfdf85f56a53482994bdc34">envGetLoaderInfoSize</a>(<span class="keywordtype">void</span>);</div>
|
|
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span><span class="comment"></span> </div>
|
|
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span><span class="comment">/// Retrieves the handle to the main thread.</span></div>
|
|
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"><a class="line" href="env_8h.html#a1e26a0f9bf1212376fd62899a15c76f0"> 64</a></span><span class="comment"></span><a class="code hl_typedef" href="types_8h.html#ab6d744c6b5de129f12937e482dc674fb">Handle</a> <a class="code hl_function" href="env_8h.html#a1e26a0f9bf1212376fd62899a15c76f0">envGetMainThreadHandle</a>(<span class="keywordtype">void</span>);<span class="comment"></span></div>
|
|
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span><span class="comment">/// Returns true if the application is running as NSO, otherwise NRO.</span></div>
|
|
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"><a class="line" href="env_8h.html#a1b54a3759dc7fca254c0402959b0c3a9"> 66</a></span><span class="comment"></span><span class="keywordtype">bool</span> <a class="code hl_function" href="env_8h.html#a1b54a3759dc7fca254c0402959b0c3a9">envIsNso</a>(<span class="keywordtype">void</span>);</div>
|
|
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span><span class="comment"></span> </div>
|
|
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span><span class="comment">/// Returns true if the environment has a heap override.</span></div>
|
|
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"><a class="line" href="env_8h.html#a51436dd6a71d9c7ec31a98b32e512a90"> 69</a></span><span class="comment"></span><span class="keywordtype">bool</span> <a class="code hl_function" href="env_8h.html#a51436dd6a71d9c7ec31a98b32e512a90">envHasHeapOverride</a>(<span class="keywordtype">void</span>);<span class="comment"></span></div>
|
|
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span><span class="comment">/// Returns the address of the overriden heap.</span></div>
|
|
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"><a class="line" href="env_8h.html#a3e22bb071c3f9ba88f03646dbc091f7b"> 71</a></span><span class="comment"></span><span class="keywordtype">void</span>* <a class="code hl_function" href="env_8h.html#a3e22bb071c3f9ba88f03646dbc091f7b">envGetHeapOverrideAddr</a>(<span class="keywordtype">void</span>);<span class="comment"></span></div>
|
|
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span><span class="comment">/// Returns the size of the overriden heap.</span></div>
|
|
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"><a class="line" href="env_8h.html#a4586aa8a25da026e4556972ab58524f8"> 73</a></span><span class="comment"></span><a class="code hl_typedef" href="types_8h.html#a3f7e2bcbb0b4c338f3c4f6c937cd4234">u64</a> <a class="code hl_function" href="env_8h.html#a4586aa8a25da026e4556972ab58524f8">envGetHeapOverrideSize</a>(<span class="keywordtype">void</span>);</div>
|
|
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span><span class="comment"></span> </div>
|
|
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span><span class="comment">/// Returns true if the environment has an argv array.</span></div>
|
|
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"><a class="line" href="env_8h.html#a9c8b1570deecff0e9c0bc8f46679bad7"> 76</a></span><span class="comment"></span><span class="keywordtype">bool</span> <a class="code hl_function" href="env_8h.html#a9c8b1570deecff0e9c0bc8f46679bad7">envHasArgv</a>(<span class="keywordtype">void</span>);<span class="comment"></span></div>
|
|
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span><span class="comment">/// Returns the pointer to the argv array.</span></div>
|
|
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"><a class="line" href="env_8h.html#a3ac15917c422b7fb76defc28391de908"> 78</a></span><span class="comment"></span><span class="keywordtype">void</span>* <a class="code hl_function" href="env_8h.html#a3ac15917c422b7fb76defc28391de908">envGetArgv</a>(<span class="keywordtype">void</span>);</div>
|
|
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span><span class="comment"></span> </div>
|
|
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span><span class="comment">/**</span></div>
|
|
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span><span class="comment"> * @brief Returns whether a syscall is hinted to be available.</span></div>
|
|
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span><span class="comment"> * @param svc Syscall number to test.</span></div>
|
|
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span><span class="comment"> * @returns true if the syscall is available.</span></div>
|
|
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span><span class="comment"> */</span></div>
|
|
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"><a class="line" href="env_8h.html#a9290f46daa561f0d6fcf13c66eafc9e3"> 85</a></span><span class="keywordtype">bool</span> <a class="code hl_function" href="env_8h.html#a9290f46daa561f0d6fcf13c66eafc9e3">envIsSyscallHinted</a>(<span class="keywordtype">unsigned</span> svc);</div>
|
|
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span><span class="comment"></span> </div>
|
|
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span><span class="comment">/// Returns the handle to the running homebrew process.</span></div>
|
|
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"><a class="line" href="env_8h.html#a0c95ad44bb4cedb30a9a1ab419e98ed1"> 88</a></span><span class="comment"></span><a class="code hl_typedef" href="types_8h.html#ab6d744c6b5de129f12937e482dc674fb">Handle</a> <a class="code hl_function" href="env_8h.html#a0c95ad44bb4cedb30a9a1ab419e98ed1">envGetOwnProcessHandle</a>(<span class="keywordtype">void</span>);</div>
|
|
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span><span class="comment"></span> </div>
|
|
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span><span class="comment">/// Returns the loader's return function, to be called on program exit.</span></div>
|
|
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"><a class="line" href="env_8h.html#ac65b11f2f6e633153b9b93dc7fca8333"> 91</a></span><span class="comment"></span><a class="code hl_typedef" href="env_8h.html#acc32f4f9ecaefa07ad3f6626c4a214d3">LoaderReturnFn</a> <a class="code hl_function" href="env_8h.html#ac65b11f2f6e633153b9b93dc7fca8333">envGetExitFuncPtr</a>(<span class="keywordtype">void</span>);</div>
|
|
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span><span class="comment"></span> </div>
|
|
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span><span class="comment">/// Sets the return function to be called on program exit.</span></div>
|
|
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"><a class="line" href="env_8h.html#a2442d4eb26aeabc2aff6b19979848936"> 94</a></span><span class="comment"></span><span class="keywordtype">void</span> <a class="code hl_function" href="env_8h.html#a2442d4eb26aeabc2aff6b19979848936">envSetExitFuncPtr</a>(<a class="code hl_typedef" href="env_8h.html#acc32f4f9ecaefa07ad3f6626c4a214d3">LoaderReturnFn</a> addr);</div>
|
|
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span><span class="comment"></span> </div>
|
|
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span><span class="comment">/**</span></div>
|
|
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span><span class="comment"> * @brief Configures the next homebrew application to load.</span></div>
|
|
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span><span class="comment"> * @param path Path to the next homebrew application to load (.nro).</span></div>
|
|
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span><span class="comment"> * @param argv Argument string to pass.</span></div>
|
|
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span><span class="comment"> */</span></div>
|
|
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"><a class="line" href="env_8h.html#ab3fa9a2b9c3296e182c7caf618dbb4e0"> 101</a></span><a class="code hl_typedef" href="types_8h.html#ad1be2721625a17f1be47fac918032afe">Result</a> <a class="code hl_function" href="env_8h.html#ab3fa9a2b9c3296e182c7caf618dbb4e0">envSetNextLoad</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* path, <span class="keyword">const</span> <span class="keywordtype">char</span>* argv);</div>
|
|
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span><span class="comment"></span> </div>
|
|
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span><span class="comment">/// Returns true if the environment supports envSetNextLoad.</span></div>
|
|
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"><a class="line" href="env_8h.html#ad9698d8f9425e1fff28518f9a4ff91fd"> 104</a></span><span class="comment"></span><span class="keywordtype">bool</span> <a class="code hl_function" href="env_8h.html#ad9698d8f9425e1fff28518f9a4ff91fd">envHasNextLoad</a>(<span class="keywordtype">void</span>);</div>
|
|
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span><span class="comment"></span> </div>
|
|
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span><span class="comment">/// Returns the Result from the last NRO.</span></div>
|
|
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"><a class="line" href="env_8h.html#a329ac3596407963243429e4953c981ff"> 107</a></span><span class="comment"></span><a class="code hl_typedef" href="types_8h.html#ad1be2721625a17f1be47fac918032afe">Result</a> <a class="code hl_function" href="env_8h.html#a329ac3596407963243429e4953c981ff">envGetLastLoadResult</a>(<span class="keywordtype">void</span>);</div>
|
|
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span><span class="comment"></span> </div>
|
|
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span><span class="comment">/// Returns true if the environment provides a random seed.</span></div>
|
|
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"><a class="line" href="env_8h.html#a46b8d15b6d7d8e937c2066bbbae2df9f"> 110</a></span><span class="comment"></span><span class="keywordtype">bool</span> <a class="code hl_function" href="env_8h.html#a46b8d15b6d7d8e937c2066bbbae2df9f">envHasRandomSeed</a>(<span class="keywordtype">void</span>);</div>
|
|
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span><span class="comment"></span> </div>
|
|
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span><span class="comment">/**</span></div>
|
|
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span><span class="comment"> * @brief Retrieves the random seed provided by the environment.</span></div>
|
|
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span><span class="comment"> * @param out Pointer to a u64[2] buffer which will contain the random seed on return.</span></div>
|
|
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span><span class="comment"> */</span></div>
|
|
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"><a class="line" href="env_8h.html#aeca9fba352d85d3805b158965691c97b"> 116</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="env_8h.html#aeca9fba352d85d3805b158965691c97b">envGetRandomSeed</a>(<a class="code hl_typedef" href="types_8h.html#a3f7e2bcbb0b4c338f3c4f6c937cd4234">u64</a> out[2]);</div>
|
|
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span><span class="comment"></span> </div>
|
|
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span><span class="comment">/// Returns a pointer to the user id storage area (if present).</span></div>
|
|
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"><a class="line" href="env_8h.html#ab8fb0de0fe88666b8f7586d0456cbccc"> 119</a></span><span class="comment"></span><a class="code hl_struct" href="structAccountUid.html">AccountUid</a>* <a class="code hl_function" href="env_8h.html#ab8fb0de0fe88666b8f7586d0456cbccc">envGetUserIdStorage</a>(<span class="keywordtype">void</span>);</div>
|
|
<div class="ttc" id="aenv_8h_html_a0944a4353780132eeab7b06e3e42291da0838ff00d609e6b23ba7bbccfb11758a"><div class="ttname"><a href="env_8h.html#a0944a4353780132eeab7b06e3e42291da0838ff00d609e6b23ba7bbccfb11758a">EntryType_Argv</a></div><div class="ttdeci">@ EntryType_Argv</div><div class="ttdoc">Provides argv.</div><div class="ttdef"><b>Definition</b> env.h:30</div></div>
|
|
<div class="ttc" id="aenv_8h_html_a0944a4353780132eeab7b06e3e42291da0b07e0d7703384325996bc163c506491"><div class="ttname"><a href="env_8h.html#a0944a4353780132eeab7b06e3e42291da0b07e0d7703384325996bc163c506491">EntryType_HosVersion</a></div><div class="ttdeci">@ EntryType_HosVersion</div><div class="ttdoc">Provides the currently running Horizon OS version.</div><div class="ttdef"><b>Definition</b> env.h:39</div></div>
|
|
<div class="ttc" id="aenv_8h_html_a0944a4353780132eeab7b06e3e42291da1b22fbfde71e991bf3e3e683deb861cf"><div class="ttname"><a href="env_8h.html#a0944a4353780132eeab7b06e3e42291da1b22fbfde71e991bf3e3e683deb861cf">EntryType_OverrideService</a></div><div class="ttdeci">@ EntryType_OverrideService</div><div class="ttdoc">Provides service override information.</div><div class="ttdef"><b>Definition</b> env.h:29</div></div>
|
|
<div class="ttc" id="aenv_8h_html_a0944a4353780132eeab7b06e3e42291da2ef6486d7a6471616def690acfea0b0f"><div class="ttname"><a href="env_8h.html#a0944a4353780132eeab7b06e3e42291da2ef6486d7a6471616def690acfea0b0f">EntryType_ProcessHandle</a></div><div class="ttdeci">@ EntryType_ProcessHandle</div><div class="ttdoc">Provides the process handle.</div><div class="ttdef"><b>Definition</b> env.h:35</div></div>
|
|
<div class="ttc" id="aenv_8h_html_a0944a4353780132eeab7b06e3e42291da3423f3368e16eccd78795fe8ae62d1b8"><div class="ttname"><a href="env_8h.html#a0944a4353780132eeab7b06e3e42291da3423f3368e16eccd78795fe8ae62d1b8">EntryType_SyscallAvailableHint2</a></div><div class="ttdeci">@ EntryType_SyscallAvailableHint2</div><div class="ttdoc">Provides syscall availability hints (SVCs 0x80..0xBF).</div><div class="ttdef"><b>Definition</b> env.h:40</div></div>
|
|
<div class="ttc" id="aenv_8h_html_a0944a4353780132eeab7b06e3e42291da455c3ce807b1f796b4be45a55bacb024"><div class="ttname"><a href="env_8h.html#a0944a4353780132eeab7b06e3e42291da455c3ce807b1f796b4be45a55bacb024">EntryType_EndOfList</a></div><div class="ttdeci">@ EntryType_EndOfList</div><div class="ttdoc">Entry list terminator.</div><div class="ttdef"><b>Definition</b> env.h:25</div></div>
|
|
<div class="ttc" id="aenv_8h_html_a0944a4353780132eeab7b06e3e42291da4940099de88c919bee29788ebf65968b"><div class="ttname"><a href="env_8h.html#a0944a4353780132eeab7b06e3e42291da4940099de88c919bee29788ebf65968b">EntryType_UserIdStorage</a></div><div class="ttdeci">@ EntryType_UserIdStorage</div><div class="ttdoc">Provides persistent storage for the preselected user id.</div><div class="ttdef"><b>Definition</b> env.h:38</div></div>
|
|
<div class="ttc" id="aenv_8h_html_a0944a4353780132eeab7b06e3e42291da54a8603408db6ec1beedb3f5b1fd8b16"><div class="ttname"><a href="env_8h.html#a0944a4353780132eeab7b06e3e42291da54a8603408db6ec1beedb3f5b1fd8b16">EntryType_AppletWorkaround</a></div><div class="ttdeci">@ EntryType_AppletWorkaround</div><div class="ttdoc">Indicates that APT is broken and should not be used.</div><div class="ttdef"><b>Definition</b> env.h:33</div></div>
|
|
<div class="ttc" id="aenv_8h_html_a0944a4353780132eeab7b06e3e42291da6a0fc45f86c310d0b6276be703b3d9ea"><div class="ttname"><a href="env_8h.html#a0944a4353780132eeab7b06e3e42291da6a0fc45f86c310d0b6276be703b3d9ea">EntryType_OverrideHeap</a></div><div class="ttdeci">@ EntryType_OverrideHeap</div><div class="ttdoc">Provides heap override information.</div><div class="ttdef"><b>Definition</b> env.h:28</div></div>
|
|
<div class="ttc" id="aenv_8h_html_a0944a4353780132eeab7b06e3e42291da88d2e8b053cf1d2fca7a67a720351e7a"><div class="ttname"><a href="env_8h.html#a0944a4353780132eeab7b06e3e42291da88d2e8b053cf1d2fca7a67a720351e7a">EntryType_NextLoadPath</a></div><div class="ttdeci">@ EntryType_NextLoadPath</div><div class="ttdoc">Provides a buffer containing information about the next homebrew application to load.</div><div class="ttdef"><b>Definition</b> env.h:27</div></div>
|
|
<div class="ttc" id="aenv_8h_html_a0944a4353780132eeab7b06e3e42291dabbf1b5508678665c78169bd568ec6c20"><div class="ttname"><a href="env_8h.html#a0944a4353780132eeab7b06e3e42291dabbf1b5508678665c78169bd568ec6c20">EntryType_Reserved9</a></div><div class="ttdeci">@ EntryType_Reserved9</div><div class="ttdoc">Unused/reserved entry type, formerly used by StdioSockets.</div><div class="ttdef"><b>Definition</b> env.h:34</div></div>
|
|
<div class="ttc" id="aenv_8h_html_a0944a4353780132eeab7b06e3e42291dac367f9dc1459e6549525d20baa5cbb88"><div class="ttname"><a href="env_8h.html#a0944a4353780132eeab7b06e3e42291dac367f9dc1459e6549525d20baa5cbb88">EntryType_MainThreadHandle</a></div><div class="ttdeci">@ EntryType_MainThreadHandle</div><div class="ttdoc">Provides the handle to the main thread.</div><div class="ttdef"><b>Definition</b> env.h:26</div></div>
|
|
<div class="ttc" id="aenv_8h_html_a0944a4353780132eeab7b06e3e42291dac8c5774f2e3d8df0bdfd493ad6d24635"><div class="ttname"><a href="env_8h.html#a0944a4353780132eeab7b06e3e42291dac8c5774f2e3d8df0bdfd493ad6d24635">EntryType_AppletType</a></div><div class="ttdeci">@ EntryType_AppletType</div><div class="ttdoc">Provides APT applet type.</div><div class="ttdef"><b>Definition</b> env.h:32</div></div>
|
|
<div class="ttc" id="aenv_8h_html_a0944a4353780132eeab7b06e3e42291daf19e57ac2a4295e17f2e8b645b34066c"><div class="ttname"><a href="env_8h.html#a0944a4353780132eeab7b06e3e42291daf19e57ac2a4295e17f2e8b645b34066c">EntryType_LastLoadResult</a></div><div class="ttdeci">@ EntryType_LastLoadResult</div><div class="ttdoc">Provides the last load result.</div><div class="ttdef"><b>Definition</b> env.h:36</div></div>
|
|
<div class="ttc" id="aenv_8h_html_a0944a4353780132eeab7b06e3e42291daf89471b35570739f250ceef2217bc1d8"><div class="ttname"><a href="env_8h.html#a0944a4353780132eeab7b06e3e42291daf89471b35570739f250ceef2217bc1d8">EntryType_SyscallAvailableHint</a></div><div class="ttdeci">@ EntryType_SyscallAvailableHint</div><div class="ttdoc">Provides syscall availability hints (SVCs 0x00..0x7F).</div><div class="ttdef"><b>Definition</b> env.h:31</div></div>
|
|
<div class="ttc" id="aenv_8h_html_a0944a4353780132eeab7b06e3e42291daf9ff7019c7c8d36bf16411c8922300da"><div class="ttname"><a href="env_8h.html#a0944a4353780132eeab7b06e3e42291daf9ff7019c7c8d36bf16411c8922300da">EntryType_RandomSeed</a></div><div class="ttdeci">@ EntryType_RandomSeed</div><div class="ttdoc">Provides random data used to seed the pseudo-random number generator.</div><div class="ttdef"><b>Definition</b> env.h:37</div></div>
|
|
<div class="ttc" id="aenv_8h_html_a0c95ad44bb4cedb30a9a1ab419e98ed1"><div class="ttname"><a href="env_8h.html#a0c95ad44bb4cedb30a9a1ab419e98ed1">envGetOwnProcessHandle</a></div><div class="ttdeci">Handle envGetOwnProcessHandle(void)</div><div class="ttdoc">Returns the handle to the running homebrew process.</div></div>
|
|
<div class="ttc" id="aenv_8h_html_a0ed680fdb405e7195d9f14032851eebba37d2147c59409a606ff7fbbcd48ce310"><div class="ttname"><a href="env_8h.html#a0ed680fdb405e7195d9f14032851eebba37d2147c59409a606ff7fbbcd48ce310">EntryFlag_IsMandatory</a></div><div class="ttdeci">@ EntryFlag_IsMandatory</div><div class="ttdoc">Specifies that the entry must be processed by the homebrew application.</div><div class="ttdef"><b>Definition</b> env.h:20</div></div>
|
|
<div class="ttc" id="aenv_8h_html_a124ac37e03e794f79c2e1d35c705e41d"><div class="ttname"><a href="env_8h.html#a124ac37e03e794f79c2e1d35c705e41d">envSetup</a></div><div class="ttdeci">void envSetup(void *ctx, Handle main_thread, LoaderReturnFn saved_lr)</div><div class="ttdoc">Parses the homebrew loader environment block (internally called).</div></div>
|
|
<div class="ttc" id="aenv_8h_html_a1b54a3759dc7fca254c0402959b0c3a9"><div class="ttname"><a href="env_8h.html#a1b54a3759dc7fca254c0402959b0c3a9">envIsNso</a></div><div class="ttdeci">bool envIsNso(void)</div><div class="ttdoc">Returns true if the application is running as NSO, otherwise NRO.</div></div>
|
|
<div class="ttc" id="aenv_8h_html_a1e26a0f9bf1212376fd62899a15c76f0"><div class="ttname"><a href="env_8h.html#a1e26a0f9bf1212376fd62899a15c76f0">envGetMainThreadHandle</a></div><div class="ttdeci">Handle envGetMainThreadHandle(void)</div><div class="ttdoc">Retrieves the handle to the main thread.</div></div>
|
|
<div class="ttc" id="aenv_8h_html_a2442d4eb26aeabc2aff6b19979848936"><div class="ttname"><a href="env_8h.html#a2442d4eb26aeabc2aff6b19979848936">envSetExitFuncPtr</a></div><div class="ttdeci">void envSetExitFuncPtr(LoaderReturnFn addr)</div><div class="ttdoc">Sets the return function to be called on program exit.</div></div>
|
|
<div class="ttc" id="aenv_8h_html_a329ac3596407963243429e4953c981ff"><div class="ttname"><a href="env_8h.html#a329ac3596407963243429e4953c981ff">envGetLastLoadResult</a></div><div class="ttdeci">Result envGetLastLoadResult(void)</div><div class="ttdoc">Returns the Result from the last NRO.</div></div>
|
|
<div class="ttc" id="aenv_8h_html_a3ac15917c422b7fb76defc28391de908"><div class="ttname"><a href="env_8h.html#a3ac15917c422b7fb76defc28391de908">envGetArgv</a></div><div class="ttdeci">void * envGetArgv(void)</div><div class="ttdoc">Returns the pointer to the argv array.</div></div>
|
|
<div class="ttc" id="aenv_8h_html_a3e22bb071c3f9ba88f03646dbc091f7b"><div class="ttname"><a href="env_8h.html#a3e22bb071c3f9ba88f03646dbc091f7b">envGetHeapOverrideAddr</a></div><div class="ttdeci">void * envGetHeapOverrideAddr(void)</div><div class="ttdoc">Returns the address of the overriden heap.</div></div>
|
|
<div class="ttc" id="aenv_8h_html_a4586aa8a25da026e4556972ab58524f8"><div class="ttname"><a href="env_8h.html#a4586aa8a25da026e4556972ab58524f8">envGetHeapOverrideSize</a></div><div class="ttdeci">u64 envGetHeapOverrideSize(void)</div><div class="ttdoc">Returns the size of the overriden heap.</div></div>
|
|
<div class="ttc" id="aenv_8h_html_a46b8d15b6d7d8e937c2066bbbae2df9f"><div class="ttname"><a href="env_8h.html#a46b8d15b6d7d8e937c2066bbbae2df9f">envHasRandomSeed</a></div><div class="ttdeci">bool envHasRandomSeed(void)</div><div class="ttdoc">Returns true if the environment provides a random seed.</div></div>
|
|
<div class="ttc" id="aenv_8h_html_a4790f45dcc812c1b00184a2edccdddf5aa793377327e3f74abd20af3ba03c4894"><div class="ttname"><a href="env_8h.html#a4790f45dcc812c1b00184a2edccdddf5aa793377327e3f74abd20af3ba03c4894">EnvAppletFlags_ApplicationOverride</a></div><div class="ttdeci">@ EnvAppletFlags_ApplicationOverride</div><div class="ttdoc">Use AppletType_Application instead of AppletType_SystemApplication.</div><div class="ttdef"><b>Definition</b> env.h:44</div></div>
|
|
<div class="ttc" id="aenv_8h_html_a51436dd6a71d9c7ec31a98b32e512a90"><div class="ttname"><a href="env_8h.html#a51436dd6a71d9c7ec31a98b32e512a90">envHasHeapOverride</a></div><div class="ttdeci">bool envHasHeapOverride(void)</div><div class="ttdoc">Returns true if the environment has a heap override.</div></div>
|
|
<div class="ttc" id="aenv_8h_html_a9290f46daa561f0d6fcf13c66eafc9e3"><div class="ttname"><a href="env_8h.html#a9290f46daa561f0d6fcf13c66eafc9e3">envIsSyscallHinted</a></div><div class="ttdeci">bool envIsSyscallHinted(unsigned svc)</div><div class="ttdoc">Returns whether a syscall is hinted to be available.</div></div>
|
|
<div class="ttc" id="aenv_8h_html_a9c8b1570deecff0e9c0bc8f46679bad7"><div class="ttname"><a href="env_8h.html#a9c8b1570deecff0e9c0bc8f46679bad7">envHasArgv</a></div><div class="ttdeci">bool envHasArgv(void)</div><div class="ttdoc">Returns true if the environment has an argv array.</div></div>
|
|
<div class="ttc" id="aenv_8h_html_aab54f5f5ecfdf85f56a53482994bdc34"><div class="ttname"><a href="env_8h.html#aab54f5f5ecfdf85f56a53482994bdc34">envGetLoaderInfoSize</a></div><div class="ttdeci">u64 envGetLoaderInfoSize(void)</div><div class="ttdoc">Returns the size of the loader information text.</div></div>
|
|
<div class="ttc" id="aenv_8h_html_ab3fa9a2b9c3296e182c7caf618dbb4e0"><div class="ttname"><a href="env_8h.html#ab3fa9a2b9c3296e182c7caf618dbb4e0">envSetNextLoad</a></div><div class="ttdeci">Result envSetNextLoad(const char *path, const char *argv)</div><div class="ttdoc">Configures the next homebrew application to load.</div></div>
|
|
<div class="ttc" id="aenv_8h_html_ab8fb0de0fe88666b8f7586d0456cbccc"><div class="ttname"><a href="env_8h.html#ab8fb0de0fe88666b8f7586d0456cbccc">envGetUserIdStorage</a></div><div class="ttdeci">AccountUid * envGetUserIdStorage(void)</div><div class="ttdoc">Returns a pointer to the user id storage area (if present).</div></div>
|
|
<div class="ttc" id="aenv_8h_html_ac65b11f2f6e633153b9b93dc7fca8333"><div class="ttname"><a href="env_8h.html#ac65b11f2f6e633153b9b93dc7fca8333">envGetExitFuncPtr</a></div><div class="ttdeci">LoaderReturnFn envGetExitFuncPtr(void)</div><div class="ttdoc">Returns the loader's return function, to be called on program exit.</div></div>
|
|
<div class="ttc" id="aenv_8h_html_acc32f4f9ecaefa07ad3f6626c4a214d3"><div class="ttname"><a href="env_8h.html#acc32f4f9ecaefa07ad3f6626c4a214d3">LoaderReturnFn</a></div><div class="ttdeci">void(* LoaderReturnFn)(int result_code)</div><div class="ttdoc">Loader return function.</div><div class="ttdef"><b>Definition</b> env.h:48</div></div>
|
|
<div class="ttc" id="aenv_8h_html_ad9698d8f9425e1fff28518f9a4ff91fd"><div class="ttname"><a href="env_8h.html#ad9698d8f9425e1fff28518f9a4ff91fd">envHasNextLoad</a></div><div class="ttdeci">bool envHasNextLoad(void)</div><div class="ttdoc">Returns true if the environment supports envSetNextLoad.</div></div>
|
|
<div class="ttc" id="aenv_8h_html_ae062d62927dd5dd518b9e45ed0a6599f"><div class="ttname"><a href="env_8h.html#ae062d62927dd5dd518b9e45ed0a6599f">envGetLoaderInfo</a></div><div class="ttdeci">const char * envGetLoaderInfo(void)</div><div class="ttdoc">Returns information text about the loader, if present.</div></div>
|
|
<div class="ttc" id="aenv_8h_html_aeca9fba352d85d3805b158965691c97b"><div class="ttname"><a href="env_8h.html#aeca9fba352d85d3805b158965691c97b">envGetRandomSeed</a></div><div class="ttdeci">void envGetRandomSeed(u64 out[2])</div><div class="ttdoc">Retrieves the random seed provided by the environment.</div></div>
|
|
<div class="ttc" id="astructAccountUid_html"><div class="ttname"><a href="structAccountUid.html">AccountUid</a></div><div class="ttdoc">Account UserId.</div><div class="ttdef"><b>Definition</b> acc.h:25</div></div>
|
|
<div class="ttc" id="astructConfigEntry_html"><div class="ttname"><a href="structConfigEntry.html">ConfigEntry</a></div><div class="ttdoc">Structure representing an entry in the homebrew environment configuration.</div><div class="ttdef"><b>Definition</b> env.h:12</div></div>
|
|
<div class="ttc" id="astructConfigEntry_html_a84ebb42abc89f8d0eba6e907ec6375a1"><div class="ttname"><a href="structConfigEntry.html#a84ebb42abc89f8d0eba6e907ec6375a1">ConfigEntry::Key</a></div><div class="ttdeci">u32 Key</div><div class="ttdoc">Type of entry.</div><div class="ttdef"><b>Definition</b> env.h:13</div></div>
|
|
<div class="ttc" id="astructConfigEntry_html_abe623f9eb8408d01e32f432812651625"><div class="ttname"><a href="structConfigEntry.html#abe623f9eb8408d01e32f432812651625">ConfigEntry::Flags</a></div><div class="ttdeci">u32 Flags</div><div class="ttdoc">Entry flags.</div><div class="ttdef"><b>Definition</b> env.h:14</div></div>
|
|
<div class="ttc" id="atypes_8h_html_a3a8ea58898cb58fc96013383d39f482c"><div class="ttname"><a href="types_8h.html#a3a8ea58898cb58fc96013383d39f482c">BIT</a></div><div class="ttdeci">#define BIT(n)</div><div class="ttdoc">Creates a bitmask from a bit number.</div><div class="ttdef"><b>Definition</b> types.h:54</div></div>
|
|
<div class="ttc" id="atypes_8h_html_a3f7e2bcbb0b4c338f3c4f6c937cd4234"><div class="ttname"><a href="types_8h.html#a3f7e2bcbb0b4c338f3c4f6c937cd4234">u64</a></div><div class="ttdeci">uint64_t u64</div><div class="ttdoc">64-bit unsigned integer.</div><div class="ttdef"><b>Definition</b> types.h:22</div></div>
|
|
<div class="ttc" id="atypes_8h_html_ab6d744c6b5de129f12937e482dc674fb"><div class="ttname"><a href="types_8h.html#ab6d744c6b5de129f12937e482dc674fb">Handle</a></div><div class="ttdeci">u32 Handle</div><div class="ttdoc">Kernel object handle.</div><div class="ttdef"><b>Definition</b> types.h:43</div></div>
|
|
<div class="ttc" id="atypes_8h_html_ad1be2721625a17f1be47fac918032afe"><div class="ttname"><a href="types_8h.html#ad1be2721625a17f1be47fac918032afe">Result</a></div><div class="ttdeci">u32 Result</div><div class="ttdoc">Function error code result type.</div><div class="ttdef"><b>Definition</b> types.h:44</div></div>
|
|
<div class="ttc" id="atypes_8h_html_ade5bb7679c90297209347fcb85a0db41"><div class="ttname"><a href="types_8h.html#ade5bb7679c90297209347fcb85a0db41">NX_NORETURN</a></div><div class="ttdeci">#define NX_NORETURN</div><div class="ttdoc">Marks a function as not returning, for the purposes of compiler optimization.</div><div class="ttdef"><b>Definition</b> types.h:68</div></div>
|
|
<div class="ttc" id="atypes_8h_html_afaa62991928fb9fb18ff0db62a040aba"><div class="ttname"><a href="types_8h.html#afaa62991928fb9fb18ff0db62a040aba">u32</a></div><div class="ttdeci">uint32_t u32</div><div class="ttdoc">32-bit unsigned integer.</div><div class="ttdef"><b>Definition</b> types.h:21</div></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
|
|
</small></address>
|
|
</body>
|
|
</html>
|