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
8064bbbc
Commit
8064bbbc
authored
Dec 24, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test/*: remove GLib logging setup
Obsolete, our logging library doesn't ues GLib anymore.
parent
64e898f6
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
0 additions
and
60 deletions
+0
-60
DumpDatabase.cxx
test/DumpDatabase.cxx
+0
-12
dump_playlist.cxx
test/dump_playlist.cxx
+0
-12
dump_text_file.cxx
test/dump_text_file.cxx
+0
-12
run_filter.cxx
test/run_filter.cxx
+0
-12
visit_archive.cxx
test/visit_archive.cxx
+0
-12
No files found.
test/DumpDatabase.cxx
View file @
8064bbbc
...
...
@@ -39,16 +39,6 @@ using std::endl;
#include <stdlib.h>
static
void
my_log_func
(
const
gchar
*
log_domain
,
gcc_unused
GLogLevelFlags
log_level
,
const
gchar
*
message
,
gcc_unused
gpointer
user_data
)
{
if
(
log_domain
!=
NULL
)
g_printerr
(
"%s: %s
\n
"
,
log_domain
,
message
);
else
g_printerr
(
"%s
\n
"
,
message
);
}
static
bool
DumpDirectory
(
const
Directory
&
directory
,
Error
&
)
{
...
...
@@ -94,8 +84,6 @@ main(int argc, char **argv)
g_thread_init
(
nullptr
);
#endif
g_log_set_default_handler
(
my_log_func
,
nullptr
);
/* initialize MPD */
config_global_init
();
...
...
test/dump_playlist.cxx
View file @
8064bbbc
...
...
@@ -42,16 +42,6 @@
Directory
::
Directory
()
{}
Directory
::~
Directory
()
{}
static
void
my_log_func
(
const
gchar
*
log_domain
,
gcc_unused
GLogLevelFlags
log_level
,
const
gchar
*
message
,
gcc_unused
gpointer
user_data
)
{
if
(
log_domain
!=
NULL
)
g_printerr
(
"%s: %s
\n
"
,
log_domain
,
message
);
else
g_printerr
(
"%s
\n
"
,
message
);
}
int
main
(
int
argc
,
char
**
argv
)
{
const
char
*
uri
;
...
...
@@ -72,8 +62,6 @@ int main(int argc, char **argv)
g_thread_init
(
NULL
);
#endif
g_log_set_default_handler
(
my_log_func
,
NULL
);
/* initialize MPD */
config_global_init
();
...
...
test/dump_text_file.cxx
View file @
8064bbbc
...
...
@@ -39,16 +39,6 @@
#include <stdlib.h>
static
void
my_log_func
(
const
gchar
*
log_domain
,
gcc_unused
GLogLevelFlags
log_level
,
const
gchar
*
message
,
gcc_unused
gpointer
user_data
)
{
if
(
log_domain
!=
NULL
)
g_printerr
(
"%s: %s
\n
"
,
log_domain
,
message
);
else
g_printerr
(
"%s
\n
"
,
message
);
}
static
void
dump_text_file
(
TextInputStream
&
is
)
{
std
::
string
line
;
...
...
@@ -109,8 +99,6 @@ int main(int argc, char **argv)
g_thread_init
(
NULL
);
#endif
g_log_set_default_handler
(
my_log_func
,
NULL
);
/* initialize MPD */
config_global_init
();
...
...
test/run_filter.cxx
View file @
8064bbbc
...
...
@@ -45,16 +45,6 @@ mixer_set_volume(gcc_unused Mixer *mixer,
return
true
;
}
static
void
my_log_func
(
const
gchar
*
log_domain
,
gcc_unused
GLogLevelFlags
log_level
,
const
gchar
*
message
,
gcc_unused
gpointer
user_data
)
{
if
(
log_domain
!=
NULL
)
g_printerr
(
"%s: %s
\n
"
,
log_domain
,
message
);
else
g_printerr
(
"%s
\n
"
,
message
);
}
static
const
struct
config_param
*
find_named_config_block
(
ConfigOption
option
,
const
char
*
name
)
{
...
...
@@ -111,8 +101,6 @@ int main(int argc, char **argv)
g_thread_init
(
NULL
);
#endif
g_log_set_default_handler
(
my_log_func
,
NULL
);
/* read configuration file (mpd.conf) */
config_global_init
();
...
...
test/visit_archive.cxx
View file @
8064bbbc
...
...
@@ -35,16 +35,6 @@
#include <unistd.h>
#include <stdlib.h>
static
void
my_log_func
(
const
gchar
*
log_domain
,
gcc_unused
GLogLevelFlags
log_level
,
const
gchar
*
message
,
gcc_unused
gpointer
user_data
)
{
if
(
log_domain
!=
NULL
)
g_printerr
(
"%s: %s
\n
"
,
log_domain
,
message
);
else
g_printerr
(
"%s
\n
"
,
message
);
}
class
MyArchiveVisitor
final
:
public
ArchiveVisitor
{
public
:
virtual
void
VisitArchiveEntry
(
const
char
*
path_utf8
)
override
{
...
...
@@ -71,8 +61,6 @@ main(int argc, char **argv)
g_thread_init
(
NULL
);
#endif
g_log_set_default_handler
(
my_log_func
,
NULL
);
/* initialize MPD */
config_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