} bt_proximity_alert_value_t;
typedef enum {
+ BT_PXP_SIGNAL_NONE = 0,
+ BT_PXP_SIGNAL_GOOD,
+ BT_PXP_SIGNAL_REGULAR,
+ BT_PXP_SIGNAL_WEAK
+} bt_proximity_signal_level_t;
+
+typedef enum {
BT_PXP_PROPERTY_LLS = 0x01,
BT_PXP_PROPERTY_IAS = 0x02,
BT_PXP_PROPERTY_TX_POWER = 0x04
} bt_proximity_alert_property_t;
typedef enum {
- BT_PXP_REPORTER_ROLE = 0x00,
- BT_PXP_MONITOR_ROLE = 0x01,
+ BT_PXP_REPORTER_ROLE = 0x00,
+ BT_PXP_MONITOR_ROLE = 0x01,
} bt_proximity_role_t;
-int bt_set_proximity_property(bluetooth_device_address_t *device_address,
- unsigned int property, int value);
+int _bt_proximity_monitor_set_property(bluetooth_device_address_t *device_address,
+ unsigned int property, int alert_level);
-int bt_get_proximity_property(bluetooth_device_address_t *device_address,
- unsigned int property, int *value);
+int _bt_proximity_monitor_get_property(bluetooth_device_address_t *device_address,
+ unsigned int property, int *level);
-int bt_get_proximity_supported_services(bluetooth_device_address_t *device_address,
+int _bt_proximity_monitor_get_supported_services(bluetooth_device_address_t *device_address,
unsigned int *supported_services);
-int bt_register_proximity_reporter();
+int _bt_proximity_reporter_get_property(bluetooth_device_address_t *device_address,
+ unsigned int property, int *level);
+
+int _bt_proximity_reporter_register(const char *sender);
+
+int _bt_proximity_reporter_unregister(const char *sender);
-int bt_unregister_proximity_reporter();
+void _bt_proximity_reporter_stop_by_terminated_process(const char *terminated_name);
#ifdef __cplusplus
}