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
031ccce8
Commit
031ccce8
authored
Jan 11, 2018
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input/curl: convert struct to class
parent
34eef0ed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
CurlInputPlugin.cxx
src/input/plugins/CurlInputPlugin.cxx
+3
-1
No files found.
src/input/plugins/CurlInputPlugin.cxx
View file @
031ccce8
...
...
@@ -65,7 +65,7 @@ static const size_t CURL_MAX_BUFFERED = 512 * 1024;
*/
static
const
size_t
CURL_RESUME_AT
=
384
*
1024
;
struct
CurlInputStream
final
:
public
AsyncInputStream
,
CurlResponseHandler
{
class
CurlInputStream
final
:
public
AsyncInputStream
,
CurlResponseHandler
{
/* some buffers which were passed to libcurl, which we have
too free */
CurlSlist
request_headers
;
...
...
@@ -75,6 +75,7 @@ struct CurlInputStream final : public AsyncInputStream, CurlResponseHandler {
/** parser for icy-metadata */
std
::
shared_ptr
<
IcyMetaDataParser
>
icy
;
public
:
CurlInputStream
(
EventLoop
&
event_loop
,
const
char
*
_url
,
Mutex
&
_mutex
,
Cond
&
_cond
)
:
AsyncInputStream
(
event_loop
,
_url
,
_mutex
,
_cond
,
...
...
@@ -90,6 +91,7 @@ struct CurlInputStream final : public AsyncInputStream, CurlResponseHandler {
static
InputStreamPtr
Open
(
const
char
*
url
,
Mutex
&
mutex
,
Cond
&
cond
);
private
:
/**
* Create and initialize a new #CurlRequest instance. After
* this, you may add more request headers and set options. To
...
...
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