diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2015-08-18 07:36:48 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2015-08-18 07:36:48 +0200 |
commit | 46a9d17ac331b1df9fbd33a7c23f87fd58246a2e (patch) | |
tree | 1a4bd97bade2b4977683fa2c07f639ace3f5e5c0 /src/plugins | |
parent | fd1886e883968dbf372157644ce5664e75a6ff4b (diff) | |
download | weechat-46a9d17ac331b1df9fbd33a7c23f87fd58246a2e.zip |
api: add argument "length" in function utf8_is_valid()
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/weechat-plugin.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/weechat-plugin.h b/src/plugins/weechat-plugin.h index 31ed0fcfe..ca3e9f86b 100644 --- a/src/plugins/weechat-plugin.h +++ b/src/plugins/weechat-plugin.h @@ -57,7 +57,7 @@ struct timeval; * please change the date with current one; for a second change at same * date, increment the 01, otherwise please keep 01. */ -#define WEECHAT_PLUGIN_API_VERSION "20150704-02" +#define WEECHAT_PLUGIN_API_VERSION "20150818-01" /* macros for defining plugin infos */ #define WEECHAT_PLUGIN_NAME(__name) \ @@ -317,7 +317,7 @@ struct t_weechat_plugin /* UTF-8 strings */ int (*utf8_has_8bits) (const char *string); - int (*utf8_is_valid) (const char *string, char **error); + int (*utf8_is_valid) (const char *string, int length, char **error); void (*utf8_normalize) (char *string, char replacement); const char *(*utf8_prev_char) (const char *string_start, const char *string); @@ -1110,8 +1110,8 @@ extern int weechat_plugin_end (struct t_weechat_plugin *plugin); /* UTF-8 strings */ #define weechat_utf8_has_8bits(__string) \ (weechat_plugin->utf8_has_8bits)(__string) -#define weechat_utf8_is_valid(__string, __error) \ - (weechat_plugin->utf8_is_valid)(__string, __error) +#define weechat_utf8_is_valid(__string, __length, __error) \ + (weechat_plugin->utf8_is_valid)(__string, __length, __error) #define weechat_utf8_normalize(__string, __char) \ (weechat_plugin->utf8_normalize)(__string, __char) #define weechat_utf8_prev_char(__start, __string) \ |