libnx/capssu_8h_source.html
2025-05-08 06:59:12 +00:00

203 lines
30 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/services/capssu.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">&#160;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&amp;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&amp;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&amp;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_04a7e0b94d44ce4fc7ca3462163fd33c.html">services</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle"><div class="title">capssu.h</div></div>
</div><!--header-->
<div class="contents">
<a href="capssu_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 capssu.h</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="comment"> * @brief Application screenshot saving (caps:su) service IPC wrapper.</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="comment"> * @author yellows8</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 &quot;../types.h&quot;</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="preprocessor">#include &quot;../sf/service.h&quot;</span></div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="preprocessor">#include &quot;../services/acc.h&quot;</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="preprocessor">#include &quot;../services/caps.h&quot;</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="comment"></span> </div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span><span class="comment">/// Initialize caps:su. Only available on [4.0.0+].</span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"><a class="line" href="capssu_8h.html#a8724cfc134e38be1d8965ab51497d0c3"> 14</a></span><span class="comment"></span><a class="code hl_typedef" href="types_8h.html#ad1be2721625a17f1be47fac918032afe">Result</a> <a class="code hl_function" href="capssu_8h.html#a8724cfc134e38be1d8965ab51497d0c3">capssuInitialize</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="comment"></span> </div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="comment">/// Exit caps:su.</span></div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"><a class="line" href="capssu_8h.html#a53e1a1129a220156ad363ef5692f5dd8"> 17</a></span><span class="comment"></span><span class="keywordtype">void</span> <a class="code hl_function" href="capssu_8h.html#a53e1a1129a220156ad363ef5692f5dd8">capssuExit</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="comment"></span> </div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span><span class="comment">/// Gets the Service for caps:su.</span></div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"><a class="line" href="capssu_8h.html#a5585b51e981194a0cbfc0f82f3b63d83"> 20</a></span><span class="comment"></span><a class="code hl_struct" href="structService.html">Service</a>* <a class="code hl_function" href="capssu_8h.html#a5585b51e981194a0cbfc0f82f3b63d83">capssuGetServiceSession</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span><span class="comment"></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"> * @brief This is a wrapper for \ref capssuSaveScreenShotEx0.</span></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span><span class="comment"> * @note This uses an all-zero \ref CapsScreenShotAttribute with orientation = input orientation, and unk_xc = 1.</span></div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span><span class="comment"> * @param[in] buffer RGBA8 1280x720 image buffer.</span></div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span><span class="comment"> * @param[in] size Size of the buffer.</span></div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span><span class="comment"> * @param[in] reportoption \ref AlbumReportOption</span></div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span><span class="comment"> * @param[in] orientation \ref AlbumImageOrientation</span></div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span><span class="comment"> * @param[out] out \ref CapsApplicationAlbumEntry. Optional, can be NULL.</span></div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span><span class="comment"> */</span></div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"><a class="line" href="capssu_8h.html#a9248de449baf31e1d403673bfa590409"> 31</a></span><a class="code hl_typedef" href="types_8h.html#ad1be2721625a17f1be47fac918032afe">Result</a> <a class="code hl_function" href="capssu_8h.html#a9248de449baf31e1d403673bfa590409">capssuSaveScreenShot</a>(<span class="keyword">const</span> <span class="keywordtype">void</span>* buffer, <span class="keywordtype">size_t</span> size, <a class="code hl_enumeration" href="caps_8h.html#a8bfd9fb45237c81d9e40730e85ce2aa0">AlbumReportOption</a> reportoption, <a class="code hl_enumeration" href="caps_8h.html#a5807b7a3d1050104ac5b2bad560b2569">AlbumImageOrientation</a> orientation, <a class="code hl_struct" href="structCapsApplicationAlbumEntry.html">CapsApplicationAlbumEntry</a> *out);</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span><span class="comment"></span> </div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span><span class="comment">/**</span></div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span><span class="comment"> * @brief Similar to \ref capssuSaveScreenShot, except this is a wrapper for \ref capssuSaveScreenShotEx1.</span></div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span><span class="comment"> * @note This uses an all-zero \ref CapsScreenShotAttribute with orientation = input orientation, and unk_xc = 1.</span></div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span><span class="comment"> * @note Only available on [8.0.0+].</span></div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span><span class="comment"> * @param[in] buffer RGBA8 1280x720 image data buffer.</span></div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span><span class="comment"> * @param[in] size Size of the buffer.</span></div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span><span class="comment"> * @param[in] reportoption \ref AlbumReportOption</span></div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span><span class="comment"> * @param[in] orientation \ref AlbumImageOrientation</span></div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span><span class="comment"> * @param[in] userdata Input UserData buffer. If NULL, the \ref CapsApplicationData will be empty.</span></div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span><span class="comment"> * @param[in] userdata_size Input UserData size, must be within bounds for CapsApplicationData::userdata. If 0, the \ref CapsApplicationData will be empty.</span></div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span><span class="comment"> * @param[out] out \ref CapsApplicationAlbumEntry. Optional, can be NULL.</span></div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span><span class="comment"> */</span></div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"><a class="line" href="capssu_8h.html#a0578b652ac65749a21f90f084e128f70"> 45</a></span><a class="code hl_typedef" href="types_8h.html#ad1be2721625a17f1be47fac918032afe">Result</a> <a class="code hl_function" href="capssu_8h.html#a0578b652ac65749a21f90f084e128f70">capssuSaveScreenShotWithUserData</a>(<span class="keyword">const</span> <span class="keywordtype">void</span>* buffer, <span class="keywordtype">size_t</span> size, <a class="code hl_enumeration" href="caps_8h.html#a8bfd9fb45237c81d9e40730e85ce2aa0">AlbumReportOption</a> reportoption, <a class="code hl_enumeration" href="caps_8h.html#a5807b7a3d1050104ac5b2bad560b2569">AlbumImageOrientation</a> orientation, <span class="keyword">const</span> <span class="keywordtype">void</span>* userdata, <span class="keywordtype">size_t</span> userdata_size, <a class="code hl_struct" href="structCapsApplicationAlbumEntry.html">CapsApplicationAlbumEntry</a> *out);</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">/**</span></div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span><span class="comment"> * @brief Similar to \ref capssuSaveScreenShot, except this is a wrapper for \ref capssuSaveScreenShotEx2.</span></div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span><span class="comment"> * @note This uses an all-zero \ref CapsScreenShotAttribute with orientation = input orientation, and unk_xc = 1.</span></div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span><span class="comment"> * @note Only available on [6.0.0+].</span></div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span><span class="comment"> * @param[in] buffer RGBA8 1280x720 image data buffer.</span></div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span><span class="comment"> * @param[in] size Size of the buffer.</span></div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span><span class="comment"> * @param[in] reportoption \ref AlbumReportOption</span></div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span><span class="comment"> * @param[in] orientation \ref AlbumImageOrientation</span></div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span><span class="comment"> * @param[in] uids Input array of \ref AccountUid. If NULL, the \ref CapsUserIdList will be empty.</span></div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span><span class="comment"> * @param[in] uid_count Size of the uids array in entries, must be within bounds for CapsUserIdList::uids. If 0, the \ref CapsUserIdList will be empty.</span></div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span><span class="comment"> * @param[out] out \ref CapsApplicationAlbumEntry. Optional, can be NULL.</span></div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span><span class="comment"> */</span></div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"><a class="line" href="capssu_8h.html#a2f46c40e7a1cf3dbeed83ef6a60c1a0e"> 59</a></span><a class="code hl_typedef" href="types_8h.html#ad1be2721625a17f1be47fac918032afe">Result</a> <a class="code hl_function" href="capssu_8h.html#a2f46c40e7a1cf3dbeed83ef6a60c1a0e">capssuSaveScreenShotWithUserIds</a>(<span class="keyword">const</span> <span class="keywordtype">void</span>* buffer, <span class="keywordtype">size_t</span> size, <a class="code hl_enumeration" href="caps_8h.html#a8bfd9fb45237c81d9e40730e85ce2aa0">AlbumReportOption</a> reportoption, <a class="code hl_enumeration" href="caps_8h.html#a5807b7a3d1050104ac5b2bad560b2569">AlbumImageOrientation</a> orientation, <span class="keyword">const</span> <a class="code hl_struct" href="structAccountUid.html">AccountUid</a>* uids, <span class="keywordtype">size_t</span> uid_count, <a class="code hl_struct" href="structCapsApplicationAlbumEntry.html">CapsApplicationAlbumEntry</a> *out);</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span><span class="comment"></span> </div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span><span class="comment">/**</span></div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span><span class="comment"> * @brief Saves an Album screenshot using the specified gfx data in the buffer, with the specified \ref CapsScreenShotAttribute.</span></div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span><span class="comment"> * @param[in] buffer RGBA8 1280x720 image data buffer.</span></div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span><span class="comment"> * @param[in] size Size of the buffer, must be at least 0x384000.</span></div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span><span class="comment"> * @param[in] attr \ref CapsScreenShotAttribute</span></div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span><span class="comment"> * @param[in] reportoption \ref AlbumReportOption</span></div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span><span class="comment"> * @param[out] out \ref CapsApplicationAlbumEntry. Optional, can be NULL.</span></div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span><span class="comment"> */</span></div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"><a class="line" href="capssu_8h.html#a201465c59f38f80bbb708a657c74d9a6"> 69</a></span><a class="code hl_typedef" href="types_8h.html#ad1be2721625a17f1be47fac918032afe">Result</a> <a class="code hl_function" href="capssu_8h.html#a201465c59f38f80bbb708a657c74d9a6">capssuSaveScreenShotEx0</a>(<span class="keyword">const</span> <span class="keywordtype">void</span>* buffer, <span class="keywordtype">size_t</span> size, <span class="keyword">const</span> <a class="code hl_struct" href="structCapsScreenShotAttribute.html">CapsScreenShotAttribute</a> *attr, <a class="code hl_enumeration" href="caps_8h.html#a8bfd9fb45237c81d9e40730e85ce2aa0">AlbumReportOption</a> reportoption, <a class="code hl_struct" href="structCapsApplicationAlbumEntry.html">CapsApplicationAlbumEntry</a> *out);</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span><span class="comment"></span> </div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span><span class="comment">/**</span></div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span><span class="comment"> * @brief Same as \ref capssuSaveScreenShotEx0, except this allows specifying the \ref CapsApplicationData.</span></div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span><span class="comment"> * @note Only available on [8.0.0+].</span></div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span><span class="comment"> * @param[in] buffer RGBA8 1280x720 image data buffer.</span></div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span><span class="comment"> * @param[in] size Size of the buffer, must be at least 0x384000.</span></div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span><span class="comment"> * @param[in] attr \ref CapsScreenShotAttribute</span></div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span><span class="comment"> * @param[in] reportoption \ref AlbumReportOption</span></div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span><span class="comment"> * @param[in] appdata \ref CapsApplicationData</span></div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span><span class="comment"> * @param[out] out \ref CapsApplicationAlbumEntry. Optional, can be NULL.</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"><a class="line" href="capssu_8h.html#a008e08f1ef815570dc7c9c41d230c433"> 81</a></span><a class="code hl_typedef" href="types_8h.html#ad1be2721625a17f1be47fac918032afe">Result</a> <a class="code hl_function" href="capssu_8h.html#a008e08f1ef815570dc7c9c41d230c433">capssuSaveScreenShotEx1</a>(<span class="keyword">const</span> <span class="keywordtype">void</span>* buffer, <span class="keywordtype">size_t</span> size, <span class="keyword">const</span> <a class="code hl_struct" href="structCapsScreenShotAttribute.html">CapsScreenShotAttribute</a> *attr, <a class="code hl_enumeration" href="caps_8h.html#a8bfd9fb45237c81d9e40730e85ce2aa0">AlbumReportOption</a> reportoption, <a class="code hl_struct" href="structCapsApplicationData.html">CapsApplicationData</a> *appdata, <a class="code hl_struct" href="structCapsApplicationAlbumEntry.html">CapsApplicationAlbumEntry</a> *out);</div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span><span class="comment"></span> </div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span><span class="comment">/**</span></div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span><span class="comment"> * @brief Same as \ref capssuSaveScreenShotEx0, except this allows specifying the \ref CapsUserIdList.</span></div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span><span class="comment"> * @note Only available on [6.0.0+].</span></div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span><span class="comment"> * @param[in] buffer RGBA8 1280x720 image data buffer.</span></div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span><span class="comment"> * @param[in] size Size of the buffer, must be at least 0x384000.</span></div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span><span class="comment"> * @param[in] attr \ref CapsScreenShotAttribute</span></div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span><span class="comment"> * @param[in] reportoption \ref AlbumReportOption</span></div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span><span class="comment"> * @param[in] list \ref CapsUserIdList</span></div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span><span class="comment"> * @param[out] out \ref CapsApplicationAlbumEntry. Optional, can be NULL.</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"><a class="line" href="capssu_8h.html#abdf830028ac3e9c88427fb3d06e516fe"> 93</a></span><a class="code hl_typedef" href="types_8h.html#ad1be2721625a17f1be47fac918032afe">Result</a> <a class="code hl_function" href="capssu_8h.html#abdf830028ac3e9c88427fb3d06e516fe">capssuSaveScreenShotEx2</a>(<span class="keyword">const</span> <span class="keywordtype">void</span>* buffer, <span class="keywordtype">size_t</span> size, <span class="keyword">const</span> <a class="code hl_struct" href="structCapsScreenShotAttribute.html">CapsScreenShotAttribute</a> *attr, <a class="code hl_enumeration" href="caps_8h.html#a8bfd9fb45237c81d9e40730e85ce2aa0">AlbumReportOption</a> reportoption, <a class="code hl_struct" href="structCapsUserIdList.html">CapsUserIdList</a> *list, <a class="code hl_struct" href="structCapsApplicationAlbumEntry.html">CapsApplicationAlbumEntry</a> *out);</div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> </div>
<div class="ttc" id="acaps_8h_html_a5807b7a3d1050104ac5b2bad560b2569"><div class="ttname"><a href="caps_8h.html#a5807b7a3d1050104ac5b2bad560b2569">AlbumImageOrientation</a></div><div class="ttdeci">AlbumImageOrientation</div><div class="ttdoc">ImageOrientation.</div><div class="ttdef"><b>Definition</b> caps.h:12</div></div>
<div class="ttc" id="acaps_8h_html_a8bfd9fb45237c81d9e40730e85ce2aa0"><div class="ttname"><a href="caps_8h.html#a8bfd9fb45237c81d9e40730e85ce2aa0">AlbumReportOption</a></div><div class="ttdeci">AlbumReportOption</div><div class="ttdoc">AlbumReportOption.</div><div class="ttdef"><b>Definition</b> caps.h:20</div></div>
<div class="ttc" id="acapssu_8h_html_a008e08f1ef815570dc7c9c41d230c433"><div class="ttname"><a href="capssu_8h.html#a008e08f1ef815570dc7c9c41d230c433">capssuSaveScreenShotEx1</a></div><div class="ttdeci">Result capssuSaveScreenShotEx1(const void *buffer, size_t size, const CapsScreenShotAttribute *attr, AlbumReportOption reportoption, CapsApplicationData *appdata, CapsApplicationAlbumEntry *out)</div><div class="ttdoc">Same as capssuSaveScreenShotEx0, except this allows specifying the CapsApplicationData.</div></div>
<div class="ttc" id="acapssu_8h_html_a0578b652ac65749a21f90f084e128f70"><div class="ttname"><a href="capssu_8h.html#a0578b652ac65749a21f90f084e128f70">capssuSaveScreenShotWithUserData</a></div><div class="ttdeci">Result capssuSaveScreenShotWithUserData(const void *buffer, size_t size, AlbumReportOption reportoption, AlbumImageOrientation orientation, const void *userdata, size_t userdata_size, CapsApplicationAlbumEntry *out)</div><div class="ttdoc">Similar to capssuSaveScreenShot, except this is a wrapper for capssuSaveScreenShotEx1.</div></div>
<div class="ttc" id="acapssu_8h_html_a201465c59f38f80bbb708a657c74d9a6"><div class="ttname"><a href="capssu_8h.html#a201465c59f38f80bbb708a657c74d9a6">capssuSaveScreenShotEx0</a></div><div class="ttdeci">Result capssuSaveScreenShotEx0(const void *buffer, size_t size, const CapsScreenShotAttribute *attr, AlbumReportOption reportoption, CapsApplicationAlbumEntry *out)</div><div class="ttdoc">Saves an Album screenshot using the specified gfx data in the buffer, with the specified CapsScreenSh...</div></div>
<div class="ttc" id="acapssu_8h_html_a2f46c40e7a1cf3dbeed83ef6a60c1a0e"><div class="ttname"><a href="capssu_8h.html#a2f46c40e7a1cf3dbeed83ef6a60c1a0e">capssuSaveScreenShotWithUserIds</a></div><div class="ttdeci">Result capssuSaveScreenShotWithUserIds(const void *buffer, size_t size, AlbumReportOption reportoption, AlbumImageOrientation orientation, const AccountUid *uids, size_t uid_count, CapsApplicationAlbumEntry *out)</div><div class="ttdoc">Similar to capssuSaveScreenShot, except this is a wrapper for capssuSaveScreenShotEx2.</div></div>
<div class="ttc" id="acapssu_8h_html_a53e1a1129a220156ad363ef5692f5dd8"><div class="ttname"><a href="capssu_8h.html#a53e1a1129a220156ad363ef5692f5dd8">capssuExit</a></div><div class="ttdeci">void capssuExit(void)</div><div class="ttdoc">Exit caps:su.</div></div>
<div class="ttc" id="acapssu_8h_html_a5585b51e981194a0cbfc0f82f3b63d83"><div class="ttname"><a href="capssu_8h.html#a5585b51e981194a0cbfc0f82f3b63d83">capssuGetServiceSession</a></div><div class="ttdeci">Service * capssuGetServiceSession(void)</div><div class="ttdoc">Gets the Service for caps:su.</div></div>
<div class="ttc" id="acapssu_8h_html_a8724cfc134e38be1d8965ab51497d0c3"><div class="ttname"><a href="capssu_8h.html#a8724cfc134e38be1d8965ab51497d0c3">capssuInitialize</a></div><div class="ttdeci">Result capssuInitialize(void)</div><div class="ttdoc">Initialize caps:su. Only available on [4.0.0+].</div></div>
<div class="ttc" id="acapssu_8h_html_a9248de449baf31e1d403673bfa590409"><div class="ttname"><a href="capssu_8h.html#a9248de449baf31e1d403673bfa590409">capssuSaveScreenShot</a></div><div class="ttdeci">Result capssuSaveScreenShot(const void *buffer, size_t size, AlbumReportOption reportoption, AlbumImageOrientation orientation, CapsApplicationAlbumEntry *out)</div><div class="ttdoc">This is a wrapper for capssuSaveScreenShotEx0.</div></div>
<div class="ttc" id="acapssu_8h_html_abdf830028ac3e9c88427fb3d06e516fe"><div class="ttname"><a href="capssu_8h.html#abdf830028ac3e9c88427fb3d06e516fe">capssuSaveScreenShotEx2</a></div><div class="ttdeci">Result capssuSaveScreenShotEx2(const void *buffer, size_t size, const CapsScreenShotAttribute *attr, AlbumReportOption reportoption, CapsUserIdList *list, CapsApplicationAlbumEntry *out)</div><div class="ttdoc">Same as capssuSaveScreenShotEx0, except this allows specifying the CapsUserIdList.</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="astructCapsApplicationAlbumEntry_html"><div class="ttname"><a href="structCapsApplicationAlbumEntry.html">CapsApplicationAlbumEntry</a></div><div class="ttdoc">ApplicationAlbumEntry.</div><div class="ttdef"><b>Definition</b> caps.h:108</div></div>
<div class="ttc" id="astructCapsApplicationData_html"><div class="ttname"><a href="structCapsApplicationData.html">CapsApplicationData</a></div><div class="ttdoc">ApplicationData.</div><div class="ttdef"><b>Definition</b> caps.h:136</div></div>
<div class="ttc" id="astructCapsScreenShotAttribute_html"><div class="ttname"><a href="structCapsScreenShotAttribute.html">CapsScreenShotAttribute</a></div><div class="ttdoc">ScreenShotAttribute.</div><div class="ttdef"><b>Definition</b> caps.h:38</div></div>
<div class="ttc" id="astructCapsUserIdList_html"><div class="ttname"><a href="structCapsUserIdList.html">CapsUserIdList</a></div><div class="ttdoc">UserIdList.</div><div class="ttdef"><b>Definition</b> caps.h:175</div></div>
<div class="ttc" id="astructService_html"><div class="ttname"><a href="structService.html">Service</a></div><div class="ttdoc">Service object structure.</div><div class="ttdef"><b>Definition</b> service.h:14</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><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<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>