New events for wildcard search

This commit is contained in:
Stefan Wahren
2012-05-20 03:22:02 +02:00
parent 45ebed05b7
commit f41b982093
3 changed files with 204 additions and 0 deletions

View File

@ -128,6 +128,18 @@ typedef struct _mbus_record {
} mbus_record;
/**
* Event callback functions
*/
extern void (*_mbus_scan_progress)(mbus_handle * handle, const char *mask);
extern void (*_mbus_found_event)(mbus_handle * handle, mbus_frame *frame);
/**
* Event register functions
*/
void mbus_register_scan_progress(void (*event)(mbus_handle * handle, const char *mask));
void mbus_register_found_event(void (*event)(mbus_handle * handle, mbus_frame *frame));
/**
* Connects to serial gateway and initializes MBus handle
*