diff options
author | Dmitry Stogov <dmitry@php.net> | 2010-12-08 11:27:34 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2010-12-08 11:27:34 +0000 |
commit | 755c2cd0d85b65f35abb2d54204fa7d38b820268 (patch) | |
tree | ef838511378253dc25cde13696c586bd328049c8 /main/rfc1867.h | |
parent | 088a6ad7b5ab5ea04af356ca8f6bb3183455eb66 (diff) | |
download | php-git-755c2cd0d85b65f35abb2d54204fa7d38b820268.tar.gz |
Removed compile time dependency from ext/mbstring
Diffstat (limited to 'main/rfc1867.h')
-rw-r--r-- | main/rfc1867.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/main/rfc1867.h b/main/rfc1867.h index 60fddf7837..d5067da48f 100644 --- a/main/rfc1867.h +++ b/main/rfc1867.h @@ -67,10 +67,23 @@ typedef struct _multipart_event_end { size_t post_bytes_processed; } multipart_event_end; +typedef int (*php_rfc1867_encoding_translation_t)(TSRMLS_D); +typedef int (*php_rfc1867_encoding_detector_t)(char **arg_string, int *arg_length, int num, char *arg_list TSRMLS_DC); +typedef int (*php_rfc1867_encoding_converter_t)(char **str, int *len, int num, const char *encoding_to, const char *encoding_from TSRMLS_DC); +typedef char* (*php_rfc1867_getword_t)(char *str TSRMLS_DC); +typedef char* (*php_rfc1867_basename_t)(char *str TSRMLS_DC); + SAPI_API SAPI_POST_HANDLER_FUNC(rfc1867_post_handler); void destroy_uploaded_files_hash(TSRMLS_D); void php_rfc1867_register_constants(TSRMLS_D); extern PHPAPI int (*php_rfc1867_callback)(unsigned int event, void *event_data, void **extra TSRMLS_DC); +SAPI_API void php_rfc1867_set_multibyte_callbacks( + php_rfc1867_encoding_translation_t encoding_translation, + php_rfc1867_encoding_detector_t encoding_detector, + php_rfc1867_encoding_converter_t encoding_converter, + php_rfc1867_getword_t getword, + php_rfc1867_basename_t basename); + #endif /* RFC1867_H */ |