Add media_library.rs

merge-requests/7/merge
T. Okubo 2015-11-30 22:58:23 +09:00
parent efa07191c1
commit 3eab90b03e
2 changed files with 17 additions and 0 deletions

View File

@ -11,6 +11,7 @@ mod core;
mod media; mod media;
mod media_player; mod media_player;
mod media_list; mod media_list;
mod media_library;
mod enums; mod enums;
pub use enums::*; pub use enums::*;
@ -18,4 +19,5 @@ pub use core::*;
pub use media::*; pub use media::*;
pub use media_player::*; pub use media_player::*;
pub use media_list::*; pub use media_list::*;
pub use media_library::*;

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 MediaLibrary {
pub ptr: *mut ffi::libvlc_media_library_t,
}
impl Drop for MediaLibrary {
fn drop(&mut self) {
unsafe{ ffi::libvlc_media_library_release(self.ptr) };
}
}