/commonlibrary/rust/ylong_runtime/ylong_ffrt/src/ |
H A D | sys_event.rs | 14 use libc::{c_int, c_uchar, c_uint, c_ulonglong, c_void}; 18 type FfrtSysEventHandleT = *mut c_void; 19 type DestroyFunc = extern "C" fn(*mut c_void); 20 type FfrtFdCallBack = extern "C" fn(*const c_void, c_uint, c_uchar); 21 type FfrtExecHook = extern "C" fn(*mut c_void); 22 type FfrtTimerHandle = *mut c_void; 30 fn ffrt_sys_event_destroy(event: FfrtSysEventHandleT, func: DestroyFunc, arg: *mut c_void); in ffrt_sys_event_destroy() 37 data: *const c_void, in ffrt_poller_register() 48 waker: *mut c_void, in ffrt_timer_start()
|
H A D | task.rs | 16 use libc::{c_char, c_void}; 20 type FfrtHook = extern "C" fn(*mut c_void); 22 type FfrtExecHook = extern "C" fn(*mut c_void) -> FfrtRet; 24 type RawTaskCtx = *mut c_void; 113 fn ffrt_alloc_auto_free_function_storage_base() -> *const c_void; in ffrt_alloc_auto_free_function_storage_base() 118 data: *mut c_void, in ffrt_submit_coroutine()
|
H A D | lib.rs | 21 use libc::{c_int, c_void}; 50 items: *const *const c_void,
|
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/ffrt/ |
H A D | ffrt_timer.rs | 16 use libc::c_void; 18 type FfrtTimerHandle = *mut c_void; 24 extern "C" fn timer_wake_hook(data: *mut c_void) { in timer_wake_hook() 31 let data = waker as *mut c_void;
|
H A D | spawner.rs | 18 use libc::c_void; 26 extern "C" fn exec_future(data: *mut c_void) -> FfrtRet { in exec_future() 35 extern "C" fn exec_drop(data: *mut c_void) { in exec_drop() 53 let data = Box::into_raw(t) as *mut c_void;
|
H A D | ffrt_task.rs | 14 use libc::c_void; 17 type RawTaskCtx = *mut c_void;
|
/commonlibrary/rust/ylong_http/ylong_http_client/src/util/c_openssl/ssl/ |
H A D | ctx.rs | 18 use libc::{c_int, c_uint, c_void}; 265 SSL_CTX_set_cert_verify_callback(ptr, cert_verify, verifier as *mut c_void); 317 list.as_ptr() as *const c_void as *mut c_void, 323 SSL_CTX_set1_sigalgs_list(ptr, list.as_ptr() as *const c_void as *mut c_void)
|
H A D | ssl_base.rs | 21 use libc::{c_char, c_int, c_long, c_void}; 119 unsafe { SSL_read(self.as_ptr(), buf.as_ptr() as *mut c_void, len) } 124 unsafe { SSL_write(self.as_ptr(), buf.as_ptr() as *const c_void, len) } 192 name as *mut c_void, in ssl_set_tlsext_host_name() 196 return SSL_set_tlsext_host_name(s, name as *mut c_void) as c_long; in ssl_set_tlsext_host_name()
|
/commonlibrary/c_utils/base/src/rust/ |
H A D | ashmem.rs | 49 pub type c_void; types 50 /// Cast c_char to c_void 52 pub unsafe fn AsVoidPtr(inPtr: *const c_char) -> *const c_void; in AsVoidPtr() 54 /// Cast c_char to c_void 56 pub unsafe fn AsCharPtr(inPtr: *const c_void) -> *const c_char; in AsCharPtr() 92 data: *const c_void, in WriteToAshmem() 101 pub unsafe fn ReadFromAshmem(self: &Ashmem, size: i32, offset: i32) -> *const c_void; in ReadFromAshmem()
|
/commonlibrary/rust/ylong_runtime/ylong_signal/src/ |
H A D | unix.rs | 18 use libc::{c_int, c_void, sigaction, siginfo_t}; 56 pub(crate) extern "C" fn sig_handler(sig_num: c_int, sig_info: *mut siginfo_t, data: *mut c_void) { 87 fn execute_act(act: &sigaction, sig_num: c_int, sig_info: *mut siginfo_t, data: *mut c_void) { in execute_act() 104 type Action = extern "C" fn(c_int, *mut siginfo_t, *mut c_void); in execute_act()
|
/commonlibrary/c_utils/base/include/ |
H A D | ashmem.h | 38 using c_void = void; 39 const c_void* AsVoidPtr(const char* inPtr); 40 const char* AsCharPtr(const c_void* inPtr);
|
/commonlibrary/rust/ylong_runtime/ylong_io/src/sys/windows/ |
H A D | winapi.rs | 18 use libc::{c_char, c_int, c_long, c_uchar, c_ulong, c_ushort, c_void}; 27 pub type PVOID = *mut c_void; 44 apcContext: *mut c_void, 165 lpvInBuffer: *const c_void, in WSAIoctl() 167 lpvOutBuffer: *mut c_void, in WSAIoctl() 208 pub Pointer: *mut c_void, 257 pub Pointer: *mut c_void,
|
H A D | afd.rs | 14 use std::ffi::c_void; 140 overlapped: *mut c_void, 142 let afd_info = (info as *mut AfdPollInfo).cast::<c_void>();
|
H A D | selector.rs | 15 use std::ffi::c_void; 574 (&mut base_socket as *mut RawSocket).cast::<c_void>(), in base_socket_inner() 607 fn into_overlapped(sock_state: Pin<Arc<Mutex<SockState>>>) -> *mut c_void { in into_overlapped()
|
/commonlibrary/rust/ylong_runtime/ylong_io/src/sys/unix/tcp/ |
H A D | socket.rs | 21 c_int, c_void, linger, socklen_t, AF_INET, AF_INET6, SOCK_STREAM, SOL_SOCKET, SO_LINGER, 57 (&set_value as *const c_int).cast::<c_void>(), 125 (&payload as *const linger).cast::<c_void>(),
|
/commonlibrary/c_utils/base/src/ |
H A D | ashmem.cpp | 55 const c_void* AsVoidPtr(const char* inPtr) in AsVoidPtr() 57 return static_cast<const c_void*>(inPtr); in AsVoidPtr() 60 const char* AsCharPtr(const c_void* inPtr) in AsCharPtr()
|
/commonlibrary/c_utils/base/test/unittest/rust/ |
H A D | rust_utils_ashmem_test.rs | 47 let c_content_ptr: *const ashmem::ffi::c_void = unsafe { ashmem::ffi::AsVoidPtr(c_content.as_ptr()) }; in test_ashmem_ffi_write_read_002() 82 let c_content_ptr: *const ashmem::ffi::c_void = unsafe { ashmem::ffi::AsVoidPtr(c_content.as_ptr()) }; in test_ashmem_ffi_write_read_003() 121 let c_content_ptr: *const ashmem::ffi::c_void = unsafe { ashmem::ffi::AsVoidPtr(c_content.as_ptr()) }; in test_ashmem_ffi_write_read_004() 156 let c_content_ptr: *const ashmem::ffi::c_void = unsafe { ashmem::ffi::AsVoidPtr(c_content.as_ptr()) }; in test_ashmem_ffi_write_read_005() 215 let c_content_ptr: *const ashmem::ffi::c_void = unsafe { ashmem::ffi::AsVoidPtr(c_content.as_ptr()) }; in test_ashmem_ffi_invalid_003() 238 let c_content_ptr: *const ashmem::ffi::c_void = unsafe { ashmem::ffi::AsVoidPtr(c_content.as_ptr()) }; in test_ashmem_ffi_invalid_004() 279 let c_content_ptr: *const ashmem::ffi::c_void = unsafe { ashmem::ffi::AsVoidPtr(c_content.as_ptr()) }; in test_ashmem_ffi_invalid_006()
|
/commonlibrary/rust/ylong_http/ylong_http_client/src/util/c_openssl/ |
H A D | bio.rs | 21 use libc::{c_char, c_int, c_long, c_void, strlen}; 187 _ptr: *mut c_void,
|
/commonlibrary/rust/ylong_runtime/ylong_io/src/sys/unix/ |
H A D | kqueue.rs | 14 use std::ffi::c_void; 211 udata: udata as *mut c_void, in kevent_new() 243 // kevent has a member `udata` which has type of `*mut c_void`, therefore it
|
/commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/quic/ |
H A D | mod.rs | 16 use std::ffi::c_void; 98 &config as *const _ as *const c_void, 99 new_ssl.get_raw_ptr() as *mut c_void, 290 config: *const c_void, 291 ssl: *mut c_void, 293 ) -> *mut c_void;
|
/commonlibrary/rust/ylong_json/src/ |
H A D | adapter.rs | 19 use libc::{c_char, c_double, c_int, c_longlong, c_void, strlen}; 35 pub type YlongJson = c_void; 3017 free(keys as *mut c_void); in ut_ylong_json_get_all_object_items() 3018 free(values as *mut c_void); in ut_ylong_json_get_all_object_items() 3031 free(values as *mut c_void); in ut_ylong_json_get_all_object_items() 3043 free(keys as *mut c_void); in ut_ylong_json_get_all_object_items() 3057 free(keys as *mut c_void); in ut_ylong_json_get_all_object_items() 3058 free(values as *mut c_void); in ut_ylong_json_get_all_object_items() 3093 free(keys as *mut c_void); in ut_ylong_json_get_all_object_items() 3094 free(values as *mut c_void); in ut_ylong_json_get_all_object_items() [all...] |
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/net/ |
H A D | driver.rs | 29 use libc::{c_void, c_int, c_uint, c_uchar}; 323 extern "C" fn ffrt_dispatch_signal_event(data: *const c_void, _ready: c_uint, _new_tick: c_uchar) { in ffrt_dispatch_signal_event() 333 extern "C" fn ffrt_dispatch_event(data: *const c_void, ready: c_uint, new_tick: c_uchar) { in ffrt_dispatch_event() 418 token.0 as *const c_void, 439 token as *const c_void,
|