aboutsummaryrefslogtreecommitdiffstats
path: root/src/command.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-08-29 09:36:42 +0200
committerMax Kellermann <max@duempel.org>2008-08-29 09:36:42 +0200
commit8b1b82b36374e95bcef8195fcd15e4014e73567d (patch)
tree90efdb2f715a44e2ccc3387e479cf56512225e01 /src/command.h
parent2c8aa8efde879b6b9396aaa06edfa4506c55842e (diff)
downloadmpd-8b1b82b36374e95bcef8195fcd15e4014e73567d.tar.gz
mpd-8b1b82b36374e95bcef8195fcd15e4014e73567d.tar.xz
mpd-8b1b82b36374e95bcef8195fcd15e4014e73567d.zip
client: pass the client struct to processCommand()
Start exporting the client struct as an opaque struct. For now, pass it only to processCommand() and processListOfCommands(), and provide a function to extract the socket handle. Later, we will propagate the pointer to all command implementations, and of course to client_print() etc.
Diffstat (limited to 'src/command.h')
-rw-r--r--src/command.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/command.h b/src/command.h
index be935c8b5..030e03767 100644
--- a/src/command.h
+++ b/src/command.h
@@ -27,10 +27,14 @@
#define COMMAND_RETURN_CLOSE 20
#define COMMAND_MASTER_READY 30
-int processListOfCommands(int fd, int *permission, int *expired,
+struct client;
+
+int processListOfCommands(struct client *client,
+ int *permission, int *expired,
int listOK, struct strnode *list);
-int processCommand(int fd, int *permission, char *commandString);
+int processCommand(struct client *client,
+ int *permission, char *commandString);
void initCommands(void);