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
77806e29
Commit
77806e29
authored
Aug 09, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libvlc_add_intf: return a value
parent
9963c65d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
include/vlc/libvlc.h
include/vlc/libvlc.h
+3
-2
src/control/core.c
src/control/core.c
+5
-2
No files found.
include/vlc/libvlc.h
View file @
77806e29
...
@@ -161,10 +161,11 @@ VLC_PUBLIC_API void libvlc_retain( libvlc_instance_t * );
...
@@ -161,10 +161,11 @@ VLC_PUBLIC_API void libvlc_retain( libvlc_instance_t * );
* \param p_instance the instance
* \param p_instance the instance
* \param name interface name, or NULL for default
* \param name interface name, or NULL for default
* \param p_exception an initialized exception pointer
* \param p_exception an initialized exception pointer
* \return 0 on success, -1 on error.
*/
*/
VLC_PUBLIC_API
VLC_PUBLIC_API
void
libvlc_add_intf
(
libvlc_instance_t
*
p_instance
,
const
char
*
name
,
int
libvlc_add_intf
(
libvlc_instance_t
*
p_instance
,
const
char
*
name
,
libvlc_exception_t
*
p_exception
);
libvlc_exception_t
*
p_exception
);
/**
/**
* Waits until an interface causes the instance to exit.
* Waits until an interface causes the instance to exit.
...
...
src/control/core.c
View file @
77806e29
...
@@ -184,11 +184,14 @@ void libvlc_release( libvlc_instance_t *p_instance )
...
@@ -184,11 +184,14 @@ void libvlc_release( libvlc_instance_t *p_instance )
}
}
}
}
void
libvlc_add_intf
(
libvlc_instance_t
*
p_i
,
const
char
*
name
,
int
libvlc_add_intf
(
libvlc_instance_t
*
p_i
,
const
char
*
name
,
libvlc_exception_t
*
p_e
)
libvlc_exception_t
*
p_e
)
{
{
if
(
libvlc_InternalAddIntf
(
p_i
->
p_libvlc_int
,
name
)
)
if
(
libvlc_InternalAddIntf
(
p_i
->
p_libvlc_int
,
name
)
)
RAISEVOID
(
"Interface initialization failed"
);
{
libvlc_exception_raise
(
p_e
,
"Interface initialization failed"
);
return
-
1
;
}
}
}
void
libvlc_wait
(
libvlc_instance_t
*
p_i
)
void
libvlc_wait
(
libvlc_instance_t
*
p_i
)
...
...
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