mirror of
https://github.com/weechat/weechat.git
synced 2026-07-03 08:13:14 +02:00
api: add functions string_base_{encode,decode}, remove functions string_{encode,decode}_base64
This commit is contained in:
@@ -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 "20181102-01"
|
||||
#define WEECHAT_PLUGIN_API_VERSION "20181104-01"
|
||||
|
||||
/* macros for defining plugin infos */
|
||||
#define WEECHAT_PLUGIN_NAME(__name) \
|
||||
@@ -323,8 +323,9 @@ struct t_weechat_plugin
|
||||
void (*string_free_split_command) (char **split_command);
|
||||
char *(*string_format_size) (unsigned long long size);
|
||||
char *(*string_remove_color) (const char *string, const char *replacement);
|
||||
int (*string_encode_base64) (const char *from, int length, char *to);
|
||||
int (*string_decode_base64) (const char *from, char *to);
|
||||
int (*string_base_encode) (int base, const char *from, int length,
|
||||
char *to);
|
||||
int (*string_base_decode) (int base, const char *from, char *to);
|
||||
char *(*string_hex_dump) (const char *data, int data_size,
|
||||
int bytes_per_line, const char *prefix,
|
||||
const char *suffix);
|
||||
@@ -1224,10 +1225,11 @@ extern int weechat_plugin_end (struct t_weechat_plugin *plugin);
|
||||
(weechat_plugin->string_format_size)(__size)
|
||||
#define weechat_string_remove_color(__string, __replacement) \
|
||||
(weechat_plugin->string_remove_color)(__string, __replacement)
|
||||
#define weechat_string_encode_base64(__from, __length, __to) \
|
||||
(weechat_plugin->string_encode_base64)(__from, __length, __to)
|
||||
#define weechat_string_decode_base64(__from, __to) \
|
||||
(weechat_plugin->string_decode_base64)(__from, __to)
|
||||
#define weechat_string_base_encode(__base, __from, __length, __to) \
|
||||
(weechat_plugin->string_base_encode)(__base, __from, __length, \
|
||||
__to)
|
||||
#define weechat_string_base_decode(__base, __from, __to) \
|
||||
(weechat_plugin->string_base_decode)(__base, __from, __to)
|
||||
#define weechat_string_hex_dump(__data, __data_size, __bytes_per_line, \
|
||||
__prefix, __suffix) \
|
||||
(weechat_plugin->string_hex_dump)(__data, __data_size, \
|
||||
|
||||
Reference in New Issue
Block a user