|
@@ -2,6 +2,7 @@ use std::ffi::CStr;
|
2
|
2
|
use std::ffi::CString;
|
3
|
3
|
use std::os::raw::c_char;
|
4
|
4
|
|
|
5
|
+#[no_mangle]
|
5
|
6
|
#[allow(non_snake_case)]
|
6
|
7
|
pub extern "C" fn DoSomeInterestingWork(count: i32, content: *const c_char) -> *const c_char {
|
7
|
8
|
let content_string = unsafe { CStr::from_ptr(content) }
|
|
@@ -22,6 +23,7 @@ pub extern "C" fn DoSomeInterestingWork(count: i32, content: *const c_char) -> *
|
22
|
23
|
.into_raw()
|
23
|
24
|
}
|
24
|
25
|
|
|
26
|
+#[no_mangle]
|
25
|
27
|
#[allow(non_snake_case)]
|
26
|
28
|
pub extern "C" fn FreeString(content: *mut c_char) {
|
27
|
29
|
unsafe {
|