Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
195940ca
Commit
195940ca
authored
Aug 20, 2011
by
Rémi Denis-Courmont
Browse files
Also deprecate verbosity functions
parent
f525191b
Changes
4
Hide whitespace changes
Inline
Side-by-side
include/vlc/libvlc.h
View file @
195940ca
...
...
@@ -312,19 +312,23 @@ LIBVLC_API const char * libvlc_event_type_name( libvlc_event_type_t event_type )
*/
/**
* Return the VLC messaging verbosity level.
* Always returns minus one.
* This function is only provided for backward compatibility.
*
* \param p_instance
libvlc instance
* \return
verbosity level for messages
* \param p_instance
ignored
* \return
always -1
*/
LIBVLC_DEPRECATED
LIBVLC_API
unsigned
libvlc_get_log_verbosity
(
const
libvlc_instance_t
*
p_instance
);
/**
* Set the VLC messaging verbosity level.
* This function does nothing.
* It is only provided for backward compatibility.
*
* \param p_instance
libvlc log instance
* \param level
log level
* \param p_instance
ignored
* \param level
ignored
*/
LIBVLC_DEPRECATED
LIBVLC_API
void
libvlc_set_log_verbosity
(
libvlc_instance_t
*
p_instance
,
unsigned
level
);
/**
...
...
src/control/core.c
View file @
195940ca
...
...
@@ -67,7 +67,6 @@ libvlc_instance_t * libvlc_new( int argc, const char *const *argv )
p_new
->
libvlc_vlm
.
p_event_manager
=
NULL
;
p_new
->
libvlc_vlm
.
pf_release
=
NULL
;
p_new
->
ref_count
=
1
;
p_new
->
verbosity
=
1
;
p_new
->
p_callback_list
=
NULL
;
vlc_mutex_init
(
&
p_new
->
instance_lock
);
var_Create
(
p_libvlc_int
,
"http-user-agent"
,
...
...
src/control/libvlc_internal.h
View file @
195940ca
...
...
@@ -70,7 +70,6 @@ struct libvlc_instance_t
libvlc_int_t
*
p_libvlc_int
;
libvlc_vlm_t
libvlc_vlm
;
unsigned
ref_count
;
int
verbosity
;
vlc_mutex_t
instance_lock
;
struct
libvlc_callback_entry_list_t
*
p_callback_list
;
};
...
...
src/control/log.c
View file @
195940ca
...
...
@@ -37,14 +37,14 @@ struct libvlc_log_t
unsigned
libvlc_get_log_verbosity
(
const
libvlc_instance_t
*
p_instance
)
{
assert
(
p_instance
)
;
return
p_instance
->
verbosity
;
(
void
)
p_instance
;
return
-
1
;
}
void
libvlc_set_log_verbosity
(
libvlc_instance_t
*
p_instance
,
unsigned
level
)
{
assert
(
p_instance
)
;
p_instance
->
verbosity
=
level
;
(
void
)
p_instance
;
(
void
)
level
;
}
libvlc_log_t
*
libvlc_log_open
(
libvlc_instance_t
*
p_instance
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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