![]() |
![]() |
![]() |
Reference Manual of the tinymail framework | ![]() |
---|---|---|---|---|
TnyStreamCamelTnyStreamCamel — A CamelStream as adaptor for a TnyStream |
#define TNY_TYPE_STREAM_CAMEL_STREAM #define TNY_TYPE_STREAM_CAMEL #define TNY_STREAM_CAMEL (obj) #define TNY_STREAM_CAMEL_CLASS (k) TnyStreamCamel; CamelType tny_stream_camel_get_type (void); CamelStream* tny_stream_camel_new (TnyStream *stream); void tny_stream_camel_set_stream (TnyStreamCamel *self, TnyStream *stream); gssize tny_stream_camel_write_to_stream (TnyStreamCamel *self, TnyStream *output);
This type adapts the TnyStream to a CamelStream. It's used in the libtinymail-camel implementation library for converting a TnyStream to a CamelStream.
#define TNY_STREAM_CAMEL(obj) (CAMEL_CHECK_CAST((obj), TNY_TYPE_STREAM_CAMEL_STREAM, TnyStreamCamel))
|
#define TNY_STREAM_CAMEL_CLASS(k) (CAMEL_CHECK_CLASS_CAST ((k), TNY_TYPE_STREAM_CAMEL_STREAM, TnyStreamCamelClass))
|
CamelType tny_stream_camel_get_type (void);
CamelType system helper function
Returns : |
a CamelType |
CamelStream* tny_stream_camel_new (TnyStream *stream);
Create a new CamelStream instance implemented as a proxy for a TnyStream
void tny_stream_camel_set_stream (TnyStreamCamel *self, TnyStream *stream);
Set the stream to play proxy for
|
A TnyStreamCamel object |
|
A TnyStream object |
gssize tny_stream_camel_write_to_stream (TnyStreamCamel *self, TnyStream *output);
Write self to output (copy it) in an efficient way
|
a TnyCamelStream object |
|
a TnyStream object to write to |
Returns : |
the number of bytes written to the output stream, or -1 on error along with setting errno. |