/// Try to start a user interface for the libvlc instance.
Try to start a user interface for the libvlc instance.
Try to start a user interface for the libvlc instance .
pub fn add_intf(&self, name: &str) -> Result<(), ()> {
        let cstr = to_cstr(name);
        let result = unsafe{
            sys::libvlc_add_intf(self.ptr, cstr.as_ptr())
        };
        if result == 0 { Ok(()) }
        else { Err(()) }
    }
pub fn add_intf ( & self , name : & str ) -> Result < ( ) , ( ) > { let cstr = to_cstr ( name ) ; let result = unsafe { sys :: libvlc_add_intf ( self . ptr , cstr . as_ptr ( ) ) } ; if result == 0 { Ok ( ( ) ) } else { Err ( ( ) ) } }
Try to start a user interface for the libvlc instance.
Try to start a user interface for the libvlc instance .
&self
name
&str