Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
f9d5f255
Commit
f9d5f255
authored
Feb 09, 2015
by
Thomas Guillem
Committed by
Jean-Baptiste Kempf
Feb 09, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove android from old logger interface
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
7a1bd270
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
62 deletions
+0
-62
modules/misc/Makefile.am
modules/misc/Makefile.am
+0
-3
modules/misc/logger.c
modules/misc/logger.c
+0
-59
No files found.
modules/misc/Makefile.am
View file @
f9d5f255
miscdir
=
$(pluginsdir)
/misc
liblogger_plugin_la_SOURCES
=
misc/logger.c
if
HAVE_ANDROID
liblogger_plugin_la_LIBADD
=
-llog
endif
libstats_plugin_la_SOURCES
=
misc/stats.c
misc_LTLIBRARIES
=
liblogger_plugin.la libstats_plugin.la
...
...
modules/misc/logger.c
View file @
f9d5f255
...
...
@@ -35,20 +35,12 @@
#include <stdarg.h>
#ifdef __ANDROID__
# include <android/log.h>
#endif
/*****************************************************************************
* Local prototypes
*****************************************************************************/
static
int
Open
(
vlc_object_t
*
);
static
void
Close
(
vlc_object_t
*
);
#ifdef __ANDROID__
static
void
AndroidPrint
(
void
*
,
int
,
const
vlc_log_t
*
,
const
char
*
,
va_list
);
#endif
/*****************************************************************************
* Module descriptor
*****************************************************************************/
...
...
@@ -72,12 +64,6 @@ static int Open( vlc_object_t *p_this )
{
intf_thread_t
*
p_intf
=
(
intf_thread_t
*
)
p_this
;
#ifdef __ANDROID__
msg_Info
(
p_this
,
"using logger."
);
vlc_LogSet
(
p_intf
->
p_libvlc
,
AndroidPrint
,
p_intf
);
return
VLC_SUCCESS
;
#else
msg_Err
(
p_intf
,
"The logger interface no longer exists."
);
msg_Info
(
p_intf
,
"As of VLC version 0.9.0, use --file-logging to write "
"logs to a file."
);
...
...
@@ -85,7 +71,6 @@ static int Open( vlc_object_t *p_this )
msg_Info
(
p_intf
,
"Use --syslog to send logs to the system logger."
);
# endif
return
VLC_EGENERIC
;
#endif
}
/*****************************************************************************
...
...
@@ -96,47 +81,3 @@ static void Close( vlc_object_t *p_this )
/* Flush the queue and unsubscribe from the message queue */
vlc_LogSet
(
p_this
->
p_libvlc
,
NULL
,
NULL
);
}
#ifdef __ANDROID__
static
bool
IgnoreMessage
(
intf_thread_t
*
p_intf
,
int
type
)
{
/* TODO: cache value... */
int
verbosity
=
var_InheritInteger
(
p_intf
,
"log-verbose"
);
if
(
verbosity
==
-
1
)
verbosity
=
var_InheritInteger
(
p_intf
,
"verbose"
);
return
verbosity
<
0
||
verbosity
<
(
type
-
VLC_MSG_ERR
);
}
/*
* Logging callbacks
*/
static
const
char
ppsz_type
[
4
][
9
]
=
{
""
,
" error"
,
" warning"
,
" debug"
,
};
static
const
android_LogPriority
prioritytype
[
4
]
=
{
ANDROID_LOG_INFO
,
ANDROID_LOG_ERROR
,
ANDROID_LOG_WARN
,
ANDROID_LOG_DEBUG
};
static
void
AndroidPrint
(
void
*
opaque
,
int
type
,
const
vlc_log_t
*
item
,
const
char
*
fmt
,
va_list
ap
)
{
(
void
)
item
;
intf_thread_t
*
p_intf
=
opaque
;
if
(
IgnoreMessage
(
p_intf
,
type
)
)
return
;
int
canc
=
vlc_savecancel
();
__android_log_vprint
(
prioritytype
[
type
],
"VLC"
,
fmt
,
ap
);
vlc_restorecancel
(
canc
);
}
#endif
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