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
3bbb5023
Commit
3bbb5023
authored
Jan 02, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*_print: convert to C++
parent
0023dffd
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
39 additions
and
33 deletions
+39
-33
Makefile.am
Makefile.am
+3
-5
DatabasePrint.cxx
src/DatabasePrint.cxx
+2
-2
OtherCommands.cxx
src/OtherCommands.cxx
+3
-3
PlaylistCommands.cxx
src/PlaylistCommands.cxx
+1
-1
PlaylistPrint.cxx
src/PlaylistPrint.cxx
+1
-1
QueuePrint.cxx
src/QueuePrint.cxx
+1
-1
SongPrint.cxx
src/SongPrint.cxx
+7
-4
SongPrint.hxx
src/SongPrint.hxx
+3
-4
StickerCommands.cxx
src/StickerCommands.cxx
+1
-1
TagPrint.cxx
src/TagPrint.cxx
+6
-3
TagPrint.hxx
src/TagPrint.hxx
+3
-3
TimePrint.cxx
src/TimePrint.cxx
+5
-2
TimePrint.hxx
src/TimePrint.hxx
+3
-3
No files found.
Makefile.am
View file @
3bbb5023
...
...
@@ -162,9 +162,8 @@ mpd_headers = \
src/replay_gain_info.h
\
src/replay_gain_ape.h
\
src/sig_handlers.h
\
src/
time_print.c src/time_print.h
\
src/
TimePrint.cxx src/TimePrint.hxx
\
src/song.h
\
src/song_print.h
\
src/song_sticker.h
\
src/song_sort.c src/song_sort.h
\
src/socket_util.h
\
...
...
@@ -178,7 +177,6 @@ mpd_headers = \
src/tag_ape.h
\
src/tag_id3.h
\
src/tag_rva2.h
\
src/tag_print.h
\
src/tokenizer.h
\
src/strset.h
\
src/uri.h
\
...
...
@@ -316,7 +314,7 @@ src_mpd_SOURCES = \
src/sig_handlers.c
\
src/Song.cxx
\
src/song_update.c
\
src/
song_print.c
\
src/
SongPrint.cxx src/SongPrint.hxx
\
src/SongSave.cxx src/SongSave.hxx
\
src/resolver.c src/resolver.h
\
src/socket_util.c
\
...
...
@@ -324,7 +322,7 @@ src_mpd_SOURCES = \
src/Stats.cxx
\
src/tag.c
\
src/tag_pool.c
\
src/
tag_print.c
\
src/
TagPrint.cxx src/TagPrint.hxx
\
src/TagSave.cxx src/TagSave.hxx
\
src/tag_handler.c src/tag_handler.h
\
src/tag_file.c src/tag_file.h
\
...
...
src/DatabasePrint.cxx
View file @
3bbb5023
...
...
@@ -22,13 +22,13 @@
#include "DatabaseSelection.hxx"
#include "SongFilter.hxx"
#include "PlaylistVector.hxx"
#include "SongPrint.hxx"
#include "TimePrint.hxx"
extern
"C"
{
#include "database.h"
#include "client.h"
#include "song.h"
#include "song_print.h"
#include "time_print.h"
#include "tag.h"
}
...
...
src/OtherCommands.cxx
View file @
3bbb5023
...
...
@@ -24,11 +24,13 @@
#include "UpdateGlue.hxx"
#include "directory.h"
#include "song.h"
#include "SongPrint.hxx"
#include "TagPrint.hxx"
#include "TimePrint.hxx"
extern
"C"
{
#include "protocol/argparser.h"
#include "protocol/result.h"
#include "time_print.h"
#include "ls.h"
#include "uri.h"
#include "decoder_print.h"
...
...
@@ -43,10 +45,8 @@ extern "C" {
#include "client.h"
#include "client_idle.h"
#include "client_file.h"
#include "tag_print.h"
#include "idle.h"
#include "mapper.h"
#include "song_print.h"
}
#ifdef ENABLE_SQLITE
...
...
src/PlaylistCommands.cxx
View file @
3bbb5023
...
...
@@ -25,12 +25,12 @@
#include "PlaylistSave.hxx"
#include "PlaylistFile.hxx"
#include "PlaylistQueue.hxx"
#include "TimePrint.hxx"
extern
"C"
{
#include "protocol/argparser.h"
#include "protocol/result.h"
#include "playlist.h"
#include "time_print.h"
#include "ls.h"
#include "uri.h"
#include "client_internal.h"
...
...
src/PlaylistPrint.cxx
View file @
3bbb5023
...
...
@@ -23,12 +23,12 @@
#include "PlaylistAny.hxx"
#include "PlaylistSong.hxx"
#include "QueuePrint.hxx"
#include "SongPrint.hxx"
extern
"C"
{
#include "playlist_list.h"
#include "playlist_plugin.h"
#include "playlist.h"
#include "song_print.h"
#include "song.h"
#include "database.h"
#include "client.h"
...
...
src/QueuePrint.cxx
View file @
3bbb5023
...
...
@@ -20,11 +20,11 @@
#include "config.h"
#include "QueuePrint.hxx"
#include "SongFilter.hxx"
#include "SongPrint.hxx"
extern
"C"
{
#include "queue.h"
#include "song.h"
#include "song_print.h"
#include "client.h"
#include "mapper.h"
}
...
...
src/
song_print.c
→
src/
SongPrint.cxx
View file @
3bbb5023
/*
* Copyright (C) 2003-201
1
The Music Player Daemon Project
* Copyright (C) 2003-201
3
The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
...
...
@@ -18,14 +18,17 @@
*/
#include "config.h"
#include "song_print.h"
#include "time_print.h"
#include "SongPrint.hxx"
#include "song.h"
#include "directory.h"
#include "tag_print.h"
#include "TimePrint.hxx"
#include "TagPrint.hxx"
extern
"C"
{
#include "client.h"
#include "uri.h"
#include "mapper.h"
}
void
song_print_uri
(
struct
client
*
client
,
struct
song
*
song
)
...
...
src/
song_print.h
→
src/
SongPrint.hxx
View file @
3bbb5023
/*
* Copyright (C) 2003-201
1
The Music Player Daemon Project
* Copyright (C) 2003-201
3
The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
...
...
@@ -17,12 +17,11 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef MPD_SONG_PRINT_H
#define MPD_SONG_PRINT_H
#ifndef MPD_SONG_PRINT_H
XX
#define MPD_SONG_PRINT_H
XX
struct
client
;
struct
song
;
struct
songvec
;
void
song_print_info
(
struct
client
*
client
,
struct
song
*
song
);
...
...
src/StickerCommands.cxx
View file @
3bbb5023
...
...
@@ -19,12 +19,12 @@
#include "config.h"
#include "StickerCommands.hxx"
#include "SongPrint.hxx"
extern
"C"
{
#include "protocol/result.h"
#include "sticker.h"
#include "sticker_print.h"
#include "song_print.h"
#include "song_sticker.h"
#include "database.h"
#include "db_lock.h"
...
...
src/
tag_print.c
→
src/
TagPrint.cxx
View file @
3bbb5023
/*
* Copyright (C) 2003-201
1
The Music Player Daemon Project
* Copyright (C) 2003-201
3
The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
...
...
@@ -18,12 +18,15 @@
*/
#include "config.h"
#include "
tag_print.h
"
#include "
TagPrint.hxx
"
#include "tag.h"
#include "tag_internal.h"
#include "client.h"
#include "song.h"
extern
"C"
{
#include "client.h"
}
void
tag_print_types
(
struct
client
*
client
)
{
int
i
;
...
...
src/
tag_print.h
→
src/
TagPrint.hxx
View file @
3bbb5023
/*
* Copyright (C) 2003-201
1
The Music Player Daemon Project
* Copyright (C) 2003-201
3
The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
...
...
@@ -17,8 +17,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef MPD_TAG_PRINT_H
#define MPD_TAG_PRINT_H
#ifndef MPD_TAG_PRINT_H
XX
#define MPD_TAG_PRINT_H
XX
struct
tag
;
struct
client
;
...
...
src/
time_print.c
→
src/
TimePrint.cxx
View file @
3bbb5023
/*
* Copyright (C) 2003-201
1
The Music Player Daemon Project
* Copyright (C) 2003-201
3
The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
...
...
@@ -18,8 +18,11 @@
*/
#include "config.h"
#include "time_print.h"
#include "TimePrint.hxx"
extern
"C"
{
#include "client.h"
}
#include <glib.h>
...
...
src/
time_print.h
→
src/
TimePrint.hxx
View file @
3bbb5023
/*
* Copyright (C) 2003-201
1
The Music Player Daemon Project
* Copyright (C) 2003-201
3
The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
...
...
@@ -17,8 +17,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef MPD_TIME_PRINT_H
#define MPD_TIME_PRINT_H
#ifndef MPD_TIME_PRINT_H
XX
#define MPD_TIME_PRINT_H
XX
#include <time.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