Write a plugin

API functions
Compile plugin
Load plugin into WeeChat
Plugin example

The plugin has to include "weechat-plugin.h" file (available in WeeChat source code). This file defines structures and types used to communicate with WeeChat.

The plugin must have some variables and functions (mandatory, without them the plugin can't load):

VariableDescription
char plugin_name[]plugin name
char plugin_version[]plugin version
char plugin_description[]short description of plugin

FunctionDescription
int weechat_plugin_init (t_weechat_plugin *plugin) function called when plugin is loaded, must return PLUGIN_RC_OK if successful, PLUGIN_RC_KO if error (if error, plugin will NOT be loaded)
void weechat_plugin_end (t_weechat_plugin *plugin)function called when plugin is unloaded