diff options
author | Mike Blumenkrantz <zmike@osg.samsung.com> | 2014-10-22 11:56:00 -0400 |
---|---|---|
committer | Mike Blumenkrantz <zmike@osg.samsung.com> | 2014-10-22 11:56:00 -0400 |
commit | d7cb8f83074f75660a83e154fb01f559cbfbea9c (patch) | |
tree | 787b1999a7d36474144a791c45c0a5d869d3eaf7 | |
parent | 1de2fb3721b8a189156f4a860009cca01d8b2fd9 (diff) | |
download | servo-d7cb8f83074f75660a83e154fb01f559cbfbea9c.tar.gz servo-d7cb8f83074f75660a83e154fb01f559cbfbea9c.zip |
embedding: set string_list api functions to pub
fixes #3687
-rw-r--r-- | ports/cef/string_list.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ports/cef/string_list.rs b/ports/cef/string_list.rs index fdf7e6ddbd2..8f2fec1d0c7 100644 --- a/ports/cef/string_list.rs +++ b/ports/cef/string_list.rs @@ -11,7 +11,7 @@ use types::{cef_string_list_t,cef_string_t}; //cef_string_list #[no_mangle] -extern "C" fn cef_string_list_alloc() -> *mut cef_string_list_t { +pub extern "C" fn cef_string_list_alloc() -> *mut cef_string_list_t { unsafe { let lt: Box<Vec<*mut cef_string_t>> = box vec!(); mem::transmute(lt) @@ -19,7 +19,7 @@ extern "C" fn cef_string_list_alloc() -> *mut cef_string_list_t { } #[no_mangle] -extern "C" fn cef_string_list_size(lt: *const cef_string_list_t) -> c_int { +pub extern "C" fn cef_string_list_size(lt: *const cef_string_list_t) -> c_int { unsafe { if fptr_is_null(mem::transmute(lt)) { return 0; } let v: Box<Vec<*mut cef_string_t>> = mem::transmute(lt); @@ -28,7 +28,7 @@ extern "C" fn cef_string_list_size(lt: *const cef_string_list_t) -> c_int { } #[no_mangle] -extern "C" fn cef_string_list_append(lt: *mut cef_string_list_t, value: *const cef_string_t) { +pub extern "C" fn cef_string_list_append(lt: *mut cef_string_list_t, value: *const cef_string_t) { unsafe { if fptr_is_null(mem::transmute(lt)) { return; } let mut v: Box<Vec<*mut cef_string_t>> = mem::transmute(lt); @@ -39,7 +39,7 @@ extern "C" fn cef_string_list_append(lt: *mut cef_string_list_t, value: *const c } #[no_mangle] -extern "C" fn cef_string_list_value(lt: *mut cef_string_list_t, index: c_int, value: *mut cef_string_t) -> c_int { +pub extern "C" fn cef_string_list_value(lt: *mut cef_string_list_t, index: c_int, value: *mut cef_string_t) -> c_int { unsafe { if index < 0 || fptr_is_null(mem::transmute(lt)) { return 0; } let v: Box<Vec<*mut cef_string_t>> = mem::transmute(lt); @@ -50,7 +50,7 @@ extern "C" fn cef_string_list_value(lt: *mut cef_string_list_t, index: c_int, va } #[no_mangle] -extern "C" fn cef_string_list_clear(lt: *mut cef_string_list_t) { +pub extern "C" fn cef_string_list_clear(lt: *mut cef_string_list_t) { unsafe { if fptr_is_null(mem::transmute(lt)) { return; } let mut v: Box<Vec<*mut cef_string_t>> = mem::transmute(lt); @@ -64,7 +64,7 @@ extern "C" fn cef_string_list_clear(lt: *mut cef_string_list_t) { } #[no_mangle] -extern "C" fn cef_string_list_free(lt: *mut cef_string_list_t) { +pub extern "C" fn cef_string_list_free(lt: *mut cef_string_list_t) { unsafe { if fptr_is_null(mem::transmute(lt)) { return; } let mut v: Box<Vec<*mut cef_string_t>> = mem::transmute(lt); @@ -74,7 +74,7 @@ extern "C" fn cef_string_list_free(lt: *mut cef_string_list_t) { } #[no_mangle] -extern "C" fn cef_string_list_copy(lt: *mut cef_string_list_t) -> *mut cef_string_list_t { +pub extern "C" fn cef_string_list_copy(lt: *mut cef_string_list_t) -> *mut cef_string_list_t { unsafe { if fptr_is_null(mem::transmute(lt)) { return 0 as *mut cef_string_list_t; } let v: Box<Vec<*mut cef_string_t>> = mem::transmute(lt); |