diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2009-06-14 18:18:52 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2009-06-14 18:18:52 +0200 |
commit | bf2b06bb032dbdd43f7839591325d36d24fa6150 (patch) | |
tree | 3c5ab5dd17f8b98798ac7b6b0834cd4768092cd0 | |
parent | 92940e52f1e30e4021555deefbf16ffd0e318c1b (diff) | |
download | weechat-bf2b06bb032dbdd43f7839591325d36d24fa6150.zip |
Remove obsolete macro in plugin API reference
-rw-r--r-- | doc/en/weechat_plugin_api.en.txt | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/doc/en/weechat_plugin_api.en.txt b/doc/en/weechat_plugin_api.en.txt index 5d7c02c92..aedaec6c7 100644 --- a/doc/en/weechat_plugin_api.en.txt +++ b/doc/en/weechat_plugin_api.en.txt @@ -41,7 +41,7 @@ This file defines structures and types used to communicate with WeeChat. Macros ~~~~~~ -The plugin must use some mandatory macros (to define some variables): +The plugin must use some macros (to define some variables): WEECHAT_PLUGIN_NAME("name"):: plugin name @@ -49,13 +49,9 @@ WEECHAT_PLUGIN_NAME("name"):: WEECHAT_PLUGIN_DESCRIPTION("description"):: short description of plugin -WEECHAT_PLUGIN_VERSION("0.1.2"):: +WEECHAT_PLUGIN_VERSION("1.0"):: plugin version -WEECHAT_PLUGIN_WEECHAT_VERSION("0.3.0"):: - target WeeChat version where plugin will run (warning: plugin will not run - on any other WeeChat version!) - WEECHAT_PLUGIN_LICENSE("GPL3"):: plugin license @@ -63,7 +59,10 @@ WEECHAT_PLUGIN_LICENSE("GPL3"):: Main functions ~~~~~~~~~~~~~~ -The plugin must use two mandatory functions. +The plugin must use two functions: + +* weechat_plugin_init +* weechat_plugin_end weechat_plugin_init ^^^^^^^^^^^^^^^^^^^ @@ -156,7 +155,6 @@ WEECHAT_PLUGIN_NAME("double"); WEECHAT_PLUGIN_DESCRIPTION("Test plugin for WeeChat"); WEECHAT_PLUGIN_AUTHOR("FlashCode <flashcode@flashtux.org>"); WEECHAT_PLUGIN_VERSION("0.1"); -WEECHAT_PLUGIN_WEECHAT_VERSION("0.3.0"); WEECHAT_PLUGIN_LICENSE("GPL3"); struct t_weechat_plugin *weechat_plugin = NULL; @@ -165,8 +163,8 @@ struct t_weechat_plugin *weechat_plugin = NULL; /* "/double" command manager */ int -double_cmd (void *data, struct t_gui_buffer *buffer, int argc, - char **argv, char **argv_eol) +command_double_cb (void *data, struct t_gui_buffer *buffer, int argc, + char **argv, char **argv_eol) { /* make C compiler happy */ (void) data; @@ -193,7 +191,7 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, "msg", "msg: message to display two times", NULL, - &double_cmd, NULL); + &command_double_cb, NULL); return WEECHAT_RC_OK; } |