Skip to content

Commit

Permalink
cleanup function imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Geal committed Sep 7, 2016
1 parent 5daf7c2 commit 6e55a01
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
7 changes: 0 additions & 7 deletions src/ffi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,11 +311,7 @@ pub struct es_format_t {

#[link(name = "vlccore")]
extern {
//ssize_t stream_Peek(stream_t *, const uint8_t **, size_t)
pub fn stream_Peek(stream: *mut stream_t, buf: *mut *const uint8_t, size: size_t) -> ssize_t;
//VLC_API void vlc_Log(vlc_object_t *obj, int prio, const char *module,
// const char *file, unsigned line, const char *func,
// const char *format, ...) VLC_FORMAT(7, 8);

// https://www.videolan.org/developers/vlc/doc/doxygen/html/group__stream.html
pub fn stream_Read(stream: *mut stream_t, buf: *const c_void, size: size_t) -> ssize_t;
Expand All @@ -328,8 +324,5 @@ extern {
i_bitrate: int64_t, i_align: c_int, i_query: c_int, args: *const va_list) -> c_int;

pub fn es_format_Init(format: *mut es_format_t, i_cat: c_int, i_codec: vlc_fourcc_t);
//FIXME: the actual vlc_Log does not the one defined in include/vlc_messages.h, why?
//pub fn vlc_Log(obj: *mut vlc_object_t, priority: c_int, module: *const uint8_t, file: *const uint8_t,
// line: c_uint, func: *const uint8_t, format: *const uint8_t, ...);
pub fn vlc_Log(obj: *mut vlc_object_t, priority: c_int, module: *const uint8_t, format: *const uint8_t, ...);
}
2 changes: 0 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ extern crate flavors;
extern crate core;
#[macro_use] extern crate va_list as rs_va_list;

#[link(name = "vlccore")] extern {}

#[macro_use]
mod vlc;

Expand Down

0 comments on commit 6e55a01

Please # to comment.