Mercurial > dovecot > core-2.2
view src/lib-mail/message-content-parser.h @ 898:0d5be52d7131 HEAD
Use unsigned char* when accessing non-NUL terminating strings. Compiler
warnings would then notify about accidentally passing them to functions which
require them NUL-terminated. Changed a few functions to use void* to avoid
unneeded casting.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 04 Jan 2003 19:26:29 +0200 |
parents | 21ffcce83c70 |
children | 411006be3c66 |
line wrap: on
line source
#ifndef __MESSAGE_CONTENT_PARSER_H #define __MESSAGE_CONTENT_PARSER_H /* NOTE: name and value aren't \0-terminated. */ typedef void (*ParseContentFunc)(const unsigned char *value, size_t value_len, void *context); typedef void (*ParseContentParamFunc)(const unsigned char *name, size_t name_len, const unsigned char *value, size_t value_len, int value_quoted, void *context); void message_content_parse_header(const unsigned char *data, size_t size, ParseContentFunc func, ParseContentParamFunc param_func, void *context); #endif