Commit 77806e29 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

libvlc_add_intf: return a value

parent 9963c65d
...@@ -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.
......
...@@ -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 )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment