Add media_list.rs

merge-requests/7/merge
T. Okubo 2015-11-30 22:06:06 +09:00
parent 3b08997e1f
commit 32ac5eb472
2 changed files with 17 additions and 0 deletions

View File

@ -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::*;

15
src/media_list.rs 100644
View File

@ -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) };
}
}