Mercurial > ~mikael > mcabber > hg
view mcabber/mcabber/commands.h @ 1731:4fbfae993c24
Improve login process
The roster and private storage elements are requested before broadcasting
our presence, because we want the roster before we receive our contacts
presence notifications.
This is more efficients, and also solves an issue with entity capabilities
(as we do not store caps for unknown items).
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sun, 28 Feb 2010 18:50:30 +0100 |
parents | 41c26b7d2890 |
children | 391863b7952c |
line wrap: on
line source
#ifndef __MCABBER_COMMANDS_H__ #define __MCABBER_COMMANDS_H__ 1 #include <glib.h> #include <mcabber/config.h> // Command structure typedef struct { char name[32]; const char *help; guint completion_flags[2]; void (*func)(char *); #ifdef MODULES_ENABLE gpointer userdata; #endif } cmd; void cmd_init(void); cmd *cmd_get(const char *command); int process_line(const char *line); int process_command(const char *line, guint iscmd); char *expandalias(const char *line); #ifdef MODULES_ENABLE void cmd_deinit(void); gpointer cmd_del(const char *name); void cmd_add(const char *name, const char *help, guint flags1, guint flags2, void (*f)(char*), gpointer userdata); #endif void cmd_room_whois(gpointer bud, char *nick_locale, guint interactive); void cmd_room_leave(gpointer bud, char *arg); void cmd_setstatus(const char *recipient, const char *arg); #endif /* __MCABBER_COMMANDS_H__ */ /* vim: set expandtab cindent cinoptions=>2\:2(0: For Vim users... */