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
a5d8b276
Commit
a5d8b276
authored
Sep 25, 2012
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
command.h: move function prototypes to AllCommands.h
parent
f3f25d5d
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
44 additions
and
19 deletions
+44
-19
Makefile.am
Makefile.am
+1
-1
AllCommands.cxx
src/AllCommands.cxx
+5
-0
AllCommands.h
src/AllCommands.h
+34
-0
client_internal.h
src/client_internal.h
+2
-0
client_process.c
src/client_process.c
+1
-0
command.h
src/command.h
+0
-17
main.c
src/main.c
+1
-1
No files found.
Makefile.am
View file @
a5d8b276
...
...
@@ -235,7 +235,7 @@ src_mpd_SOURCES = \
src/protocol/argparser.c src/protocol/argparser.h
\
src/protocol/result.c src/protocol/result.h
\
src/CommandError.cxx src/CommandError.hxx
\
src/AllCommands.cxx
\
src/AllCommands.cxx
src/AllCommands.h
\
src/QueueCommands.cxx src/QueueCommands.hxx
\
src/PlayerCommands.cxx src/PlayerCommands.hxx
\
src/PlaylistCommands.cxx src/PlaylistCommands.hxx
\
...
...
src/AllCommands.cxx
View file @
a5d8b276
...
...
@@ -18,6 +18,11 @@
*/
#include "config.h"
extern
"C"
{
#include "AllCommands.h"
}
#include "command.h"
#include "QueueCommands.hxx"
#include "PlayerCommands.hxx"
...
...
src/AllCommands.h
0 → 100644
View file @
a5d8b276
/*
* Copyright (C) 2003-2012 The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef MPD_ALL_COMMANDS_H
#define MPD_ALL_COMMANDS_H
#include "command.h"
struct
client
;
void
command_init
(
void
);
void
command_finish
(
void
);
enum
command_return
command_process
(
struct
client
*
client
,
unsigned
num
,
char
*
line
);
#endif
src/client_internal.h
View file @
a5d8b276
...
...
@@ -24,6 +24,8 @@
#include "client_message.h"
#include "command.h"
#include <glib.h>
#undef G_LOG_DOMAIN
#define G_LOG_DOMAIN "client"
...
...
src/client_process.c
View file @
a5d8b276
...
...
@@ -20,6 +20,7 @@
#include "config.h"
#include "client_internal.h"
#include "protocol/result.h"
#include "AllCommands.h"
#include <string.h>
...
...
src/command.h
View file @
a5d8b276
...
...
@@ -20,10 +20,6 @@
#ifndef MPD_COMMAND_H
#define MPD_COMMAND_H
#include "ack.h"
#include <stdbool.h>
enum
command_return
{
/**
* The command has succeeded, but the "OK" response was not
...
...
@@ -54,17 +50,4 @@ enum command_return {
COMMAND_RETURN_KILL
,
};
struct
client
;
G_BEGIN_DECLS
void
command_init
(
void
);
void
command_finish
(
void
);
enum
command_return
command_process
(
struct
client
*
client
,
unsigned
num
,
char
*
line
);
G_END_DECLS
#endif
src/main.c
View file @
a5d8b276
...
...
@@ -24,7 +24,7 @@
#include "client.h"
#include "client_idle.h"
#include "idle.h"
#include "
command
.h"
#include "
AllCommands
.h"
#include "playlist.h"
#include "stored_playlist.h"
#include "database.h"
...
...
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