mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-19 13:01:39 -07:00
function naming cleanup.
match other things already written
This commit is contained in:
parent
0e94891e5b
commit
bf8c9d0124
2 changed files with 3 additions and 3 deletions
|
@ -505,7 +505,7 @@ use crate::pubsub::network_listener::NetworkListenerCallback;
|
|||
|
||||
#[cfg(feature = "ztcontroller")]
|
||||
#[no_mangle]
|
||||
pub unsafe extern "C" fn init_network_listener(
|
||||
pub unsafe extern "C" fn network_listener_new(
|
||||
controller_id: *const c_char,
|
||||
listen_timeout: u64,
|
||||
callback: NetworkListenerCallback,
|
||||
|
@ -569,7 +569,7 @@ pub unsafe extern "C" fn network_listener_listen(ptr: *const Arc<NetworkListener
|
|||
|
||||
#[cfg(feature = "ztcontroller")]
|
||||
#[no_mangle]
|
||||
pub unsafe extern "C" fn init_member_listener(
|
||||
pub unsafe extern "C" fn member_listener_new(
|
||||
controller_id: *const c_char,
|
||||
listen_timeout: u64,
|
||||
callback: MemberListenerCallback,
|
||||
|
|
|
@ -9,7 +9,7 @@ use std::time::Duration;
|
|||
use tokio::sync::mpsc::Receiver;
|
||||
use tokio::sync::Mutex;
|
||||
|
||||
pub type MemberListenerCallback = extern "C" fn(*const c_void, *const u8, usize);
|
||||
pub type MemberListenerCallback = extern "C" fn(*mut c_void, *const u8, usize);
|
||||
|
||||
/**
|
||||
* Member Listener listens for member changes and passes them back to the controller
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue