From d7cb8f83074f75660a83e154fb01f559cbfbea9c Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Wed, 22 Oct 2014 11:56:00 -0400 Subject: [PATCH] embedding: set string_list api functions to pub fixes #3687 --- ports/cef/string_list.rs | 14 +++++++------- 1 file 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> = 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> = 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> = 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> = 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> = 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> = 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> = mem::transmute(lt);