![]() |
![]() |
![]() |
Camel Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces |
struct CamelStreamFs; CamelStream * camel_stream_fs_new_with_name (const
,gchar *name,
gint flags,
mode_t mode); CamelStream * camel_stream_fs_new_with_fd (
GError **error);
gint fdgint camel_stream_fs_get_fd (CamelStreamFs *stream
);
CamelStream * camel_stream_fs_new_with_name (const
,gchar *name,
gint flags,
mode_t mode);
GError **error
Creates a new CamelStreamFs corresponding to the named file, flags, and mode.
|
a local filename |
|
flags as in open(2) |
|
a file mode |
|
return location for a NULL |
Returns : |
the new stream, or NULL |
CamelStream * camel_stream_fs_new_with_fd (gint fd
);
Creates a new fs stream using the given file descriptor fd
as the
backing store. When the stream is destroyed, the file descriptor
will be closed.
|
a file descriptor |
Returns : |
a new CamelStreamFs |
gint camel_stream_fs_get_fd (CamelStreamFs *stream
);
|
a CamelStream |
Since 2.32