comparison mcabber/mcabber/commands.h @ 1668:41c26b7d2890

Install mcabber headers * Change mcabber headers naming scheme * Move 'src/' -> 'mcabber/' * Add missing include <mcabber/config.h>'s * Create and install clean config.h version in 'include/' * Move "dirty" config.h version to 'mcabber/' * Add $(top_srcdir) to compiler include path * Update modules HOWTO
author Myhailo Danylenko <isbear@ukrpost.net>
date Mon, 18 Jan 2010 15:36:19 +0200
parents mcabber/src/commands.h@fca9a4c17432
children 391863b7952c
comparison
equal deleted inserted replaced
1667:8af0e0ad20ad 1668:41c26b7d2890
1 #ifndef __MCABBER_COMMANDS_H__
2 #define __MCABBER_COMMANDS_H__ 1
3
4 #include <glib.h>
5
6 #include <mcabber/config.h>
7
8 // Command structure
9 typedef struct {
10 char name[32];
11 const char *help;
12 guint completion_flags[2];
13 void (*func)(char *);
14 #ifdef MODULES_ENABLE
15 gpointer userdata;
16 #endif
17 } cmd;
18
19 void cmd_init(void);
20 cmd *cmd_get(const char *command);
21 int process_line(const char *line);
22 int process_command(const char *line, guint iscmd);
23 char *expandalias(const char *line);
24 #ifdef MODULES_ENABLE
25 void cmd_deinit(void);
26 gpointer cmd_del(const char *name);
27 void cmd_add(const char *name, const char *help, guint flags1, guint flags2, void (*f)(char*), gpointer userdata);
28 #endif
29
30 void cmd_room_whois(gpointer bud, char *nick_locale, guint interactive);
31 void cmd_room_leave(gpointer bud, char *arg);
32 void cmd_setstatus(const char *recipient, const char *arg);
33
34 #endif /* __MCABBER_COMMANDS_H__ */
35
36 /* vim: set expandtab cindent cinoptions=>2\:2(0: For Vim users... */