function naming cleanup.

match other things already written
This commit is contained in:
Grant Limberg 2025-08-13 12:25:36 -07:00
commit bf8c9d0124
2 changed files with 3 additions and 3 deletions

View file

@ -505,7 +505,7 @@ use crate::pubsub::network_listener::NetworkListenerCallback;
#[cfg(feature = "ztcontroller")] #[cfg(feature = "ztcontroller")]
#[no_mangle] #[no_mangle]
pub unsafe extern "C" fn init_network_listener( pub unsafe extern "C" fn network_listener_new(
controller_id: *const c_char, controller_id: *const c_char,
listen_timeout: u64, listen_timeout: u64,
callback: NetworkListenerCallback, callback: NetworkListenerCallback,
@ -569,7 +569,7 @@ pub unsafe extern "C" fn network_listener_listen(ptr: *const Arc<NetworkListener
#[cfg(feature = "ztcontroller")] #[cfg(feature = "ztcontroller")]
#[no_mangle] #[no_mangle]
pub unsafe extern "C" fn init_member_listener( pub unsafe extern "C" fn member_listener_new(
controller_id: *const c_char, controller_id: *const c_char,
listen_timeout: u64, listen_timeout: u64,
callback: MemberListenerCallback, callback: MemberListenerCallback,

View file

@ -9,7 +9,7 @@ use std::time::Duration;
use tokio::sync::mpsc::Receiver; use tokio::sync::mpsc::Receiver;
use tokio::sync::Mutex; 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 * Member Listener listens for member changes and passes them back to the controller