comparison mcabber/src/commands.h @ 104:fe7257d251ac

[/trunk] Changeset 118 by mikael * Commands are ready. Callback system in place. * Implement /roster callback :) * Completion is case-insensitive (good idea??)
author mikael
date Thu, 21 Apr 2005 20:22:35 +0000
parents 2b4cc6bc5bf2
children 8e30b2bb380e
comparison
equal deleted inserted replaced
103:93dcc4e15d4a 104:fe7257d251ac
6 // Command structure 6 // Command structure
7 typedef struct { 7 typedef struct {
8 char name[32]; 8 char name[32];
9 const char *help; 9 const char *help;
10 guint completion_flags[2]; 10 guint completion_flags[2];
11 void *(*func)(); 11 void (*func)();
12 } cmd; 12 } cmd;
13 13
14 void cmd_init(void); 14 void cmd_init(void);
15 cmd *cmd_get(char *command); 15 cmd *cmd_get(char *command);
16 int process_line(char *line); 16 int process_line(char *line);