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
981906ec
Commit
981906ec
authored
Jan 03, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output_print: convert to C++
parent
90fe4c51
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
9 deletions
+11
-9
Makefile.am
Makefile.am
+1
-2
OutputCommands.cxx
src/OutputCommands.cxx
+1
-1
OutputPrint.cxx
src/OutputPrint.cxx
+6
-3
OutputPrint.hxx
src/OutputPrint.hxx
+3
-3
No files found.
Makefile.am
View file @
981906ec
...
...
@@ -56,7 +56,6 @@ mpd_headers = \
src/output_all.h
\
src/output_thread.h
\
src/output_control.h
\
src/output_print.h
\
src/output_command.h
\
src/filter_internal.h
\
src/filter_config.h
\
...
...
@@ -800,7 +799,7 @@ OUTPUT_API_SRC = \
src/output_error.h
\
src/output_control.c
\
src/OutputState.cxx src/OutputState.hxx
\
src/
output_print.c
\
src/
OutputPrint.cxx src/OutputPrint.hxx
\
src/output_command.c
\
src/output_plugin.c src/output_plugin.h
\
src/output_finish.c
\
...
...
src/OutputCommands.cxx
View file @
981906ec
...
...
@@ -19,12 +19,12 @@
#include "config.h"
#include "OutputCommands.hxx"
#include "OutputPrint.hxx"
extern
"C"
{
#include "protocol/argparser.h"
#include "protocol/result.h"
#include "output_command.h"
#include "output_print.h"
}
#include <string.h>
...
...
src/
output_print.c
→
src/
OutputPrint.cxx
View file @
981906ec
/*
* 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
...
...
@@ -23,15 +23,18 @@
*/
#include "config.h"
#include "
output_print.h
"
#include "
OutputPrint.hxx
"
#include "output_internal.h"
extern
"C"
{
#include "output_all.h"
#include "client.h"
}
void
printAudioDevices
(
struct
client
*
client
)
{
unsigned
n
=
audio_output_count
();
const
unsigned
n
=
audio_output_count
();
for
(
unsigned
i
=
0
;
i
<
n
;
++
i
)
{
const
struct
audio_output
*
ao
=
audio_output_get
(
i
);
...
...
src/
output_print.h
→
src/
OutputPrint.hxx
View file @
981906ec
/*
* 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
...
...
@@ -22,8 +22,8 @@
*
*/
#ifndef
OUTPUT_PRINT_H
#define
OUTPUT_PRINT_H
#ifndef
MPD_OUTPUT_PRINT_HXX
#define
MPD_OUTPUT_PRINT_HXX
struct
client
;
...
...
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