Base: LCDproc 0.5.2
[lcdproc-de200c.git] / server / commands / command_list.h
blob599b1eeba3a7101e42a6205e1df158e72da5a261
1 /*
2 * commands/command_list.h
3 * This file is part of LCDd, the lcdproc server.
5 * This file is released under the GNU General Public License. Refer to the
6 * COPYING file distributed with this package.
8 * Copyright (c) 1999, William Ferrell, Scott Scriven
12 #ifndef COMMANDS_COMMAND_LIST_H
13 #define COMMANDS_COMMAND_LIST_H
15 #include "../client.h"
18 The function list for clients is stored in a table, and the items each
19 point to a function to call, defined below.
22 typedef int (*CommandFunc) (Client * c, int argc, char **argv);
24 typedef struct client_function {
25 char *keyword;
26 CommandFunc function;
27 } client_function;
30 CommandFunc get_command_function(char *cmd);
32 #endif