| Server IP : 182.53.201.61 / Your IP : 216.73.217.175 Web Server : Apache/2.2.15 (Fedora) System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686 User : apache ( 48) PHP Version : 5.3.3 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/gtk-doc/html/camel/ |
Upload File : |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>CamelStreamFs</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="index.html" title="Camel Reference Manual">
<link rel="up" href="Streams.html" title="Streams">
<link rel="prev" href="camel-CamelStreamFilter.html" title="CamelStreamFilter">
<link rel="next" href="camel-CamelStreamMem.html" title="CamelStreamMem">
<meta name="generator" content="GTK-Doc V1.11 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="part" href="classes.html" title="Part I. Camel Classes">
<link rel="chapter" href="ClassTree.html" title="Class Hierarchy">
<link rel="chapter" href="Fundamentals.html" title="Fundamentals">
<link rel="chapter" href="Streams.html" title="Streams">
<link rel="chapter" href="StreamFilters.html" title="Stream Filters">
<link rel="chapter" href="Services.html" title="Services">
<link rel="chapter" href="Filters.html" title="Filters">
<link rel="chapter" href="Folders.html" title="Folders">
<link rel="chapter" href="SearchFolders.html" title="Search Folders">
<link rel="chapter" href="Addresses.html" title="Addresses">
<link rel="chapter" href="Crypto.html" title="Crypto Contexts">
<link rel="chapter" href="MIME.html" title="MIME Objects">
<link rel="chapter" href="Storage.html" title="Metadata Storage">
<link rel="chapter" href="Utilities.html" title="Utilities">
<link rel="chapter" href="Deprecated.html" title="Deprecated Objects">
<link rel="index" href="ix01.html" title="Index">
<link rel="index" href="ix02.html" title="Index of deprecated symbols">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="camel-CamelStreamFilter.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="Streams.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">Camel Reference Manual</th>
<td><a accesskey="n" href="camel-CamelStreamMem.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#camel-CamelStreamFs.synopsis" class="shortcut">Top</a>
|
<a href="#camel-CamelStreamFs.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry" title="CamelStreamFs">
<a name="camel-CamelStreamFs"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="camel-CamelStreamFs.top_of_page"></a>CamelStreamFs</span></h2>
<p>CamelStreamFs</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv" title="Synopsis">
<a name="camel-CamelStreamFs.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
struct <a class="link" href="camel-CamelStreamFs.html#CamelStreamFs" title="struct CamelStreamFs">CamelStreamFs</a>;
<a class="link" href="camel-CamelStream.html#CamelStream" title="struct CamelStream">CamelStream</a> * <a class="link" href="camel-CamelStreamFs.html#camel-stream-fs-new-with-name" title="camel_stream_fs_new_with_name ()">camel_stream_fs_new_with_name</a> (const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *name,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> flags,
mode_t mode);
<a class="link" href="camel-CamelStream.html#CamelStream" title="struct CamelStream">CamelStream</a> * <a class="link" href="camel-CamelStreamFs.html#camel-stream-fs-new-with-name-and-bounds" title="camel_stream_fs_new_with_name_and_bounds ()">camel_stream_fs_new_with_name_and_bounds</a>
(const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *name,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> flags,
mode_t mode,
off_t start,
off_t end);
<a class="link" href="camel-CamelStream.html#CamelStream" title="struct CamelStream">CamelStream</a> * <a class="link" href="camel-CamelStreamFs.html#camel-stream-fs-new-with-fd" title="camel_stream_fs_new_with_fd ()">camel_stream_fs_new_with_fd</a> (<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> fd);
<a class="link" href="camel-CamelStream.html#CamelStream" title="struct CamelStream">CamelStream</a> * <a class="link" href="camel-CamelStreamFs.html#camel-stream-fs-new-with-fd-and-bounds" title="camel_stream_fs_new_with_fd_and_bounds ()">camel_stream_fs_new_with_fd_and_bounds</a>
(<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> fd,
off_t start,
off_t end);
</pre>
</div>
<div class="refsect1" title="Description">
<a name="camel-CamelStreamFs.description"></a><h2>Description</h2>
<p>
</p>
</div>
<div class="refsect1" title="Details">
<a name="camel-CamelStreamFs.details"></a><h2>Details</h2>
<div class="refsect2" title="struct CamelStreamFs">
<a name="CamelStreamFs"></a><h3>struct CamelStreamFs</h3>
<pre class="programlisting">struct CamelStreamFs {
CamelSeekableStream parent_object;
gint fd; /* file descriptor on the underlying file */
};
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2" title="camel_stream_fs_new_with_name ()">
<a name="camel-stream-fs-new-with-name"></a><h3>camel_stream_fs_new_with_name ()</h3>
<pre class="programlisting"><a class="link" href="camel-CamelStream.html#CamelStream" title="struct CamelStream">CamelStream</a> * camel_stream_fs_new_with_name (const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *name,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> flags,
mode_t mode);</pre>
<p>
Creates a new <a class="link" href="camel-CamelStreamFs.html#CamelStreamFs" title="struct CamelStreamFs"><span class="type">CamelStreamFs</span></a> corresponding to the named file, flags,
and mode.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td> a local filename
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
<td> flags as in open(2)
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>mode</code></em> :</span></p></td>
<td> a file mode
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the new stream, or <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL--CAPS"
><code class="literal">NULL</code></a> on error.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="camel_stream_fs_new_with_name_and_bounds ()">
<a name="camel-stream-fs-new-with-name-and-bounds"></a><h3>camel_stream_fs_new_with_name_and_bounds ()</h3>
<pre class="programlisting"><a class="link" href="camel-CamelStream.html#CamelStream" title="struct CamelStream">CamelStream</a> * camel_stream_fs_new_with_name_and_bounds
(const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *name,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> flags,
mode_t mode,
off_t start,
off_t end);</pre>
<p>
Creates a new CamelStream corresponding to the given arguments.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td> a local filename
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
<td> flags as in open(2)
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>mode</code></em> :</span></p></td>
<td> a file mode
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>start</code></em> :</span></p></td>
<td> the first valid position in the file
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>end</code></em> :</span></p></td>
<td> the first invalid position in the file, or <a class="link" href="camel-CamelSeekableStream.html#CAMEL-STREAM-UNBOUND--CAPS" title="CAMEL_STREAM_UNBOUND"><span class="type">CAMEL_STREAM_UNBOUND</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the stream, or <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL--CAPS"
><code class="literal">NULL</code></a> on error.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="camel_stream_fs_new_with_fd ()">
<a name="camel-stream-fs-new-with-fd"></a><h3>camel_stream_fs_new_with_fd ()</h3>
<pre class="programlisting"><a class="link" href="camel-CamelStream.html#CamelStream" title="struct CamelStream">CamelStream</a> * camel_stream_fs_new_with_fd (<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> fd);</pre>
<p>
Creates a new fs stream using the given file descriptor <em class="parameter"><code>fd</code></em> as the
backing store. When the stream is destroyed, the file descriptor
will be closed.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>fd</code></em> :</span></p></td>
<td> a file descriptor
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> a new <a class="link" href="camel-CamelStreamFs.html#CamelStreamFs" title="struct CamelStreamFs"><span class="type">CamelStreamFs</span></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="camel_stream_fs_new_with_fd_and_bounds ()">
<a name="camel-stream-fs-new-with-fd-and-bounds"></a><h3>camel_stream_fs_new_with_fd_and_bounds ()</h3>
<pre class="programlisting"><a class="link" href="camel-CamelStream.html#CamelStream" title="struct CamelStream">CamelStream</a> * camel_stream_fs_new_with_fd_and_bounds
(<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> fd,
off_t start,
off_t end);</pre>
<p>
Gets a stream associated with the given file descriptor and bounds.
When the stream is destroyed, the file descriptor will be closed.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>fd</code></em> :</span></p></td>
<td> a file descriptor
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>start</code></em> :</span></p></td>
<td> the first valid position in the file
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>end</code></em> :</span></p></td>
<td> the first invalid position in the file, or <a class="link" href="camel-CamelSeekableStream.html#CAMEL-STREAM-UNBOUND--CAPS" title="CAMEL_STREAM_UNBOUND"><span class="type">CAMEL_STREAM_UNBOUND</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the bound stream
</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.11</div>
</body>
</html>