mirror of
https://github.com/weechat/weechat.git
synced 2026-06-12 14:14:48 +02:00
Add some API functions in Developer guide
This commit is contained in:
@@ -38,21 +38,19 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
<listitem>
|
||||
<para>
|
||||
Debian (oder Debian-kompatible):
|
||||
<userinput>apt-get install weechat</userinput>
|
||||
<screen><userinput>apt-get install weechat</userinput></screen>
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
Mandriva/RedHat (oder jede RPM-kompatible Distribution):
|
||||
<userinput>
|
||||
rpm -i /path/to/weechat-x.y.z-1.i386.rpm
|
||||
</userinput>
|
||||
<screen><userinput>rpm -i /path/to/weechat-x.y.z-1.i386.rpm</userinput></screen>
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
Gentoo:
|
||||
<userinput>emerge weechat</userinput>
|
||||
<screen><userinput>emerge weechat</userinput></screen>
|
||||
</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
|
||||
+1118
-68
File diff suppressed because it is too large
Load Diff
@@ -37,21 +37,19 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
<listitem>
|
||||
<para>
|
||||
Debian (or any Debian compatible distribution):
|
||||
<userinput>apt-get install weechat</userinput>
|
||||
<screen><userinput>apt-get install weechat</userinput></screen>
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
Mandriva/RedHat (or any RPM compatible distribution):
|
||||
<userinput>
|
||||
rpm -i /path/to/weechat-x.y.z-1.i386.rpm
|
||||
</userinput>
|
||||
<screen><userinput>rpm -i /path/to/weechat-x.y.z-1.i386.rpm</userinput></screen>
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
Gentoo :
|
||||
<userinput>emerge weechat</userinput>
|
||||
<screen><userinput>emerge weechat</userinput></screen>
|
||||
</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
|
||||
@@ -38,21 +38,19 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
<listitem>
|
||||
<para>
|
||||
Debian (ou toute distribution compatible Debian) :
|
||||
<userinput>apt-get install weechat</userinput>
|
||||
<screen><userinput>apt-get install weechat</userinput></screen>
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
Mandriva/RedHat (ou toute distribution compatible avec les RPM) :
|
||||
<userinput>
|
||||
rpm -i /chemin/vers/weechat-x.y.z-1.i386.rpm
|
||||
</userinput>
|
||||
<screen><userinput>rpm -i /chemin/vers/weechat-x.y.z-1.i386.rpm</userinput></screen>
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
Gentoo :
|
||||
<userinput>emerge weechat</userinput>
|
||||
<screen><userinput>emerge weechat</userinput></screen>
|
||||
</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
|
||||
@@ -173,7 +173,7 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
|
||||
irc_server_auto_connect (auto_connect);
|
||||
|
||||
irc_hook_timer = weechat_hook_timer (1 * 1000, 0, 0,
|
||||
&irc_server_timer_cb, NULL);
|
||||
&irc_server_timer_cb, NULL);
|
||||
|
||||
return WEECHAT_RC_OK;
|
||||
}
|
||||
|
||||
@@ -328,18 +328,24 @@ struct t_weechat_plugin
|
||||
char **argv_eol),
|
||||
void *callback_data);
|
||||
struct t_hook *(*hook_timer) (struct t_weechat_plugin *plugin,
|
||||
long interval, int align_second,
|
||||
long interval,
|
||||
int align_second,
|
||||
int max_calls,
|
||||
int (*callback)(void *data),
|
||||
void *callback_data);
|
||||
struct t_hook *(*hook_fd) (struct t_weechat_plugin *plugin,
|
||||
int fd, int flag_read, int flag_write,
|
||||
int fd,
|
||||
int flag_read,
|
||||
int flag_write,
|
||||
int flag_exception,
|
||||
int (*callback)(void *data),
|
||||
void *callback_data);
|
||||
struct t_hook *(*hook_connect) (struct t_weechat_plugin *plugin,
|
||||
const char *address, int port,
|
||||
int sock, int ipv6, void *gnutls_sess,
|
||||
const char *address,
|
||||
int port,
|
||||
int sock,
|
||||
int ipv6,
|
||||
void *gnutls_sess,
|
||||
const char *local_hostname,
|
||||
int (*callback)(void *data,
|
||||
int status,
|
||||
@@ -347,7 +353,8 @@ struct t_weechat_plugin
|
||||
void *callback_data);
|
||||
struct t_hook *(*hook_print) (struct t_weechat_plugin *plugin,
|
||||
struct t_gui_buffer *buffer,
|
||||
const char *tags, const char *message,
|
||||
const char *tags,
|
||||
const char *message,
|
||||
int strip_colors,
|
||||
int (*callback)(void *data,
|
||||
struct t_gui_buffer *buffer,
|
||||
@@ -380,7 +387,8 @@ struct t_weechat_plugin
|
||||
struct t_gui_completion *completion),
|
||||
void *callback_data);
|
||||
void (*hook_completion_list_add) (struct t_gui_completion *completion,
|
||||
const char *word, int nick_completion,
|
||||
const char *word,
|
||||
int nick_completion,
|
||||
const char *where);
|
||||
struct t_hook *(*hook_modifier) (struct t_weechat_plugin *plugin,
|
||||
const char *modifier,
|
||||
|
||||
Reference in New Issue
Block a user