Get local IRK value
[platform/core/connectivity/bluetooth-frwk.git] / bt-api / include / bt-common.h
index 7d517f9..2342242 100644 (file)
@@ -182,7 +182,7 @@ extern "C" {
 #define BT_ADDRESS_STRING_SIZE 18
 #define BT_ADAPTER_OBJECT_PATH_MAX 50
 #define BT_RFCOMM_BUFFER_LEN 1024
-#define BT_L2CAP_LE_BUFFER_LEN 1024
+#define BT_L2CAP_LE_BUFFER_LEN 0xFFFF
 
 #define BT_ACCESS_DENIED_MSG "Rejected send message"
 
@@ -270,6 +270,12 @@ typedef struct {
        void *user_data;
 } bt_user_info_t;
 
+typedef struct {
+       int psm;
+       bluetooth_device_address_t device_addr;
+       void *user_data;
+} bt_l2cap_user_info_t;
+
 void _bt_set_user_data(int type, void *callback, void *user_data);
 
 void _bt_print_device_address_t(const bluetooth_device_address_t *addr);
@@ -419,6 +425,10 @@ void _bt_rfcomm_client_reset_timer(void);
 int _get_l2cap_le_server_id(int psm, gboolean *auto_accept);
 void _bt_l2cap_le_server_set_pending_conn(int server_id, char *address);
 
+void _bt_get_fd_list_info(GDBusProxy *proxy, GAsyncResult *res, gpointer user_data,
+               bluetooth_event_param_t *bt_event, GArray **out_param1,
+               int *event_type, GUnixFDList **out_fd_list, int *result, gboolean *fail);
+
 void _bt_reset_battery_monitor_info(void);
 
 int _bt_hid_device_get_fd(const char *address, int *ctrl, int *intr);
@@ -430,6 +440,8 @@ void _bt_hid_free_hid_info(void);
 
 int _bt_get_error_value_from_message(const char *error_message);
 
+char *_bt_print_gio_status(GIOStatus status);
+
 void _bt_hdp_app_remove_obj_info(unsigned int channe_id);
 int _bt_hdp_app_acquire_fd(bt_hdp_connected_t *conn_info);