Upstream version 5.34.92.0
[platform/framework/web/crosswalk.git] / src / native_client_sdk / doc_generated / pepper_beta / c / struct_p_p_b___file_system__1__0.html
1 {{+bindTo:partials.standard_nacl_article}}
2 <h1>PPB_FileSystem Struct Reference</h1>
3 <div>
4 <!-- Generated by Doxygen 1.7.6.1 -->
5
6
7 </div>
8 <!--header-->
9 <div class="contents">
10 <!-- doxytag: class="PPB_FileSystem" --><h2>
11 Data Fields</h2><table class="memberdecls">
12
13 <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group___typedefs.html#gafdc3895ee80f4750d0d95ae1b677e9b7">PP_Resource</a>(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_p_p_b___file_system__1__0.html#a14946dd216cfe9cf786b2c1442588083">Create</a> )(<a class="el" href="group___typedefs.html#ga89b662403e6a687bb914b80114c0d19d">PP_Instance</a> instance, <a class="el" href="group___enums.html#ga87b353f2ec8935c9c3294daff612c145">PP_FileSystemType</a> type)</td></tr>
14 <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group___enums.html#ga4f272d99be14aacafe08dfd4ef830918">PP_Bool</a>(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_p_p_b___file_system__1__0.html#a4d65860ba1d916f2488bab25e89d2dba">IsFileSystem</a> )(<a class="el" href="group___typedefs.html#gafdc3895ee80f4750d0d95ae1b677e9b7">PP_Resource</a> resource)</td></tr>
15 <tr><td class="memItemLeft" align="right" valign="top">int32_t(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_p_p_b___file_system__1__0.html#a9add9cdffaa742c8d19c33a73bca9e3a">Open</a> )(<a class="el" href="group___typedefs.html#gafdc3895ee80f4750d0d95ae1b677e9b7">PP_Resource</a> file_system, int64_t expected_size, struct <a class="el" href="struct_p_p___completion_callback.html">PP_CompletionCallback</a> callback)</td></tr>
16 <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group___enums.html#ga87b353f2ec8935c9c3294daff612c145">PP_FileSystemType</a>(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_p_p_b___file_system__1__0.html#a59a9fed00deae5bfbc9480184232ab68">GetType</a> )(<a class="el" href="group___typedefs.html#gafdc3895ee80f4750d0d95ae1b677e9b7">PP_Resource</a> file_system)</td></tr>
17 </table>
18 <hr /><a name="details" id="details"></a><h2>Detailed Description</h2>
19 <div class="textblock"><p>The <code>PPB_FileSystem</code> struct identifies the file system type associated with a file. </p>
20 </div><hr /><h2>Field Documentation</h2>
21 <a class="anchor" id="a14946dd216cfe9cf786b2c1442588083"></a><!-- doxytag: member="PPB_FileSystem::Create" ref="a14946dd216cfe9cf786b2c1442588083" args=")(PP_Instance instance, PP_FileSystemType type)" -->
22 <div class="memitem">
23 <div class="memproto">
24 <table class="memname">
25 <tr>
26 <td class="memname"><a class="el" href="group___typedefs.html#gafdc3895ee80f4750d0d95ae1b677e9b7">PP_Resource</a>(* <a class="el" href="struct_p_p_b___file_system__1__0.html#a14946dd216cfe9cf786b2c1442588083">PPB_FileSystem::Create</a>)(<a class="el" href="group___typedefs.html#ga89b662403e6a687bb914b80114c0d19d">PP_Instance</a> instance, <a class="el" href="group___enums.html#ga87b353f2ec8935c9c3294daff612c145">PP_FileSystemType</a> type)</td>
27 </tr>
28 </table>
29 </div>
30 <div class="memdoc">
31 <p><a class="el" href="struct_p_p_b___file_system__1__0.html#a14946dd216cfe9cf786b2c1442588083" title="Create() creates a file system object of the given type.">Create()</a> creates a file system object of the given type. </p>
32 <dl class="params"><dt><b>Parameters:</b></dt><dd>
33 <table class="params">
34 <tr><td class="paramdir">[in]</td><td class="paramname">instance</td><td>A <code>PP_Instance</code> identifying the instance with the file. </td></tr>
35 <tr><td class="paramdir">[in]</td><td class="paramname">type</td><td>A file system type as defined by <code>PP_FileSystemType</code> enum (except PP_FILESYSTEMTYPE_ISOLATED, which is currently not supported). </td></tr>
36 </table>
37 </dd>
38 </dl>
39 <dl class="return"><dt><b>Returns:</b></dt><dd>A <code>PP_Resource</code> corresponding to a file system if successful. </dd></dl>
40 </div>
41 </div>
42 <a class="anchor" id="a59a9fed00deae5bfbc9480184232ab68"></a><!-- doxytag: member="PPB_FileSystem::GetType" ref="a59a9fed00deae5bfbc9480184232ab68" args=")(PP_Resource file_system)" -->
43 <div class="memitem">
44 <div class="memproto">
45 <table class="memname">
46 <tr>
47 <td class="memname"><a class="el" href="group___enums.html#ga87b353f2ec8935c9c3294daff612c145">PP_FileSystemType</a>(* <a class="el" href="struct_p_p_b___file_system__1__0.html#a59a9fed00deae5bfbc9480184232ab68">PPB_FileSystem::GetType</a>)(<a class="el" href="group___typedefs.html#gafdc3895ee80f4750d0d95ae1b677e9b7">PP_Resource</a> file_system)</td>
48 </tr>
49 </table>
50 </div>
51 <div class="memdoc">
52 <p><a class="el" href="struct_p_p_b___file_system__1__0.html#a59a9fed00deae5bfbc9480184232ab68" title="GetType() returns the type of the provided file system.">GetType()</a> returns the type of the provided file system. </p>
53 <dl class="params"><dt><b>Parameters:</b></dt><dd>
54 <table class="params">
55 <tr><td class="paramdir">[in]</td><td class="paramname">file_system</td><td>A <code>PP_Resource</code> corresponding to a file system.</td></tr>
56 </table>
57 </dd>
58 </dl>
59 <dl class="return"><dt><b>Returns:</b></dt><dd>A <code>PP_FileSystemType</code> with the file system type if valid or <code>PP_FILESYSTEMTYPE_INVALID</code> if the provided resource is not a valid file system. It is valid to call this function even before <a class="el" href="struct_p_p_b___file_system__1__0.html#a9add9cdffaa742c8d19c33a73bca9e3a" title="Open() opens the file system.">Open()</a> completes. </dd></dl>
60 </div>
61 </div>
62 <a class="anchor" id="a4d65860ba1d916f2488bab25e89d2dba"></a><!-- doxytag: member="PPB_FileSystem::IsFileSystem" ref="a4d65860ba1d916f2488bab25e89d2dba" args=")(PP_Resource resource)" -->
63 <div class="memitem">
64 <div class="memproto">
65 <table class="memname">
66 <tr>
67 <td class="memname"><a class="el" href="group___enums.html#ga4f272d99be14aacafe08dfd4ef830918">PP_Bool</a>(* <a class="el" href="struct_p_p_b___file_system__1__0.html#a4d65860ba1d916f2488bab25e89d2dba">PPB_FileSystem::IsFileSystem</a>)(<a class="el" href="group___typedefs.html#gafdc3895ee80f4750d0d95ae1b677e9b7">PP_Resource</a> resource)</td>
68 </tr>
69 </table>
70 </div>
71 <div class="memdoc">
72 <p><a class="el" href="struct_p_p_b___file_system__1__0.html#a4d65860ba1d916f2488bab25e89d2dba" title="IsFileSystem() determines if the provided resource is a file system.">IsFileSystem()</a> determines if the provided resource is a file system. </p>
73 <dl class="params"><dt><b>Parameters:</b></dt><dd>
74 <table class="params">
75 <tr><td class="paramdir">[in]</td><td class="paramname">resource</td><td>A <code>PP_Resource</code> corresponding to a file system.</td></tr>
76 </table>
77 </dd>
78 </dl>
79 <dl class="return"><dt><b>Returns:</b></dt><dd><code>PP_TRUE</code> if the resource is a <code>PPB_FileSystem</code>, <code>PP_FALSE</code> if the resource is invalid or some type other than <code>PPB_FileSystem</code>. </dd></dl>
80 </div>
81 </div>
82 <a class="anchor" id="a9add9cdffaa742c8d19c33a73bca9e3a"></a><!-- doxytag: member="PPB_FileSystem::Open" ref="a9add9cdffaa742c8d19c33a73bca9e3a" args=")(PP_Resource file_system, int64_t expected_size, struct PP_CompletionCallback callback)" -->
83 <div class="memitem">
84 <div class="memproto">
85 <table class="memname">
86 <tr>
87 <td class="memname">int32_t(* <a class="el" href="struct_p_p_b___file_system__1__0.html#a9add9cdffaa742c8d19c33a73bca9e3a">PPB_FileSystem::Open</a>)(<a class="el" href="group___typedefs.html#gafdc3895ee80f4750d0d95ae1b677e9b7">PP_Resource</a> file_system, int64_t expected_size, struct <a class="el" href="struct_p_p___completion_callback.html">PP_CompletionCallback</a> callback)</td>
88 </tr>
89 </table>
90 </div>
91 <div class="memdoc">
92 <p><a class="el" href="struct_p_p_b___file_system__1__0.html#a9add9cdffaa742c8d19c33a73bca9e3a" title="Open() opens the file system.">Open()</a> opens the file system. </p>
93 <p>A file system must be opened before running any other operation on it.</p>
94 <dl class="params"><dt><b>Parameters:</b></dt><dd>
95 <table class="params">
96 <tr><td class="paramdir">[in]</td><td class="paramname">file_system</td><td>A <code>PP_Resource</code> corresponding to a file system.</td></tr>
97 <tr><td class="paramdir">[in]</td><td class="paramname">expected_size</td><td>The expected size of the file system. Note that this does not request quota; to do that, you must either invoke requestQuota from JavaScript: <a href="http://www.html5rocks.com/en/tutorials/file/filesystem/#toc-requesting-quota">http://www.html5rocks.com/en/tutorials/file/filesystem/#toc-requesting-quota</a> or set the unlimitedStorage permission for Chrome Web Store apps: <a href="http://code.google.com/chrome/extensions/manifest.html#permissions">http://code.google.com/chrome/extensions/manifest.html#permissions</a></td></tr>
98 <tr><td class="paramdir">[in]</td><td class="paramname">callback</td><td>A <code><a class="el" href="struct_p_p___completion_callback.html" title="PP_CompletionCallback is a common mechanism for supporting potentially asynchronous calls in browser ...">PP_CompletionCallback</a></code> to be called upon completion of <a class="el" href="struct_p_p_b___file_system__1__0.html#a9add9cdffaa742c8d19c33a73bca9e3a" title="Open() opens the file system.">Open()</a>.</td></tr>
99 </table>
100 </dd>
101 </dl>
102 <dl class="return"><dt><b>Returns:</b></dt><dd>An int32_t containing an error code from <code><a class="el" href="pp__errors_8h.html" title="This file defines an enumeration of all PPAPI error codes.">pp_errors.h</a></code>. </dd></dl>
103 </div>
104 </div>
105 <hr />The documentation for this struct was generated from the following file:<ul>
106 <li><a class="el" href="ppb__file__system_8h.html">ppb_file_system.h</a></li>
107 </ul>
108 </div><!-- contents -->
109 {{/partials.standard_nacl_article}}