123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://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.13"/>
- <meta name="viewport" content="width=device-width, initial-scale=1"/>
- <title>tpm2-tss: Profile module</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="navtree.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="resize.js"></script>
- <script type="text/javascript" src="navtreedata.js"></script>
- <script type="text/javascript" src="navtree.js"></script>
- <script type="text/javascript">
- $(document).ready(initResizable);
- </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">tpm2-tss
-  <span id="projectnumber">3.2.0</span>
- </div>
- <div id="projectbrief">TPM Software stack 2.0 TCG spec compliant implementation</div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <!-- end header part -->
- <!-- Generated by Doxygen 1.8.13 -->
- <script type="text/javascript" src="menudata.js"></script>
- <script type="text/javascript" src="menu.js"></script>
- <script type="text/javascript">
- $(function() {
- initMenu('',false,false,'search.php','Search');
- });
- </script>
- <div id="main-nav"></div>
- </div><!-- top -->
- <div id="side-nav" class="ui-resizable side-nav-resizable">
- <div id="nav-tree">
- <div id="nav-tree-contents">
- <div id="nav-sync" class="sync"></div>
- </div>
- </div>
- <div id="splitbar" style="-moz-user-select:none;"
- class="ui-resizable-handle">
- </div>
- </div>
- <script type="text/javascript">
- $(document).ready(function(){initNavTree('group__ifapi__profile.html','');});
- </script>
- <div id="doc-content">
- <div class="header">
- <div class="summary">
- <a href="#func-members">Functions</a> </div>
- <div class="headertitle">
- <div class="title">Profile module<div class="ingroups"><a class="el" href="group__fapi.html">Feature API</a> » <a class="el" href="group__ifapi.html">Internals of Feature API</a></div></div> </div>
- </div><!--header-->
- <div class="contents">
- <table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
- Functions</h2></td></tr>
- <tr class="memitem:ga7f35ab0d369df53118addf132afc9c6e"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__ifapi__profile.html#ga7f35ab0d369df53118addf132afc9c6e">ifapi_profiles_finalize</a> (<a class="el" href="struct_i_f_a_p_i___p_r_o_f_i_l_e_s.html">IFAPI_PROFILES</a> *profiles)</td></tr>
- <tr class="separator:ga7f35ab0d369df53118addf132afc9c6e"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ga1d1f66781412b41c312359da5808e743"><td class="memItemLeft" align="right" valign="top">TSS2_RC </td><td class="memItemRight" valign="bottom"><a class="el" href="group__ifapi__profile.html#ga1d1f66781412b41c312359da5808e743">ifapi_profiles_get</a> (const <a class="el" href="struct_i_f_a_p_i___p_r_o_f_i_l_e_s.html">IFAPI_PROFILES</a> *profiles, const char *name, const <a class="el" href="struct_i_f_a_p_i___p_r_o_f_i_l_e.html">IFAPI_PROFILE</a> **profile)</td></tr>
- <tr class="separator:ga1d1f66781412b41c312359da5808e743"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ga726700f428528de3917ffaa1e7bbf429"><td class="memItemLeft" align="right" valign="top">TSS2_RC </td><td class="memItemRight" valign="bottom"><a class="el" href="group__ifapi__profile.html#ga726700f428528de3917ffaa1e7bbf429">ifapi_profiles_initialize_async</a> (<a class="el" href="struct_i_f_a_p_i___p_r_o_f_i_l_e_s.html">IFAPI_PROFILES</a> *profiles, <a class="el" href="struct_i_f_a_p_i___i_o.html">IFAPI_IO</a> *io, const char *profilesdir, const char *defaultprofile)</td></tr>
- <tr class="separator:ga726700f428528de3917ffaa1e7bbf429"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ga48f2955d99163ee98cb37fbe423c5c3d"><td class="memItemLeft" align="right" valign="top">TSS2_RC </td><td class="memItemRight" valign="bottom"><a class="el" href="group__ifapi__profile.html#ga48f2955d99163ee98cb37fbe423c5c3d">ifapi_profiles_initialize_finish</a> (<a class="el" href="struct_i_f_a_p_i___p_r_o_f_i_l_e_s.html">IFAPI_PROFILES</a> *profiles, <a class="el" href="struct_i_f_a_p_i___i_o.html">IFAPI_IO</a> *io)</td></tr>
- <tr class="separator:ga48f2955d99163ee98cb37fbe423c5c3d"><td class="memSeparator" colspan="2"> </td></tr>
- </table>
- <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
- <p>Provides functions for the handling of profiles stored in the object store. </p>
- <h2 class="groupheader">Function Documentation</h2>
- <a id="ga7f35ab0d369df53118addf132afc9c6e"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#ga7f35ab0d369df53118addf132afc9c6e">◆ </a></span>ifapi_profiles_finalize()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void ifapi_profiles_finalize </td>
- <td>(</td>
- <td class="paramtype"><a class="el" href="struct_i_f_a_p_i___p_r_o_f_i_l_e_s.html">IFAPI_PROFILES</a> * </td>
- <td class="paramname"><em>profiles</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Sanitizes and frees internal data structures of loaded profiles' information.</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramdir">[in,out]</td><td class="paramname">profiles</td><td>The context for the profiles information. </td></tr>
- </table>
- </dd>
- </dl>
- </div>
- </div>
- <a id="ga1d1f66781412b41c312359da5808e743"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#ga1d1f66781412b41c312359da5808e743">◆ </a></span>ifapi_profiles_get()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">TSS2_RC ifapi_profiles_get </td>
- <td>(</td>
- <td class="paramtype">const <a class="el" href="struct_i_f_a_p_i___p_r_o_f_i_l_e_s.html">IFAPI_PROFILES</a> * </td>
- <td class="paramname"><em>profiles</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const char * </td>
- <td class="paramname"><em>name</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const <a class="el" href="struct_i_f_a_p_i___p_r_o_f_i_l_e.html">IFAPI_PROFILE</a> ** </td>
- <td class="paramname"><em>profile</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Return the profile data for a given profile name.</p>
- <p>Returns a (const, not to be free'd) pointer to the profile data for a requested profile. If a NULL profile is requesten, then the default profile is returned. If a keypath is passed in, then the prefix is analysed. If that keypath starts with a profile then this profile is returned. Otherwise the default profile is returned.</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramdir">[in]</td><td class="paramname">profiles</td><td>The profiles context </td></tr>
- <tr><td class="paramdir">[in]</td><td class="paramname">name</td><td>The name of the profile or the keypath </td></tr>
- <tr><td class="paramdir">[out]</td><td class="paramname">profile</td><td>The pointer to the profile data. </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="retval"><dt>Return values</dt><dd>
- <table class="retval">
- <tr><td class="paramname">TSS2_RC_SUCCESS</td><td>on success. </td></tr>
- <tr><td class="paramname">TSS2_FAPI_RC_BAD_REFERENCE</td><td>if NULL pointers were passed in. </td></tr>
- <tr><td class="paramname">TSS2_FAPI_RC_BAD_VALUE</td><td>if a profile is not found. </td></tr>
- </table>
- </dd>
- </dl>
- </div>
- </div>
- <a id="ga726700f428528de3917ffaa1e7bbf429"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#ga726700f428528de3917ffaa1e7bbf429">◆ </a></span>ifapi_profiles_initialize_async()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">TSS2_RC ifapi_profiles_initialize_async </td>
- <td>(</td>
- <td class="paramtype"><a class="el" href="struct_i_f_a_p_i___p_r_o_f_i_l_e_s.html">IFAPI_PROFILES</a> * </td>
- <td class="paramname"><em>profiles</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype"><a class="el" href="struct_i_f_a_p_i___i_o.html">IFAPI_IO</a> * </td>
- <td class="paramname"><em>io</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const char * </td>
- <td class="paramname"><em>profilesdir</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const char * </td>
- <td class="paramname"><em>defaultprofile</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Initialize the profiles information in the context in an asynchronous way</p>
- <p>Load the profile information from disk, fill the dictionary of loaded profiles and fill the default profile information into the context.</p>
- <p>Call ifapi_profiles_initialize_finish to complete the operation.</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramdir">[in,out]</td><td class="paramname">profiles</td><td>The context for the profiles information. </td></tr>
- <tr><td class="paramdir">[in,out]</td><td class="paramname">io</td><td>The input/output context being used for file I/O. </td></tr>
- <tr><td class="paramdir">[in]</td><td class="paramname">profilesdir</td><td>The directory to load profile information from. </td></tr>
- <tr><td class="paramdir">[in]</td><td class="paramname">defaultprofile</td><td>The name of the default profile to use. </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="retval"><dt>Return values</dt><dd>
- <table class="retval">
- <tr><td class="paramname">TSS2_RC_SUCCESS</td><td>on success. </td></tr>
- <tr><td class="paramname">TSS2_FAPI_RC_BAD_REFERENCE</td><td>if NULL pointers were passed in. </td></tr>
- <tr><td class="paramname">TSS2_FAPI_RC_BAD_VALUE</td><td>if the profilesdir does not exist or is empty. </td></tr>
- <tr><td class="paramname">TSS2_FAPI_RC_IO_ERROR</td><td>if creation of log_dir failed or log_dir is not writable. </td></tr>
- <tr><td class="paramname">TSS2_FAPI_RC_MEMORY</td><td>if memory allocation failed. </td></tr>
- </table>
- </dd>
- </dl>
- </div>
- </div>
- <a id="ga48f2955d99163ee98cb37fbe423c5c3d"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#ga48f2955d99163ee98cb37fbe423c5c3d">◆ </a></span>ifapi_profiles_initialize_finish()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">TSS2_RC ifapi_profiles_initialize_finish </td>
- <td>(</td>
- <td class="paramtype"><a class="el" href="struct_i_f_a_p_i___p_r_o_f_i_l_e_s.html">IFAPI_PROFILES</a> * </td>
- <td class="paramname"><em>profiles</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype"><a class="el" href="struct_i_f_a_p_i___i_o.html">IFAPI_IO</a> * </td>
- <td class="paramname"><em>io</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Initialize the profiles information in the context in an asynchronous way</p>
- <p>Call after ifapi_profiles_initialize_async to complete the operation.</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramdir">[in,out]</td><td class="paramname">profiles</td><td>The context for the profiles information. </td></tr>
- <tr><td class="paramdir">[in,out]</td><td class="paramname">io</td><td>The input/output context being used for file I/O. </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="retval"><dt>Return values</dt><dd>
- <table class="retval">
- <tr><td class="paramname">TSS2_RC_SUCCESS</td><td>on success. </td></tr>
- <tr><td class="paramname">TSS2_FAPI_RC_BAD_REFERENCE</td><td>if NULL pointers were passed in. </td></tr>
- <tr><td class="paramname">TSS2_FAPI_RC_BAD_VALUE</td><td>if a profile could not be loaded. </td></tr>
- <tr><td class="paramname">TSS2_FAPI_RC_IO_ERROR</td><td>if creation of log_dir failed or log_dir is not writable. </td></tr>
- <tr><td class="paramname">TSS2_FAPI_RC_MEMORY</td><td>if memory allocation failed. </td></tr>
- <tr><td class="paramname">TSS2_FAPI_RC_TRY_AGAIN</td><td>if the I/O operation is not finished yet and this function needs to be called again. </td></tr>
- </table>
- </dd>
- </dl>
- </div>
- </div>
- </div><!-- contents -->
- </div><!-- doc-content -->
- <!-- start footer part -->
- <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
- <ul>
- <li class="footer">Generated by
- <a href="http://www.doxygen.org/index.html">
- <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
- </ul>
- </div>
- </body>
- </html>
|