Fix conn_id conflict issue between client and server hal
[platform/core/connectivity/bluetooth-frwk.git] / include / bluetooth-hid-api.h
old mode 100644 (file)
new mode 100755 (executable)
index 7391ce9..917d9f5
@@ -1,11 +1,5 @@
 /*
- * Bluetooth-frwk
- *
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:  Hocheol Seo <hocheol.seo@samsung.com>
- *              Girishashok Joshi <girish.joshi@samsung.com>
- *              Chanyeol Park <chanyeol.park@samsung.com>
+ * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -149,6 +143,8 @@ int bluetooth_hid_connect(hid_device_address_t *device_address);
  */
 int bluetooth_hid_disconnect(hid_device_address_t *device_address);
 
+int bluetooth_hid_enable_barcode_feature(void);
+
 /**
  * @fn int bluetooth_hid_device_init(hid_cb_func_ptr callback_ptr, void *user_data)
  * @brief Initialize HID Device service and register the callback
@@ -290,6 +286,33 @@ int bluetooth_hid_device_send_key_event(const char *remote_addr,
                hid_send_key_event_t send_event);
 
 /**
+ * @fn int bluetooth_hid_device_send_custom_event(const char *remote_addr,
+ *             unsigned char btcode, unsigned char report_id,
+ *             const char *data, unsigned int data_len)
+ *
+ * @brief write the event data on the socket.
+ *
+ * This function is a asynchronous call.
+ *
+ * @return  HID_ERROR_NONE  - Success \n
+ *              HID_ERROR_INVALID_PARAM - Invalid parameter \n
+ *              HID_ERROR_NOT_INITIALIZED - Internal Error \n
+ *              HID_ERROR_NOT_ENABLED - Not enabled \n
+ *              HID_ERROR_INTERNAL - Not enabled \n
+ *
+ * @exception   None
+ * @param[in]  remote_addr   device address of remote device.
+ * @param[in]  btcode   The btcode
+ * @param[in]  report_id   The report id
+ * @param[in]  data   This indicates the event data to send to remote device.
+ * @param[in]  data_len   The length of the data
+ * @remark      None
+ */
+int bluetooth_hid_device_send_custom_event(const char *remote_addr,
+               unsigned char btcode, unsigned char report_id,
+               const char *data, unsigned int data_len);
+
+/**
  * @fn int bluetooth_hid_device_reply_to_report(const char *remote_addr,
  *                     bt_hid_header_type_t htype,
  *                     bt_hid_param_type_t ptype,