summaryrefslogtreecommitdiff
path: root/src/plugins/weechat-plugin.h
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2020-08-23 23:27:57 +0200
committerSébastien Helleu <flashcode@flashtux.org>2020-08-23 23:27:57 +0200
commitcfd221014c1e5337ec14503430c98ca620024f81 (patch)
treedab43957d533958230c6bf8471c86526825bf47f /src/plugins/weechat-plugin.h
parentb459dab84bcc2fa30634c083c931797e3ca6f4f6 (diff)
downloadweechat-cfd221014c1e5337ec14503430c98ca620024f81.zip
api: add argument "bytes" in function string_dyn_concat
Diffstat (limited to 'src/plugins/weechat-plugin.h')
-rw-r--r--src/plugins/weechat-plugin.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/weechat-plugin.h b/src/plugins/weechat-plugin.h
index b8cf10456..e2ba4cec2 100644
--- a/src/plugins/weechat-plugin.h
+++ b/src/plugins/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 "20200822-01"
+#define WEECHAT_PLUGIN_API_VERSION "20200823-01"
/* macros for defining plugin infos */
#define WEECHAT_PLUGIN_NAME(__name) \
@@ -350,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 */
@@ -1292,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)