Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions mbus/mbus-protocol-aux.c
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ mbus_register_scan_progress(mbus_handle * handle, void (*event)(mbus_handle * ha
/// Register a function for the found events.
//------------------------------------------------------------------------------
void
mbus_register_found_event(mbus_handle * handle, void (*event)(mbus_handle * handle, mbus_frame *frame))
mbus_register_found_event(mbus_handle * handle, void (*event)(mbus_handle * handle, mbus_frame *frame, const char *address))
{
handle->found_event = event;
}
Expand Down Expand Up @@ -2368,7 +2368,7 @@ mbus_probe_secondary_address(mbus_handle *handle, const char *mask, char *matchi

if (handle->found_event)
{
handle->found_event(handle,&reply);
handle->found_event(handle,&reply,addr);
}

return MBUS_PROBE_SINGLE;
Expand Down
4 changes: 2 additions & 2 deletions mbus/mbus-protocol-aux.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ typedef struct _mbus_handle {
void (*recv_event) (unsigned char src_type, const char *buff, size_t len);
void (*send_event) (unsigned char src_type, const char *buff, size_t len);
void (*scan_progress) (struct _mbus_handle *handle, const char *mask);
void (*found_event) (struct _mbus_handle *handle, mbus_frame *frame);
void (*found_event) (struct _mbus_handle *handle, mbus_frame *frame, const char *address);
bool (*abort_scan_check) (struct _mbus_handle *handle);
void *auxdata;
void *userdata; /**< User‑managed pointer for callback context */
Expand Down Expand Up @@ -170,7 +170,7 @@ typedef enum _mbus_context_option {
void mbus_register_recv_event(mbus_handle *handle, void (*event)(unsigned char src_type, const char *buff, size_t len));
void mbus_register_send_event(mbus_handle *handle, void (*event)(unsigned char src_type, const char *buff, size_t len));
void mbus_register_scan_progress(mbus_handle *handle, void (*event)(mbus_handle *handle, const char *mask));
void mbus_register_found_event(mbus_handle *handle, void (*event)(mbus_handle *handle, mbus_frame *frame));
void mbus_register_found_event(mbus_handle *handle, void (*event)(mbus_handle *handle, mbus_frame *frame, const char *address));

/**
* Callback invoked prior to starting the next iteration of a scan.
Expand Down