Sophie

Sophie

distrib > * > 2010.0 > * > by-pkgid > 943b1476818e5ec34d7058ed3b879448 > files > 184

libmapi-devel-0.8.2-1.1481.3mdv2010.0.i586.rpm

<html>
  <head>
    <title>OpenChange Property Files 0.8 API Documentation</title>
    <link href="doxygen.css" rel="stylesheet" type="text/css"/>
    <link href="apidocs.css" rel="stylesheet" type="text/css"/>
  </head>
  <body>
    <div id="website">
    <div class="header"></div>
      <div id="middle_side">
	<div id="right_side_home">
<!-- Generated by Doxygen 1.5.9 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="examples.html"><span>Examples</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>libocpf/ocpf_write.c File Reference</h1>public OCPF write API  
<a href="#_details">More...</a>
<p>
<code>#include &quot;libocpf/ocpf_private.h&quot;</code><br>
<code>#include &lt;libocpf/ocpf.h&gt;</code><br>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">_PUBLIC_ int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ocpf__write_8c.html#789f90062bfe672ea0ff2fb19504b26a">ocpf_write_auto</a> (mapi_object_t *obj_message, struct mapi_SPropValue_array *mapi_lpProps)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">_PUBLIC_ int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ocpf__write_8c.html#2cef081b58d0fb7cc37beb2ac701476f">ocpf_write_commit</a> (void)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">_PUBLIC_ int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ocpf__write_8c.html#bb53ce2e0a2d48cbf7c9d43e1b403a87">ocpf_write_init</a> (const char *filename, mapi_id_t folder_id)</td></tr>

</table>
<hr><h2>Detailed Description</h2>
public OCPF write API 
<p>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="789f90062bfe672ea0ff2fb19504b26a"></a><!-- doxytag: member="ocpf_write.c::ocpf_write_auto" ref="789f90062bfe672ea0ff2fb19504b26a" args="(mapi_object_t *obj_message, struct mapi_SPropValue_array *mapi_lpProps)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_PUBLIC_ int ocpf_write_auto           </td>
          <td>(</td>
          <td class="paramtype">mapi_object_t *&nbsp;</td>
          <td class="paramname"> <em>obj_message</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct mapi_SPropValue_array *&nbsp;</td>
          <td class="paramname"> <em>mapi_lpProps</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Create the OCPF structure required for the commit operation<p>
This function process properties and named properties from the specified mapi_SPropValue_array and generates an OCPF structure with all the attributes required to create an OCPF file in the commit operation.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>obj_message</em>&nbsp;</td><td>the message object </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>mapi_lpProps</em>&nbsp;</td><td>the array of mapi properties returned by GetPropsAll</td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>OCPF_SUCCESS on success, otherwise OCPF_ERROR</dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd>GetPropsAll, <a class="el" href="ocpf__write_8c.html#2cef081b58d0fb7cc37beb2ac701476f">ocpf_write_commit</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="2cef081b58d0fb7cc37beb2ac701476f"></a><!-- doxytag: member="ocpf_write.c::ocpf_write_commit" ref="2cef081b58d0fb7cc37beb2ac701476f" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_PUBLIC_ int ocpf_write_commit           </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Write OCPF structure to OCPF file<p>
This function dumps the OCPF structure content into the OCPF file defined in ocpf_write_init.<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>OCPF_SUCCESS on success, otherwise OCPF_ERROR</dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="ocpf__write_8c.html#bb53ce2e0a2d48cbf7c9d43e1b403a87">ocpf_write_init</a>, <a class="el" href="ocpf__write_8c.html#789f90062bfe672ea0ff2fb19504b26a">ocpf_write_auto</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="bb53ce2e0a2d48cbf7c9d43e1b403a87"></a><!-- doxytag: member="ocpf_write.c::ocpf_write_init" ref="bb53ce2e0a2d48cbf7c9d43e1b403a87" args="(const char *filename, mapi_id_t folder_id)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_PUBLIC_ int ocpf_write_init           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>filename</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">mapi_id_t&nbsp;</td>
          <td class="paramname"> <em>folder_id</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Specify the OCPF file name to write<p>
Specify the ocpf file to create<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>filename</em>&nbsp;</td><td>output filename </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>folder_id</em>&nbsp;</td><td>the folder</td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>OCPF_SUCCESS on success, otherwise OCPF_ERROR</dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="ocpf__public_8c.html#3d8b443869a67afd0d70cce08b6f6c3b">ocpf_init</a> </dd></dl>

</div>
</div><p>
</div>
</div>
<br/>
<table style="clear:both; margin: 0.5em auto; width:80%; text-align: center; background-color:#f8f8f8; border:2px solid #e0e0e0; padding:5px;">
<tr>
<td> 
  <img alt="Creative Commons License" src="CC_SomeRightsReserved.png" width="90" height="30" border="0" /><br />
  <img alt="Creative Commons Attribution icon" src="24px-Cc-by_white.svg.png" width="24" height="24" border="0" />
  <img alt="Creative Commons Share Alike icon" src="24px-Cc-sa_white.svg.png" width="24" height="24" border="0" />
</td>
<td> <i><strong class="selflink">This content</strong> is licensed under the Creative Commons<br />
Attribution ShareAlike License v. 3.0:<br />
<a href="http://creativecommons.org/licenses/by-sa/3.0/" class="external free" title="http://creativecommons.org/licenses/by-sa/3.0/" rel="nofollow">http://creativecommons.org/licenses/by-sa/3.0/</a></i>
</td></tr></table>
<br/>
</div>
</div>
</body>
</html>