Fix the ASAN build error
[platform/core/connectivity/bluetooth-agent.git] / hid-agent / bluetooth-hid-agent.h
index 9a24cb3..d09fdb0 100644 (file)
 #define __DEF_BT_HID_AGENT_H_
 #define FUNCTION_TRACE
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #include <stdio.h>
 #include <dlog.h>
 #include <glib.h>
@@ -147,21 +151,9 @@ typedef struct {
        char *path;
 } bt_hid_agent_info_t;
 
-typedef struct {
-       unsigned char b[6];
-} __attribute__((packed)) bdaddr_t;
-
-/* Remote socket address */
-struct sockaddr_remote {
-       sa_family_t     family;
-       bdaddr_t        remote_bdaddr;
-       uint8_t         channel;
-};
-
-void _bt_hid_set_profile_state(bt_hid_state_t new_state);
-bt_hid_agent_error_t _bt_hid_register_application(gboolean register_flag,
-               const char *sender_name);
-
-bt_hid_agent_error_t __bt_hid_disconnect_profile(void);
+bt_hid_agent_error_t _bt_hid_disconnect_profile(void);
 
+#ifdef __cplusplus
+}
+#endif
 #endif /* __DEF_BT_HID_AGENT_H_ */