Commit 51a6ee88 authored by Max Kellermann's avatar Max Kellermann

command: no CamelCase

Eliminate CamelCase in all public and static functions.
parent 69c563b5
...@@ -335,7 +335,7 @@ static int client_process_line(struct client *client, char *line) ...@@ -335,7 +335,7 @@ static int client_process_line(struct client *client, char *line)
if (strcmp(line, CLIENT_LIST_MODE_END) == 0) { if (strcmp(line, CLIENT_LIST_MODE_END) == 0) {
DEBUG("client %i: process command " DEBUG("client %i: process command "
"list\n", client->num); "list\n", client->num);
ret = processListOfCommands(client, ret = command_process_list(client,
client->cmd_list_OK, client->cmd_list_OK,
client->cmd_list); client->cmd_list);
DEBUG("client %i: process command " DEBUG("client %i: process command "
...@@ -379,7 +379,7 @@ static int client_process_line(struct client *client, char *line) ...@@ -379,7 +379,7 @@ static int client_process_line(struct client *client, char *line)
} else { } else {
DEBUG("client %i: process command \"%s\"\n", DEBUG("client %i: process command \"%s\"\n",
client->num, line); client->num, line);
ret = processCommand(client, line); ret = command_process(client, line);
DEBUG("client %i: command returned %i\n", DEBUG("client %i: command returned %i\n",
client->num, ret); client->num, ret);
......
...@@ -29,14 +29,16 @@ ...@@ -29,14 +29,16 @@
struct client; struct client;
int processListOfCommands(struct client *client, void command_init(void);
int listOK, struct strnode *list);
int processCommand(struct client *client, char *commandString); void command_finish(void);
void initCommands(void); int
command_process_list(struct client *client,
int list_ok, struct strnode *list);
void finishCommands(void); int
command_process(struct client *client, char *commandString);
void command_success(struct client *client); void command_success(struct client *client);
......
...@@ -420,7 +420,7 @@ int main(int argc, char *argv[]) ...@@ -420,7 +420,7 @@ int main(int argc, char *argv[])
openDB(&options, argv[0]); openDB(&options, argv[0]);
initCommands(); command_init();
initPlayerData(); initPlayerData();
pc_init(buffered_before_play); pc_init(buffered_before_play);
ob_init(buffered_chunks, &pc.notify); ob_init(buffered_chunks, &pc.notify);
...@@ -484,7 +484,7 @@ int main(int argc, char *argv[]) ...@@ -484,7 +484,7 @@ int main(int argc, char *argv[])
finishPermissions(); finishPermissions();
dc_deinit(); dc_deinit();
pc_deinit(); pc_deinit();
finishCommands(); command_finish();
decoder_plugin_deinit_all(); decoder_plugin_deinit_all();
ob_free(); ob_free();
cleanUpPidFile(); cleanUpPidFile();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment