From 9acdb2720b7afe82c804725db816d0914bc74648 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Mon, 4 Jan 2021 21:06:00 +0100 Subject: weechat: Update weechat-plugin.h --- weechat/weechat-plugin.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/weechat/weechat-plugin.h b/weechat/weechat-plugin.h index 44c74ea..8a6f7c3 100644 --- a/weechat/weechat-plugin.h +++ b/weechat/weechat-plugin.h @@ -67,7 +67,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 "20200621-01" +#define WEECHAT_PLUGIN_API_VERSION "20201004-01" /* macros for defining plugin infos */ #define WEECHAT_PLUGIN_NAME(__name) \ @@ -334,6 +334,7 @@ struct t_weechat_plugin char **(*string_split_command) (const char *command, char separator); void (*string_free_split_command) (char **split_command); char *(*string_format_size) (unsigned long long size); + int (*string_color_code_size) (const char *string); char *(*string_remove_color) (const char *string, const char *replacement); int (*string_base_encode) (int base, const char *from, int length, char *to); @@ -349,7 +350,7 @@ struct t_weechat_plugin struct t_hashtable *options); char **(*string_dyn_alloc) (int size_alloc); int (*string_dyn_copy) (char **string, const char *new_string); - int (*string_dyn_concat) (char **string, const char *add); + int (*string_dyn_concat) (char **string, const char *add, int bytes); char *(*string_dyn_free) (char **string, int free_string); /* UTF-8 strings */ @@ -1265,6 +1266,8 @@ extern int weechat_plugin_end (struct t_weechat_plugin *plugin); (weechat_plugin->string_free_split_command)(__split_command) #define weechat_string_format_size(__size) \ (weechat_plugin->string_format_size)(__size) +#define weechat_string_color_code_size(__string) \ + (weechat_plugin->string_color_code_size)(__string) #define weechat_string_remove_color(__string, __replacement) \ (weechat_plugin->string_remove_color)(__string, __replacement) #define weechat_string_base_encode(__base, __from, __length, __to) \ @@ -1289,8 +1292,8 @@ extern int weechat_plugin_end (struct t_weechat_plugin *plugin); (weechat_plugin->string_dyn_alloc)(__size_alloc) #define weechat_string_dyn_copy(__string, __new_string) \ (weechat_plugin->string_dyn_copy)(__string, __new_string) -#define weechat_string_dyn_concat(__string, __add) \ - (weechat_plugin->string_dyn_concat)(__string, __add) +#define weechat_string_dyn_concat(__string, __add, __bytes) \ + (weechat_plugin->string_dyn_concat)(__string, __add, __bytes) #define weechat_string_dyn_free(__string, __free_string) \ (weechat_plugin->string_dyn_free)(__string, __free_string) -- cgit v1.2.3-70-g09d2