From 32ac5eb47274f82ffb35ca7542c08124fe122649 Mon Sep 17 00:00:00 2001 From: "T. Okubo" Date: Mon, 30 Nov 2015 22:06:06 +0900 Subject: [PATCH] Add media_list.rs --- src/lib.rs | 2 ++ src/media_list.rs | 15 +++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 src/media_list.rs diff --git a/src/lib.rs b/src/lib.rs index a75a6b3..046e022 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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::*; diff --git a/src/media_list.rs b/src/media_list.rs new file mode 100644 index 0000000..e9a46c1 --- /dev/null +++ b/src/media_list.rs @@ -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) }; + } +}