use self::libc::{EINVAL, ENOKEY, ENOMEM};
use std::collections::VecDeque;
-use std::ffi::{c_char, c_int, c_uchar, c_uint, c_void, CStr, CString};
+use std::ffi::{c_char, c_int, c_uchar, c_uint, c_void, c_ulong, CStr, CString};
use std::ptr;
const TIZEN_ERROR_BUNDLE: i32 = -0x01180000;
kv: *mut c_void,
array_val: *mut *mut *mut c_void,
array_len: *mut c_uint,
- array_element_size: *mut *mut c_uint,
+ array_element_size: *mut *mut c_ulong,
) -> c_int;
}
fn get_str_vec(&self) -> Result<Vec<String>, BundleError> {
let mut array_val: *mut *mut c_void = std::ptr::null_mut();
let mut array_len: c_uint = 0;
- let mut array_element_size: *mut c_uint = std::ptr::null_mut();
+ let mut array_element_size: *mut c_ulong = std::ptr::null_mut();
let result = unsafe {
bundle_keyval_get_array_val(
self.handle,
fn get_bytes_vec(&self) -> Result<Vec<Vec<u8>>, BundleError> {
let mut array_val: *mut *mut c_void = std::ptr::null_mut();
let mut array_len: c_uint = 0;
- let mut array_element_size: *mut c_uint = std::ptr::null_mut();
+ let mut array_element_size: *mut c_ulong = std::ptr::null_mut();
let result = unsafe {
bundle_keyval_get_array_val(
self.handle,