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
eea4edd9
Commit
eea4edd9
authored
Oct 13, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test/dump_playlist: parse a configuration file
parent
cb331ae4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
dump_playlist.c
test/dump_playlist.c
+11
-3
No files found.
test/dump_playlist.c
View file @
eea4edd9
...
@@ -44,15 +44,16 @@ int main(int argc, char **argv)
...
@@ -44,15 +44,16 @@ int main(int argc, char **argv)
const
char
*
uri
;
const
char
*
uri
;
struct
input_stream
is
;
struct
input_stream
is
;
bool
success
;
bool
success
;
GError
*
error
=
NULL
;
struct
playlist_provider
*
playlist
;
struct
playlist_provider
*
playlist
;
struct
song
*
song
;
struct
song
*
song
;
if
(
argc
!=
2
)
{
if
(
argc
!=
3
)
{
g_printerr
(
"Usage: dump_playlist URI
\n
"
);
g_printerr
(
"Usage: dump_playlist
CONFIG
URI
\n
"
);
return
1
;
return
1
;
}
}
uri
=
argv
[
1
];
uri
=
argv
[
2
];
/* initialize GLib */
/* initialize GLib */
...
@@ -63,6 +64,13 @@ int main(int argc, char **argv)
...
@@ -63,6 +64,13 @@ int main(int argc, char **argv)
tag_pool_init
();
tag_pool_init
();
config_global_init
();
config_global_init
();
success
=
config_read_file
(
argv
[
1
],
&
error
);
if
(
!
success
)
{
g_printerr
(
"%s:"
,
error
->
message
);
g_error_free
(
error
);
return
1
;
}
input_stream_global_init
();
input_stream_global_init
();
playlist_list_global_init
();
playlist_list_global_init
();
...
...
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