summaryrefslogtreecommitdiff
path: root/src/plugins/weechat-plugin.h
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2021-07-03 16:04:50 +0200
committerSébastien Helleu <flashcode@flashtux.org>2021-07-03 16:04:50 +0200
commit8a11a18dc56d1f77661e84fe470e34f9b3bcdb11 (patch)
tree7bda9d4dd6515e35dc1cc4835cc10ea98d67c0e1 /src/plugins/weechat-plugin.h
parent9432b44a2b73acddcb3cc9ac2568a6c1e86204bc (diff)
downloadweechat-8a11a18dc56d1f77661e84fe470e34f9b3bcdb11.zip
api: add function file_copy (issue #1667)
Diffstat (limited to 'src/plugins/weechat-plugin.h')
-rw-r--r--src/plugins/weechat-plugin.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/weechat-plugin.h b/src/plugins/weechat-plugin.h
index 9eb42f7e9..b509e952e 100644
--- a/src/plugins/weechat-plugin.h
+++ b/src/plugins/weechat-plugin.h
@@ -68,7 +68,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 "20210601-01"
+#define WEECHAT_PLUGIN_API_VERSION "20210703-01"
/* macros for defining plugin infos */
#define WEECHAT_PLUGIN_NAME(__name) \
@@ -395,6 +395,7 @@ struct t_weechat_plugin
void (*callback)(void *data, const char *filename),
void *callback_data);
char *(*file_get_content) (const char *filename);
+ int (*file_copy) (const char *from, const char *to);
/* util */
int (*util_timeval_cmp) (struct timeval *tv1, struct timeval *tv2);
@@ -1374,6 +1375,8 @@ extern int weechat_plugin_end (struct t_weechat_plugin *plugin);
__callback, __callback_data)
#define weechat_file_get_content(__filename) \
(weechat_plugin->file_get_content)(__filename)
+#define weechat_file_copy(__from, __to) \
+ (weechat_plugin->file_copy)(__from, __to)
/* util */
#define weechat_util_timeval_cmp(__time1, __time2) \