Files
lcdproc/server/commands/command_list.h
T
marschap f9d35cad9e remove unused code, cleanup & shorten parse_message() function;
hide commands[] table; make it's contents accessible using a function
2005-06-28 17:12:30 +00:00

33 lines
698 B
C

/*
* commands/command_list.h
* This file is part of LCDd, the lcdproc server.
*
* This file is released under the GNU General Public License. Refer to the
* COPYING file distributed with this package.
*
* Copyright (c) 1999, William Ferrell, Scott Scriven
*
*/
#ifndef COMMANDS_COMMAND_LIST_H
#define COMMANDS_COMMAND_LIST_H
#include "../client.h"
/*
The function list for clients is stored in a table, and the items each
point to a function to call, defined below.
*/
typedef int (*CommandFunc) (Client * c, int argc, char **argv);
typedef struct client_function {
char *keyword;
CommandFunc function;
} client_function;
CommandFunc get_command_function(char *cmd);
#endif