Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
51a6ee88
Commit
51a6ee88
authored
Oct 22, 2008
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
command: no CamelCase
Eliminate CamelCase in all public and static functions.
parent
69c563b5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
11 deletions
+13
-11
client.c
src/client.c
+4
-4
command.c
src/command.c
+0
-0
command.h
src/command.h
+7
-5
main.c
src/main.c
+2
-2
No files found.
src/client.c
View file @
51a6ee88
...
...
@@ -335,9 +335,9 @@ static int client_process_line(struct client *client, char *line)
if
(
strcmp
(
line
,
CLIENT_LIST_MODE_END
)
==
0
)
{
DEBUG
(
"client %i: process command "
"list
\n
"
,
client
->
num
);
ret
=
processListOfCommands
(
client
,
client
->
cmd_list_OK
,
client
->
cmd_list
);
ret
=
command_process_list
(
client
,
client
->
cmd_list_OK
,
client
->
cmd_list
);
DEBUG
(
"client %i: process command "
"list returned %i
\n
"
,
client
->
num
,
ret
);
...
...
@@ -379,7 +379,7 @@ static int client_process_line(struct client *client, char *line)
}
else
{
DEBUG
(
"client %i: process command
\"
%s
\"\n
"
,
client
->
num
,
line
);
ret
=
processCommand
(
client
,
line
);
ret
=
command_process
(
client
,
line
);
DEBUG
(
"client %i: command returned %i
\n
"
,
client
->
num
,
ret
);
...
...
src/command.c
View file @
51a6ee88
This diff is collapsed.
Click to expand it.
src/command.h
View file @
51a6ee88
...
...
@@ -29,14 +29,16 @@
struct
client
;
int
processListOfCommands
(
struct
client
*
client
,
int
listOK
,
struct
strnode
*
list
);
void
command_init
(
void
);
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
);
...
...
src/main.c
View file @
51a6ee88
...
...
@@ -420,7 +420,7 @@ int main(int argc, char *argv[])
openDB
(
&
options
,
argv
[
0
]);
initCommands
();
command_init
();
initPlayerData
();
pc_init
(
buffered_before_play
);
ob_init
(
buffered_chunks
,
&
pc
.
notify
);
...
...
@@ -484,7 +484,7 @@ int main(int argc, char *argv[])
finishPermissions
();
dc_deinit
();
pc_deinit
();
finishCommands
();
command_finish
();
decoder_plugin_deinit_all
();
ob_free
();
cleanUpPidFile
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment