From 97f015eae88f4f43e46f27ae05b30e43262ecfc8 Mon Sep 17 00:00:00 2001 From: Wootak Jung Date: Fri, 21 Mar 2025 14:24:49 +0900 Subject: [PATCH] Exclude function for the internal apis Change-Id: Ic4bb2d5810dd46984bfaa54e00c94f8a954b3868 Signed-off-by: Wootak Jung --- src/bluetooth-adapter.c | 2 ++ src/bluetooth-gatt.c | 4 +++- src/bluetooth-socket.c | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/bluetooth-adapter.c b/src/bluetooth-adapter.c index adc6bcc..b16d1df 100644 --- a/src/bluetooth-adapter.c +++ b/src/bluetooth-adapter.c @@ -1077,6 +1077,7 @@ int bt_adapter_start_device_discovery(void) return error_code; } +/* LCOV_EXCL_START */ int bt_adapter_get_local_irk(unsigned char **local_irk) { int error_code = BT_ERROR_NONE; @@ -1102,6 +1103,7 @@ int bt_adapter_get_local_irk(unsigned char **local_irk) return BT_ERROR_NONE; } +/* LCOV_EXCL_STOP */ int bt_adapter_stop_device_discovery(void) { diff --git a/src/bluetooth-gatt.c b/src/bluetooth-gatt.c index 28a9ec8..a646656 100644 --- a/src/bluetooth-gatt.c +++ b/src/bluetooth-gatt.c @@ -3625,6 +3625,7 @@ int bt_gatt_server_get_device_mtu(const char *remote_address, unsigned int *mtu) return ret; } /* LCOV_EXCL_STOP */ +/* LCOV_EXCL_START */ static bool __bt_gatt_is_phy_options_valid(int phy_options) { if (phy_options < PHY_OPTION_NO_PREFERRED || @@ -3742,6 +3743,7 @@ int bt_gatt_server_unset_phy_update_cb(bt_gatt_server_h server) return BT_ERROR_NONE; } +/* LCOV_EXCL_STOP */ int bt_gatt_server_foreach_services(bt_gatt_server_h server, bt_gatt_foreach_cb callback, void *user_data) @@ -5562,7 +5564,6 @@ int bt_gatt_get_uuid_specification_name(const char *uuid, char **name) BT_INFO("Specification Name [%s]", *name); return BT_ERROR_NONE; } -/* LCOV_EXCL_STOP */ int bt_gatt_client_read_phy(bt_gatt_client_h client, bt_gatt_client_phy_read_cb callback, void *user_data) @@ -5652,3 +5653,4 @@ int bt_gatt_client_unset_phy_update_cb(bt_gatt_client_h client) return BT_ERROR_NONE; } +/* LCOV_EXCL_STOP */ diff --git a/src/bluetooth-socket.c b/src/bluetooth-socket.c index 02050d9..4422d45 100644 --- a/src/bluetooth-socket.c +++ b/src/bluetooth-socket.c @@ -509,6 +509,7 @@ int bt_socket_get_l2cap_psm(int socket_fd, int *psm) return ret; /* LCOV_EXCL_STOP */ } +/* LCOV_EXCL_START */ int bt_socket_get_l2cap_max_buffer_size(int *size) { int error_code = BT_ERROR_NONE; @@ -523,6 +524,7 @@ int bt_socket_get_l2cap_max_buffer_size(int *size) return error_code; /* LCOV_EXCL_STOP */ } +/* LCOV_EXCL_STOP */ int bt_socket_set_l2cap_channel_connection_state_changed_cb( bt_socket_l2cap_channel_connection_state_changed_cb callback, void *user_data) -- 2.34.1