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
941a9284
Commit
941a9284
authored
Sep 09, 2016
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playlist/SoundCloud: rename struct parse_data to SoundCloudJsonData
parent
4ee3820b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
SoundCloudPlaylistPlugin.cxx
src/playlist/plugins/SoundCloudPlaylistPlugin.cxx
+7
-7
No files found.
src/playlist/plugins/SoundCloudPlaylistPlugin.cxx
View file @
941a9284
...
...
@@ -101,7 +101,7 @@ static const char *const key_str[] = {
nullptr
,
};
struct
parse_d
ata
{
struct
SoundCloudJsonD
ata
{
int
key
;
char
*
stream_url
;
long
duration
;
...
...
@@ -114,7 +114,7 @@ struct parse_data {
static
int
handle_integer
(
void
*
ctx
,
long
long
intval
)
{
struct
parse_data
*
data
=
(
struct
parse_d
ata
*
)
ctx
;
auto
*
data
=
(
SoundCloudJsonD
ata
*
)
ctx
;
switch
(
data
->
key
)
{
case
Duration
:
...
...
@@ -130,7 +130,7 @@ handle_integer(void *ctx, long long intval)
static
int
handle_string
(
void
*
ctx
,
const
unsigned
char
*
stringval
,
size_t
stringlen
)
{
struct
parse_data
*
data
=
(
struct
parse_d
ata
*
)
ctx
;
auto
*
data
=
(
SoundCloudJsonD
ata
*
)
ctx
;
const
char
*
s
=
(
const
char
*
)
stringval
;
switch
(
data
->
key
)
{
...
...
@@ -153,7 +153,7 @@ handle_string(void *ctx, const unsigned char *stringval, size_t stringlen)
static
int
handle_mapkey
(
void
*
ctx
,
const
unsigned
char
*
stringval
,
size_t
stringlen
)
{
struct
parse_data
*
data
=
(
struct
parse_d
ata
*
)
ctx
;
auto
*
data
=
(
SoundCloudJsonD
ata
*
)
ctx
;
int
i
;
data
->
key
=
Other
;
...
...
@@ -171,7 +171,7 @@ handle_mapkey(void *ctx, const unsigned char *stringval, size_t stringlen)
static
int
handle_start_map
(
void
*
ctx
)
{
struct
parse_data
*
data
=
(
struct
parse_d
ata
*
)
ctx
;
auto
*
data
=
(
SoundCloudJsonD
ata
*
)
ctx
;
if
(
data
->
got_url
>
0
)
data
->
got_url
++
;
...
...
@@ -182,7 +182,7 @@ handle_start_map(void *ctx)
static
int
handle_end_map
(
void
*
ctx
)
{
struct
parse_data
*
data
=
(
struct
parse_d
ata
*
)
ctx
;
auto
*
data
=
(
SoundCloudJsonD
ata
*
)
ctx
;
if
(
data
->
got_url
>
1
)
{
data
->
got_url
--
;
...
...
@@ -325,7 +325,7 @@ soundcloud_open_uri(const char *uri, Mutex &mutex, Cond &cond)
return
nullptr
;
}
struct
parse_d
ata
data
;
SoundCloudJsonD
ata
data
;
data
.
got_url
=
0
;
data
.
title
=
nullptr
;
data
.
stream_url
=
nullptr
;
...
...
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