view mcabber/src/commands.h @ 232:9a6ba4b38e63

[/trunk] Changeset 245 by mikael * Fix backspace handling (KEY_BACKSPACE isn't reliable) * UTF-8 locale detection * Display a warning when the locale is UTF-8 * Display log notice when sending a notification request message * Update TODO * Update INSTALL and mcabberrc.example files for better explanations
author mikael
date Wed, 08 Jun 2005 18:33:28 +0000
parents fe7257d251ac
children 8e30b2bb380e
line wrap: on
line source

#ifndef __COMMANDS_H__
#define __COMMANDS_H__ 1

#include <glib.h>

// Command structure
typedef struct {
  char name[32];
  const char *help;
  guint completion_flags[2];
  void (*func)();
} cmd;

void cmd_init(void);
cmd *cmd_get(char *command);
int  process_line(char *line);

#endif /* __COMMANDS_H__ */