aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbors-servo <metajack+bors@gmail.com>2014-10-22 12:54:40 -0600
committerbors-servo <metajack+bors@gmail.com>2014-10-22 12:54:40 -0600
commitbc1f610d973ca4e52e75aaeb84a1156bcd1d59cc (patch)
tree9961d99ddb5e7eb2ff6701e1e351181c603a7d2e
parent01f6a8102dfbb7eaef564acf8891088011905b59 (diff)
parentd7cb8f83074f75660a83e154fb01f559cbfbea9c (diff)
downloadservo-bc1f610d973ca4e52e75aaeb84a1156bcd1d59cc.tar.gz
servo-bc1f610d973ca4e52e75aaeb84a1156bcd1d59cc.zip
auto merge of #3775 : zmike/servo/embedding-dead_code, r=jdm
fixes #3687 r+ @jdm @larsbergstrom ?
-rw-r--r--ports/cef/string_list.rs14
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);