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
6ead9750
Commit
6ead9750
authored
Nov 02, 2016
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output/pulse: migrate from class Error to C++ exceptions
parent
6532c7e0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
Error.cxx
src/lib/pulse/Error.cxx
+4
-5
Error.hxx
src/lib/pulse/Error.hxx
+4
-3
PulseOutputPlugin.cxx
src/output/plugins/PulseOutputPlugin.cxx
+0
-0
No files found.
src/lib/pulse/Error.cxx
View file @
6ead9750
...
@@ -19,15 +19,14 @@
...
@@ -19,15 +19,14 @@
#include "config.h"
#include "config.h"
#include "Error.hxx"
#include "Error.hxx"
#include "Domain.hxx"
#include "util/RuntimeError.hxx"
#include "util/Error.hxx"
#include <pulse/context.h>
#include <pulse/context.h>
#include <pulse/error.h>
#include <pulse/error.h>
void
std
::
runtime_error
SetPulseError
(
Error
&
error
,
pa_context
*
context
,
const
char
*
prefix
)
MakePulseError
(
pa_context
*
context
,
const
char
*
prefix
)
{
{
const
int
e
=
pa_context_errno
(
context
);
const
int
e
=
pa_context_errno
(
context
);
error
.
Format
(
pulse_domain
,
e
,
"%s: %s"
,
prefix
,
pa_strerror
(
e
));
return
FormatRuntimeError
(
"%s: %s"
,
prefix
,
pa_strerror
(
e
));
}
}
src/lib/pulse/Error.hxx
View file @
6ead9750
...
@@ -20,10 +20,11 @@
...
@@ -20,10 +20,11 @@
#ifndef MPD_PULSE_ERROR_HXX
#ifndef MPD_PULSE_ERROR_HXX
#define MPD_PULSE_ERROR_HXX
#define MPD_PULSE_ERROR_HXX
class
Error
;
#include <stdexcept>
struct
pa_context
;
struct
pa_context
;
void
std
::
runtime_error
SetPulseError
(
Error
&
error
,
pa_context
*
context
,
const
char
*
prefix
);
MakePulseError
(
pa_context
*
context
,
const
char
*
prefix
);
#endif
#endif
src/output/plugins/PulseOutputPlugin.cxx
View file @
6ead9750
This diff is collapsed.
Click to expand it.
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