1 <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Advanced File Operations</title><meta name="generator" content="DocBook XSL Stylesheets V1.61.0"><meta name="generator" content="GTK-Doc V1.1 (XML mode)"><style type="text/css">
2 .synopsis, .classsynopsis {
4 border: solid 1px #aaaaaa;
9 border: solid 1px #aaaaff;
18 border: solid 1px #ffaaaa;
25 .navigation a:visited {
31 </style><link rel="home" href="index.html" title="GnomeVFS - Filesystem Abstraction library"><link rel="up" href="gnome-vfs-file-operations.html" title="File Handling"><link rel="previous" href="gnome-vfs-20-gnome-vfs-file-trunc-ops.html" title="Truncating Files"><link rel="next" href="gnome-vfs-20-gnome-vfs-async-ops.html" title="Asynchronous File Operations"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="gnome-vfs-20-gnome-vfs-file-trunc-ops.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="gnome-vfs-file-operations.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GnomeVFS - Filesystem Abstraction library</th><td><a accesskey="n" href="gnome-vfs-20-gnome-vfs-async-ops.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="gnome-vfs-20-gnome-vfs-file-advanced-ops"></a><div class="titlepage"><div></div><div></div></div><div class="refnamediv"><h2><span class="refentrytitle">Advanced File Operations</span></h2><p>Advanced File Operations — </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
35 <a href="gnome-vfs-20-gnome-vfs-result.html#GnomeVFSResult">GnomeVFSResult</a> <a href="gnome-vfs-20-gnome-vfs-file-advanced-ops.html#gnome-vfs-file-control">gnome_vfs_file_control</a> (GnomeVFSHandle *handle,
36 const char *operation,
38 href="../glib/glib-Basic-Types.html#gpointer"
39 >gpointer</a> operation_data);
40 </pre></div><div class="refsect1" lang="en"><h2>Description</h2><p>
42 </p></div><div class="refsect1" lang="en"><h2>Details</h2><div class="refsect2" lang="en"><h3><a name="gnome-vfs-file-control"></a>gnome_vfs_file_control ()</h3><a class="indexterm" name="id2902771"></a><pre class="programlisting"><a href="gnome-vfs-20-gnome-vfs-result.html#GnomeVFSResult">GnomeVFSResult</a> gnome_vfs_file_control (GnomeVFSHandle *handle,
43 const char *operation,
45 href="../glib/glib-Basic-Types.html#gpointer"
46 >gpointer</a> operation_data);</pre><p>
47 Execute a backend dependent operation specified by the string <i class="parameter"><tt>operation</tt></i>.
48 This is typically used for specialized vfs backends that need additional
49 operations that gnome-vfs doesn't have. Compare it to the unix call <tt class="function">ioctl()</tt>.
50 The format of <i class="parameter"><tt>operation_data</tt></i> depends on the operation. Operation that are
51 backend specific are normally namespaced by their module name.</p><p>
53 </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>handle</tt></i> :</span></td><td> handle of the file to affect
54 </td></tr><tr><td><span class="term"><i class="parameter"><tt>operation</tt></i> :</span></td><td> The operation to execute
55 </td></tr><tr><td><span class="term"><i class="parameter"><tt>operation_data</tt></i> :</span></td><td> The data needed to execute the operation
56 </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td> an integer representing the success of the operation
57 </td></tr></tbody></table></div></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="gnome-vfs-20-gnome-vfs-file-trunc-ops.html"><b><< Truncating Files</b></a></td><td align="right"><a accesskey="n" href="gnome-vfs-20-gnome-vfs-async-ops.html"><b>Asynchronous File Operations >></b></a></td></tr></table></body></html>