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
915af1e0
Commit
915af1e0
authored
Jun 04, 2004
by
Warren Dukes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add ack.h and change format of error again
git-svn-id:
https://svn.musicpd.org/mpd/trunk@1327
09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent
fd06660e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
2 deletions
+18
-2
ack.h
src/ack.h
+16
-0
command.h
src/command.h
+2
-2
No files found.
src/ack.h
0 → 100644
View file @
915af1e0
#ifndef ACK_H
#define ACK_H
#define ACK_ERROR_NOT_LIST 1
#define ACK_ERROR_ARG 2
#define ACK_ERROR_PASSWORD 3
#define ACK_ERROR_PERMISSION 4
#define ACK_ERROR_UNKNOWN 5
#define ACK_ERROR_NO_EXIST 6
#define ACK_ERROR_PLAYLIST_MAX 7
#define ACK_ERROR_SYSTEM 8
#define ACK_ERROR_PLAYLIST_LOAD 9
#define ACK_ERROR_UPDATE_ALREADY 10
#define ACK_ERROR_PLAYER_SYNC 11
#endif
src/command.h
View file @
915af1e0
...
@@ -48,13 +48,13 @@ void finishCommands();
...
@@ -48,13 +48,13 @@ void finishCommands();
#define commandError(fp, error, format, ... ) \
#define commandError(fp, error, format, ... ) \
{\
{\
if(current_command) { \
if(current_command) { \
myfprintf(fp, "ACK [%i@%i
:%s]
" format "\n", \
myfprintf(fp, "ACK [%i@%i
] {%s}
" format "\n", \
(int)error, command_listNum, \
(int)error, command_listNum, \
current_command, ##__VA_ARGS__); \
current_command, ##__VA_ARGS__); \
current_command = NULL; \
current_command = NULL; \
} \
} \
else { \
else { \
myfprintf(fp, "ACK [%i@%i
:
] " format "\n", \
myfprintf(fp, "ACK [%i@%i] " format "\n", \
(int)error, command_listNum, \
(int)error, command_listNum, \
##__VA_ARGS__); \
##__VA_ARGS__); \
} \
} \
...
...
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