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
da7262d7
Commit
da7262d7
authored
Nov 13, 2006
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix another bunch of warnings
parent
d5a9c50c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
17 deletions
+21
-17
include/libvlc_internal.h
include/libvlc_internal.h
+2
-2
include/vlc_interface.h
include/vlc_interface.h
+1
-1
include/vlc_symbols.h
include/vlc_symbols.h
+1
-1
src/interface/interface.c
src/interface/interface.c
+14
-10
src/libvlc-common.c
src/libvlc-common.c
+3
-3
No files found.
include/libvlc_internal.h
View file @
da7262d7
...
@@ -39,8 +39,8 @@ int libvlc_InternalInit( libvlc_int_t *, int, char *ppsz_argv[] );
...
@@ -39,8 +39,8 @@ int libvlc_InternalInit( libvlc_int_t *, int, char *ppsz_argv[] );
int
libvlc_InternalCleanup
(
libvlc_int_t
*
);
int
libvlc_InternalCleanup
(
libvlc_int_t
*
);
int
libvlc_InternalDestroy
(
libvlc_int_t
*
,
vlc_bool_t
);
int
libvlc_InternalDestroy
(
libvlc_int_t
*
,
vlc_bool_t
);
int
libvlc_InternalAddIntf
(
libvlc_int_t
*
,
c
har
const
*
,
vlc_bool_t
,
int
libvlc_InternalAddIntf
(
libvlc_int_t
*
,
c
onst
char
*
,
vlc_bool_t
,
vlc_bool_t
,
int
,
c
har
*
*
);
vlc_bool_t
,
int
,
c
onst
char
*
const
*
);
/***************************************************************************
/***************************************************************************
* Opaque structures for libvlc API
* Opaque structures for libvlc API
...
...
include/vlc_interface.h
View file @
da7262d7
...
@@ -114,7 +114,7 @@ struct intf_dialog_args_t
...
@@ -114,7 +114,7 @@ struct intf_dialog_args_t
* Prototypes
* Prototypes
*****************************************************************************/
*****************************************************************************/
#define intf_Create(a,b,c,d) __intf_Create(VLC_OBJECT(a),b,c,d)
#define intf_Create(a,b,c,d) __intf_Create(VLC_OBJECT(a),b,c,d)
VLC_EXPORT
(
intf_thread_t
*
,
__intf_Create
,
(
vlc_object_t
*
,
const
char
*
,
int
,
c
har
*
*
)
);
VLC_EXPORT
(
intf_thread_t
*
,
__intf_Create
,
(
vlc_object_t
*
,
const
char
*
,
int
,
c
onst
char
*
const
*
)
);
VLC_EXPORT
(
int
,
intf_RunThread
,
(
intf_thread_t
*
)
);
VLC_EXPORT
(
int
,
intf_RunThread
,
(
intf_thread_t
*
)
);
VLC_EXPORT
(
void
,
intf_StopThread
,
(
intf_thread_t
*
)
);
VLC_EXPORT
(
void
,
intf_StopThread
,
(
intf_thread_t
*
)
);
VLC_EXPORT
(
void
,
intf_Destroy
,
(
intf_thread_t
*
)
);
VLC_EXPORT
(
void
,
intf_Destroy
,
(
intf_thread_t
*
)
);
...
...
include/vlc_symbols.h
View file @
da7262d7
...
@@ -234,7 +234,7 @@ struct module_symbols_t
...
@@ -234,7 +234,7 @@ struct module_symbols_t
decoder_t
*
(
*
input_DecoderNew_inner
)
(
input_thread_t
*
,
es_format_t
*
,
vlc_bool_t
b_force_decoder
);
decoder_t
*
(
*
input_DecoderNew_inner
)
(
input_thread_t
*
,
es_format_t
*
,
vlc_bool_t
b_force_decoder
);
void
(
*
input_DecoderDelete_inner
)
(
decoder_t
*
);
void
(
*
input_DecoderDelete_inner
)
(
decoder_t
*
);
void
(
*
input_DecoderDecode_inner
)
(
decoder_t
*
,
block_t
*
);
void
(
*
input_DecoderDecode_inner
)
(
decoder_t
*
,
block_t
*
);
intf_thread_t
*
(
*
__intf_Create_inner
)
(
vlc_object_t
*
,
const
char
*
,
int
,
c
har
*
*
);
intf_thread_t
*
(
*
__intf_Create_inner
)
(
vlc_object_t
*
,
const
char
*
,
int
,
c
onst
char
*
const
*
);
int
(
*
intf_RunThread_inner
)
(
intf_thread_t
*
);
int
(
*
intf_RunThread_inner
)
(
intf_thread_t
*
);
void
(
*
intf_StopThread_inner
)
(
intf_thread_t
*
);
void
(
*
intf_StopThread_inner
)
(
intf_thread_t
*
);
void
(
*
intf_Destroy_inner
)
(
intf_thread_t
*
);
void
(
*
intf_Destroy_inner
)
(
intf_thread_t
*
);
...
...
src/interface/interface.c
View file @
da7262d7
...
@@ -91,7 +91,7 @@ static void Manager( intf_thread_t *p_intf );
...
@@ -91,7 +91,7 @@ static void Manager( intf_thread_t *p_intf );
* \return a pointer to the created interface thread, NULL on error
* \return a pointer to the created interface thread, NULL on error
*/
*/
intf_thread_t
*
__intf_Create
(
vlc_object_t
*
p_this
,
const
char
*
psz_module
,
intf_thread_t
*
__intf_Create
(
vlc_object_t
*
p_this
,
const
char
*
psz_module
,
int
i_options
,
c
har
*
*
ppsz_options
)
int
i_options
,
c
onst
char
*
const
*
ppsz_options
)
{
{
intf_thread_t
*
p_intf
;
intf_thread_t
*
p_intf
;
int
i
;
int
i
;
...
@@ -320,7 +320,7 @@ static void Manager( intf_thread_t *p_intf )
...
@@ -320,7 +320,7 @@ static void Manager( intf_thread_t *p_intf )
*****************************************************************************/
*****************************************************************************/
static
void
RunInterface
(
intf_thread_t
*
p_intf
)
static
void
RunInterface
(
intf_thread_t
*
p_intf
)
{
{
static
char
*
ppsz_interfaces
[]
=
static
c
onst
c
har
*
ppsz_interfaces
[]
=
{
{
"skins2"
,
"Skins 2"
,
"skins2"
,
"Skins 2"
,
#ifndef WIN32
#ifndef WIN32
...
@@ -328,7 +328,7 @@ static void RunInterface( intf_thread_t *p_intf )
...
@@ -328,7 +328,7 @@ static void RunInterface( intf_thread_t *p_intf )
#endif
#endif
NULL
,
NULL
NULL
,
NULL
};
};
char
**
ppsz_parser
;
c
onst
c
har
**
ppsz_parser
;
vlc_list_t
*
p_list
;
vlc_list_t
*
p_list
;
int
i
;
int
i
;
...
@@ -351,8 +351,8 @@ static void RunInterface( intf_thread_t *p_intf )
...
@@ -351,8 +351,8 @@ static void RunInterface( intf_thread_t *p_intf )
module_t
*
p_module
=
(
module_t
*
)
p_list
->
p_values
[
i
].
p_object
;
module_t
*
p_module
=
(
module_t
*
)
p_list
->
p_values
[
i
].
p_object
;
if
(
!
strcmp
(
p_module
->
psz_object_name
,
ppsz_parser
[
0
]
)
)
if
(
!
strcmp
(
p_module
->
psz_object_name
,
ppsz_parser
[
0
]
)
)
{
{
val
.
psz_string
=
ppsz_parser
[
0
];
val
.
psz_string
=
(
char
*
)
ppsz_parser
[
0
];
text
.
psz_string
=
_
(
ppsz_parser
[
1
]);
text
.
psz_string
=
(
char
*
)
_
(
ppsz_parser
[
1
]);
var_Change
(
p_intf
,
"intf-switch"
,
VLC_VAR_ADDCHOICE
,
var_Change
(
p_intf
,
"intf-switch"
,
VLC_VAR_ADDCHOICE
,
&
val
,
&
text
);
&
val
,
&
text
);
break
;
break
;
...
@@ -369,15 +369,19 @@ static void RunInterface( intf_thread_t *p_intf )
...
@@ -369,15 +369,19 @@ static void RunInterface( intf_thread_t *p_intf )
text
.
psz_string
=
_
(
"Add Interface"
);
text
.
psz_string
=
_
(
"Add Interface"
);
var_Change
(
p_intf
,
"intf-add"
,
VLC_VAR_SETTEXT
,
&
text
,
NULL
);
var_Change
(
p_intf
,
"intf-add"
,
VLC_VAR_SETTEXT
,
&
text
,
NULL
);
val
.
psz_string
=
"rc"
;
text
.
psz_string
=
"Console"
;
val
.
psz_string
=
(
char
*
)
"rc"
;
text
.
psz_string
=
(
char
*
)
"Console"
;
var_Change
(
p_intf
,
"intf-add"
,
VLC_VAR_ADDCHOICE
,
&
val
,
&
text
);
var_Change
(
p_intf
,
"intf-add"
,
VLC_VAR_ADDCHOICE
,
&
val
,
&
text
);
val
.
psz_string
=
"telnet"
;
text
.
psz_string
=
_
(
"Telnet Interface"
);
val
.
psz_string
=
(
char
*
)
"telnet"
;
text
.
psz_string
=
(
char
*
)
_
(
"Telnet Interface"
);
var_Change
(
p_intf
,
"intf-add"
,
VLC_VAR_ADDCHOICE
,
&
val
,
&
text
);
var_Change
(
p_intf
,
"intf-add"
,
VLC_VAR_ADDCHOICE
,
&
val
,
&
text
);
val
.
psz_string
=
"http"
;
text
.
psz_string
=
_
(
"Web Interface"
);
val
.
psz_string
=
(
char
*
)
"http"
;
text
.
psz_string
=
(
char
*
)
_
(
"Web Interface"
);
var_Change
(
p_intf
,
"intf-add"
,
VLC_VAR_ADDCHOICE
,
&
val
,
&
text
);
var_Change
(
p_intf
,
"intf-add"
,
VLC_VAR_ADDCHOICE
,
&
val
,
&
text
);
val
.
psz_string
=
"logger"
;
text
.
psz_string
=
_
(
"Debug logging"
);
val
.
psz_string
=
(
char
*
)
"logger"
;
text
.
psz_string
=
(
char
*
)
_
(
"Debug logging"
);
var_Change
(
p_intf
,
"intf-add"
,
VLC_VAR_ADDCHOICE
,
&
val
,
&
text
);
var_Change
(
p_intf
,
"intf-add"
,
VLC_VAR_ADDCHOICE
,
&
val
,
&
text
);
val
.
psz_string
=
"gestures"
;
text
.
psz_string
=
_
(
"Mouse Gestures"
);
val
.
psz_string
=
(
char
*
)
"gestures"
;
text
.
psz_string
=
(
char
*
)
_
(
"Mouse Gestures"
);
var_Change
(
p_intf
,
"intf-add"
,
VLC_VAR_ADDCHOICE
,
&
val
,
&
text
);
var_Change
(
p_intf
,
"intf-add"
,
VLC_VAR_ADDCHOICE
,
&
val
,
&
text
);
var_AddCallback
(
p_intf
,
"intf-add"
,
AddIntfCallback
,
NULL
);
var_AddCallback
(
p_intf
,
"intf-add"
,
AddIntfCallback
,
NULL
);
...
...
src/libvlc-common.c
View file @
da7262d7
...
@@ -745,7 +745,7 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc, char *ppsz_argv[] )
...
@@ -745,7 +745,7 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc, char *ppsz_argv[] )
#ifdef HAVE_SYSLOG_H
#ifdef HAVE_SYSLOG_H
if
(
config_GetInt
(
p_libvlc
,
"syslog"
)
==
1
)
if
(
config_GetInt
(
p_libvlc
,
"syslog"
)
==
1
)
{
{
char
*
psz_logmode
=
"logmode=syslog"
;
c
onst
c
har
*
psz_logmode
=
"logmode=syslog"
;
libvlc_InternalAddIntf
(
0
,
"logger,none"
,
VLC_FALSE
,
VLC_FALSE
,
libvlc_InternalAddIntf
(
0
,
"logger,none"
,
VLC_FALSE
,
VLC_FALSE
,
1
,
&
psz_logmode
);
1
,
&
psz_logmode
);
}
}
...
@@ -920,7 +920,7 @@ int libvlc_InternalDestroy( libvlc_int_t *p_libvlc, vlc_bool_t b_release )
...
@@ -920,7 +920,7 @@ int libvlc_InternalDestroy( libvlc_int_t *p_libvlc, vlc_bool_t b_release )
int
libvlc_InternalAddIntf
(
libvlc_int_t
*
p_libvlc
,
int
libvlc_InternalAddIntf
(
libvlc_int_t
*
p_libvlc
,
char
const
*
psz_module
,
char
const
*
psz_module
,
vlc_bool_t
b_block
,
vlc_bool_t
b_play
,
vlc_bool_t
b_block
,
vlc_bool_t
b_play
,
int
i_options
,
c
har
*
*
ppsz_options
)
int
i_options
,
c
onst
char
*
const
*
ppsz_options
)
{
{
int
i_err
;
int
i_err
;
intf_thread_t
*
p_intf
;
intf_thread_t
*
p_intf
;
...
@@ -977,7 +977,7 @@ static void SetLanguage ( char const *psz_lang )
...
@@ -977,7 +977,7 @@ static void SetLanguage ( char const *psz_lang )
#if defined( ENABLE_NLS ) \
#if defined( ENABLE_NLS ) \
&& ( defined( HAVE_GETTEXT ) || defined( HAVE_INCLUDED_GETTEXT ) )
&& ( defined( HAVE_GETTEXT ) || defined( HAVE_INCLUDED_GETTEXT ) )
char
*
psz_path
;
c
onst
c
har
*
psz_path
;
#if defined( __APPLE__ ) || defined ( WIN32 ) || defined( SYS_BEOS )
#if defined( __APPLE__ ) || defined ( WIN32 ) || defined( SYS_BEOS )
char
psz_tmp
[
1024
];
char
psz_tmp
[
1024
];
#endif
#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