weliem / bluez_inc

A C library for Bluez (BLE) that hides all DBus communication. It doesn't get easier than this. This library can also be used in C++.
MIT License
84 stars 19 forks source link

add log_set_handler #35

Closed charlesnicholson closed 5 months ago

charlesnicholson commented 5 months ago

This PR addresses https://github.com/weliem/bluez_inc/issues/28 by adding a new function log_set_handler, which takes a callback. If this is set, none of the existing log functionality is engaged- only the callback is called. The callback can be set to and from NULL dynamically and the built-in log flow will be redirected or resumed.