Hi Daniel, On Fri, Aug 13, 2010, Daniel Örstadius wrote: > +typedef void (*btd_adapter_mode_cb) (struct btd_adapter *adapter, > + gboolean powered); > +void btd_adapter_register_mode_callback(struct btd_adapter *adapter, > + btd_adapter_mode_cb cb); In general this seems fine, but I think for completeness there should also be a unregister function. Also, since we've traditionally used the term mode to include also the discoverable state the name should probably be something like btd_adapter_register_powered_callback and btd_adapter_powered_cb. Johan -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html