Add media_library.rs
parent
efa07191c1
commit
3eab90b03e
|
@ -11,6 +11,7 @@ mod core;
|
|||
mod media;
|
||||
mod media_player;
|
||||
mod media_list;
|
||||
mod media_library;
|
||||
mod enums;
|
||||
|
||||
pub use enums::*;
|
||||
|
@ -18,4 +19,5 @@ pub use core::*;
|
|||
pub use media::*;
|
||||
pub use media_player::*;
|
||||
pub use media_list::*;
|
||||
pub use media_library::*;
|
||||
|
||||
|
|
|
@ -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) };
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue