diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2008-02-04 10:07:19 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2008-02-04 10:07:19 +0100 |
commit | 763bb073b4710777c3083833c931290bdc5df066 (patch) | |
tree | bf211a68230f031912efd308eec5400d40118b96 /src/plugins/weechat-plugin.h | |
parent | 9f0b72279307337632f4c8af23b624971adf10c5 (diff) | |
download | weechat-763bb073b4710777c3083833c931290bdc5df066.zip |
Added string_tolower/upper in plugins API, added "name_lower_case" option in logger plugin (bug #19522)
The new option "name_lower_case" is "on" by default and will convert category/name to lower case for log filename.
Diffstat (limited to 'src/plugins/weechat-plugin.h')
-rw-r--r-- | src/plugins/weechat-plugin.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/weechat-plugin.h b/src/plugins/weechat-plugin.h index 34bda39d9..91112eb0c 100644 --- a/src/plugins/weechat-plugin.h +++ b/src/plugins/weechat-plugin.h @@ -95,6 +95,8 @@ struct t_weechat_plugin char *(*gettext) (char *string); char *(*ngettext) (char *single, char *plural, int count); char *(*strndup) (char *string, int length); + void (*string_tolower) (char *string); + void (*string_toupper) (char *string); int (*strcasecmp) (char *string1, char *string2); int (*strncasecmp) (char *string1, char *string2, int max); int (*strcmp_ignore_chars) (char *string1, char *string2, @@ -360,6 +362,10 @@ struct t_weechat_plugin weechat_plugin->ngettext(single, plural, number) #define weechat_strndup(__string, __length) \ weechat_plugin->strndup(__string, __length) +#define weechat_string_tolower(__string) \ + weechat_plugin->string_tolower(__string) +#define weechat_string_toupper(__string) \ + weechat_plugin->string_toupper(__string) #define weechat_strcasecmp(__string1, __string2) \ weechat_plugin->strcasecmp(__string1, __string2) #define weechat_strncasecmp(__string1, __string2, __max) \ |