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
aede71b1
Commit
aede71b1
authored
Sep 11, 2011
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playlist: move enum playlist_result to playlist_error.h
Reduce header dependencies.
parent
14d573cb
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
50 additions
and
17 deletions
+50
-17
Makefile.am
Makefile.am
+1
-0
playlist.h
src/playlist.h
+1
-14
playlist_error.h
src/playlist_error.h
+37
-0
playlist_print.c
src/playlist_print.c
+1
-0
playlist_queue.c
src/playlist_queue.c
+1
-0
playlist_queue.h
src/playlist_queue.h
+2
-1
playlist_save.c
src/playlist_save.c
+2
-0
playlist_save.h
src/playlist_save.h
+4
-1
stored_playlist.h
src/stored_playlist.h
+1
-1
No files found.
Makefile.am
View file @
aede71b1
...
...
@@ -166,6 +166,7 @@ mpd_headers = \
src/player_thread.h
\
src/player_control.h
\
src/playlist.h
\
src/playlist_error.h
\
src/playlist_internal.h
\
src/playlist_print.h
\
src/playlist_save.h
\
...
...
src/playlist.h
View file @
aede71b1
...
...
@@ -21,25 +21,12 @@
#define MPD_PLAYLIST_H
#include "queue.h"
#include "playlist_error.h"
#include <stdbool.h>
struct
player_control
;
enum
playlist_result
{
PLAYLIST_RESULT_SUCCESS
,
PLAYLIST_RESULT_ERRNO
,
PLAYLIST_RESULT_DENIED
,
PLAYLIST_RESULT_NO_SUCH_SONG
,
PLAYLIST_RESULT_NO_SUCH_LIST
,
PLAYLIST_RESULT_LIST_EXISTS
,
PLAYLIST_RESULT_BAD_NAME
,
PLAYLIST_RESULT_BAD_RANGE
,
PLAYLIST_RESULT_NOT_PLAYING
,
PLAYLIST_RESULT_TOO_LARGE
,
PLAYLIST_RESULT_DISABLED
,
};
struct
playlist
{
/**
* The song queue - it contains the "real" playlist.
...
...
src/playlist_error.h
0 → 100644
View file @
aede71b1
/*
* Copyright (C) 2003-2011 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_PLAYLIST_ERROR_H
#define MPD_PLAYLIST_ERROR_H
enum
playlist_result
{
PLAYLIST_RESULT_SUCCESS
,
PLAYLIST_RESULT_ERRNO
,
PLAYLIST_RESULT_DENIED
,
PLAYLIST_RESULT_NO_SUCH_SONG
,
PLAYLIST_RESULT_NO_SUCH_LIST
,
PLAYLIST_RESULT_LIST_EXISTS
,
PLAYLIST_RESULT_BAD_NAME
,
PLAYLIST_RESULT_BAD_RANGE
,
PLAYLIST_RESULT_NOT_PLAYING
,
PLAYLIST_RESULT_TOO_LARGE
,
PLAYLIST_RESULT_DISABLED
,
};
#endif
src/playlist_print.c
View file @
aede71b1
...
...
@@ -23,6 +23,7 @@
#include "playlist_plugin.h"
#include "playlist_any.h"
#include "playlist_song.h"
#include "playlist.h"
#include "queue_print.h"
#include "stored_playlist.h"
#include "song_print.h"
...
...
src/playlist_queue.c
View file @
aede71b1
...
...
@@ -22,6 +22,7 @@
#include "playlist_plugin.h"
#include "playlist_any.h"
#include "playlist_song.h"
#include "playlist.h"
#include "song.h"
#include "input_stream.h"
...
...
src/playlist_queue.h
View file @
aede71b1
...
...
@@ -24,12 +24,13 @@
#ifndef MPD_PLAYLIST_QUEUE_H
#define MPD_PLAYLIST_QUEUE_H
#include "playlist.h"
#include "playlist
_error
.h"
#include <stdbool.h>
struct
playlist_provider
;
struct
playlist
;
struct
player_control
;
/**
* Loads the contents of a playlist and append it to the specified
...
...
src/playlist_save.c
View file @
aede71b1
...
...
@@ -19,7 +19,9 @@
#include "config.h"
#include "playlist_save.h"
#include "playlist.h"
#include "stored_playlist.h"
#include "queue.h"
#include "song.h"
#include "mapper.h"
#include "path.h"
...
...
src/playlist_save.h
View file @
aede71b1
...
...
@@ -20,11 +20,14 @@
#ifndef MPD_PLAYLIST_SAVE_H
#define MPD_PLAYLIST_SAVE_H
#include "playlist.h"
#include "playlist
_error
.h"
#include <stdio.h>
struct
song
;
struct
queue
;
struct
playlist
;
struct
player_control
;
void
playlist_print_song
(
FILE
*
fp
,
const
struct
song
*
song
);
...
...
src/stored_playlist.h
View file @
aede71b1
...
...
@@ -20,7 +20,7 @@
#ifndef MPD_STORED_PLAYLIST_H
#define MPD_STORED_PLAYLIST_H
#include "playlist.h"
#include "playlist
_error
.h"
#include <glib.h>
#include <stdbool.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