You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

160 lines
7.1 KiB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.8"/>
  7. <title>fuse: fuse_session_ops Struct Reference</title>
  8. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  9. <script type="text/javascript" src="jquery.js"></script>
  10. <script type="text/javascript" src="dynsections.js"></script>
  11. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  12. </head>
  13. <body>
  14. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  15. <div id="titlearea">
  16. <table cellspacing="0" cellpadding="0">
  17. <tbody>
  18. <tr style="height: 56px;">
  19. <td style="padding-left: 0.5em;">
  20. <div id="projectname">fuse
  21. </div>
  22. </td>
  23. </tr>
  24. </tbody>
  25. </table>
  26. </div>
  27. <!-- end header part -->
  28. <!-- Generated by Doxygen 1.8.8 -->
  29. <div id="navrow1" class="tabs">
  30. <ul class="tablist">
  31. <li><a href="index.html"><span>Main&#160;Page</span></a></li>
  32. <li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
  33. <li><a href="files.html"><span>Files</span></a></li>
  34. </ul>
  35. </div>
  36. <div id="navrow2" class="tabs2">
  37. <ul class="tablist">
  38. <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
  39. <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
  40. </ul>
  41. </div>
  42. </div><!-- top -->
  43. <div class="header">
  44. <div class="summary">
  45. <a href="#pub-attribs">Data Fields</a> </div>
  46. <div class="headertitle">
  47. <div class="title">fuse_session_ops Struct Reference</div> </div>
  48. </div><!--header-->
  49. <div class="contents">
  50. <p><code>#include &lt;fuse_lowlevel.h&gt;</code></p>
  51. <table class="memberdecls">
  52. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
  53. Data Fields</h2></td></tr>
  54. <tr class="memitem:a8ed15bc86f9e32444cd0b80d605f227f"><td class="memItemLeft" align="right" valign="top">void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfuse__session__ops.html#a8ed15bc86f9e32444cd0b80d605f227f">process</a> )(void *data, const char *buf, size_t len, struct fuse_chan *ch)</td></tr>
  55. <tr class="separator:a8ed15bc86f9e32444cd0b80d605f227f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  56. <tr class="memitem:aeb6548d5e59314ae6c83b905993710e3"><td class="memItemLeft" align="right" valign="top">void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfuse__session__ops.html#aeb6548d5e59314ae6c83b905993710e3">exit</a> )(void *data, int val)</td></tr>
  57. <tr class="separator:aeb6548d5e59314ae6c83b905993710e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
  58. <tr class="memitem:a6307bc12276d867dcb06ade8744cf02b"><td class="memItemLeft" align="right" valign="top">int(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfuse__session__ops.html#a6307bc12276d867dcb06ade8744cf02b">exited</a> )(void *data)</td></tr>
  59. <tr class="separator:a6307bc12276d867dcb06ade8744cf02b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  60. <tr class="memitem:afee317cbaa077d50fd19245924ddfff3"><td class="memItemLeft" align="right" valign="top">void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfuse__session__ops.html#afee317cbaa077d50fd19245924ddfff3">destroy</a> )(void *data)</td></tr>
  61. <tr class="separator:afee317cbaa077d50fd19245924ddfff3"><td class="memSeparator" colspan="2">&#160;</td></tr>
  62. </table>
  63. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  64. <div class="textblock"><p>Session operations</p>
  65. <p>This is used in session creation </p>
  66. </div><h2 class="groupheader">Field Documentation</h2>
  67. <a class="anchor" id="afee317cbaa077d50fd19245924ddfff3"></a>
  68. <div class="memitem">
  69. <div class="memproto">
  70. <table class="memname">
  71. <tr>
  72. <td class="memname">void(* fuse_session_ops::destroy)(void *data)</td>
  73. </tr>
  74. </table>
  75. </div><div class="memdoc">
  76. <p>Hook for cleaning up the channel on destroy (optional)</p>
  77. <dl class="params"><dt>Parameters</dt><dd>
  78. <table class="params">
  79. <tr><td class="paramname">data</td><td>user data passed to <a class="el" href="fuse__lowlevel_8h.html#a28b7d09c6e87e3e375743c2ef6e06f0f">fuse_session_new()</a> </td></tr>
  80. </table>
  81. </dd>
  82. </dl>
  83. </div>
  84. </div>
  85. <a class="anchor" id="aeb6548d5e59314ae6c83b905993710e3"></a>
  86. <div class="memitem">
  87. <div class="memproto">
  88. <table class="memname">
  89. <tr>
  90. <td class="memname">void(* fuse_session_ops::exit)(void *data, int val)</td>
  91. </tr>
  92. </table>
  93. </div><div class="memdoc">
  94. <p>Hook for session exit and reset (optional)</p>
  95. <dl class="params"><dt>Parameters</dt><dd>
  96. <table class="params">
  97. <tr><td class="paramname">data</td><td>user data passed to <a class="el" href="fuse__lowlevel_8h.html#a28b7d09c6e87e3e375743c2ef6e06f0f">fuse_session_new()</a> </td></tr>
  98. <tr><td class="paramname">val</td><td>exited status (1 - exited, 0 - not exited) </td></tr>
  99. </table>
  100. </dd>
  101. </dl>
  102. </div>
  103. </div>
  104. <a class="anchor" id="a6307bc12276d867dcb06ade8744cf02b"></a>
  105. <div class="memitem">
  106. <div class="memproto">
  107. <table class="memname">
  108. <tr>
  109. <td class="memname">int(* fuse_session_ops::exited)(void *data)</td>
  110. </tr>
  111. </table>
  112. </div><div class="memdoc">
  113. <p>Hook for querying the current exited status (optional)</p>
  114. <dl class="params"><dt>Parameters</dt><dd>
  115. <table class="params">
  116. <tr><td class="paramname">data</td><td>user data passed to <a class="el" href="fuse__lowlevel_8h.html#a28b7d09c6e87e3e375743c2ef6e06f0f">fuse_session_new()</a> </td></tr>
  117. </table>
  118. </dd>
  119. </dl>
  120. <dl class="section return"><dt>Returns</dt><dd>1 if exited, 0 if not exited </dd></dl>
  121. </div>
  122. </div>
  123. <a class="anchor" id="a8ed15bc86f9e32444cd0b80d605f227f"></a>
  124. <div class="memitem">
  125. <div class="memproto">
  126. <table class="memname">
  127. <tr>
  128. <td class="memname">void(* fuse_session_ops::process)(void *data, const char *buf, size_t len, struct fuse_chan *ch)</td>
  129. </tr>
  130. </table>
  131. </div><div class="memdoc">
  132. <p>Hook to process a request (mandatory)</p>
  133. <dl class="params"><dt>Parameters</dt><dd>
  134. <table class="params">
  135. <tr><td class="paramname">data</td><td>user data passed to <a class="el" href="fuse__lowlevel_8h.html#a28b7d09c6e87e3e375743c2ef6e06f0f">fuse_session_new()</a> </td></tr>
  136. <tr><td class="paramname">buf</td><td>buffer containing the raw request </td></tr>
  137. <tr><td class="paramname">len</td><td>request length </td></tr>
  138. <tr><td class="paramname">ch</td><td>channel on which the request was received </td></tr>
  139. </table>
  140. </dd>
  141. </dl>
  142. </div>
  143. </div>
  144. <hr/>The documentation for this struct was generated from the following file:<ul>
  145. <li>include/<a class="el" href="fuse__lowlevel_8h.html">fuse_lowlevel.h</a></li>
  146. </ul>
  147. </div><!-- contents -->
  148. <!-- start footer part -->
  149. <hr class="footer"/><address class="footer"><small>
  150. Generated on Sat Apr 23 2016 09:43:20 for fuse by &#160;<a href="http://www.doxygen.org/index.html">
  151. <img class="footer" src="doxygen.png" alt="doxygen"/>
  152. </a> 1.8.8
  153. </small></address>
  154. </body>
  155. </html>