GMime 2.4 Reference Manual | ||||
---|---|---|---|---|
GMimeFilter; GMimeFilter* g_mime_filter_copy (GMimeFilter *filter); void g_mime_filter_filter (GMimeFilter *filter, char *inbuf, size_t inlen, size_t prespace, char **outbuf, size_t *outlen, size_t *outprespace); void g_mime_filter_complete (GMimeFilter *filter, char *inbuf, size_t inlen, size_t prespace, char **outbuf, size_t *outlen, size_t *outprespace); void g_mime_filter_reset (GMimeFilter *filter); void g_mime_filter_backup (GMimeFilter *filter, const char *data, size_t length); void g_mime_filter_set_size (GMimeFilter *filter, size_t size, gboolean keep);
GObject +----GMimeFilter +----GMimeFilterBasic +----GMimeFilterBest +----GMimeFilterCharset +----GMimeFilterCRLF +----GMimeFilterEnriched +----GMimeFilterFrom +----GMimeFilterGZip +----GMimeFilterHTML +----GMimeFilterMd5 +----GMimeFilterStrip +----GMimeFilterWindows +----GMimeFilterYenc
typedef struct _GMimeFilter GMimeFilter;
Base class for filters used by GMimeStreamFilter.
GMimeFilter* g_mime_filter_copy (GMimeFilter *filter);
Copies filter
into a new GMimeFilter object.
|
filter |
Returns : |
a duplicate of filter .
|
void g_mime_filter_filter (GMimeFilter *filter, char *inbuf, size_t inlen, size_t prespace, char **outbuf, size_t *outlen, size_t *outprespace);
Filters the input data and writes it to out
.
|
filter |
|
input buffer |
|
input buffer length |
|
prespace buffer length |
|
pointer to output buffer |
|
pointer to output length |
|
pointer to output prespace buffer length |
void g_mime_filter_complete (GMimeFilter *filter, char *inbuf, size_t inlen, size_t prespace, char **outbuf, size_t *outlen, size_t *outprespace);
Completes the filtering.
|
filter |
|
input buffer |
|
input buffer length |
|
prespace buffer length |
|
pointer to output buffer |
|
pointer to output length |
|
pointer to output prespace buffer length |
void g_mime_filter_reset (GMimeFilter *filter);
Resets the filter.
|
a GMimeFilter object |
void g_mime_filter_backup (GMimeFilter *filter, const char *data, size_t length);
Sets number of bytes backed up on the input, new calls replace previous ones
|
filter |
|
data to backup |
|
length of data
|
void g_mime_filter_set_size (GMimeFilter *filter, size_t size, gboolean keep);
Ensure this much size is available for filter output (if required)
|
filter |
|
requested size for the output buffer |
|
TRUE if existing data in the output buffer should be kept
|