Add media_list.rs
parent
3b08997e1f
commit
32ac5eb472
|
@ -10,10 +10,12 @@ mod tools;
|
|||
mod core;
|
||||
mod media;
|
||||
mod media_player;
|
||||
mod media_list;
|
||||
mod enums;
|
||||
|
||||
pub use enums::*;
|
||||
pub use core::*;
|
||||
pub use media::*;
|
||||
pub use media_player::*;
|
||||
pub use media_list::*;
|
||||
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
// Copyright (c) 2015 T. Okubo
|
||||
// This file is part of vlc-rs.
|
||||
// Licensed under the MIT license, see the LICENSE file.
|
||||
|
||||
use ffi;
|
||||
|
||||
pub struct MediaList {
|
||||
pub ptr: *mut ffi::libvlc_media_list_t,
|
||||
}
|
||||
|
||||
impl Drop for MediaList {
|
||||
fn drop(&mut self) {
|
||||
unsafe{ ffi::libvlc_media_list_release(self.ptr) };
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue