Fix the type naming correctly for hid device role 06/70706/6
authorTaejin Woo <tt.woo@samsung.com>
Wed, 8 Jun 2016 02:26:51 +0000 (11:26 +0900)
committerPyun DoHyun <dh79.pyun@samsung.com>
Mon, 20 Jun 2016 04:25:15 +0000 (21:25 -0700)
Change-Id: I31d6faed8d94ae6f79db508912de5c75c774d764
Signed-off-by: Taejin Woo <tt.woo@samsung.com>
bt-api/bt-hid-device.c
include/bluetooth-api.h
include/bluetooth-hid-api.h

index 9de3627..9494ec1 100755 (executable)
@@ -648,8 +648,8 @@ BT_EXPORT_API int bluetooth_hid_device_send_key_event(const char *remote_addr,
 }
 
 BT_EXPORT_API int bluetooth_hid_device_reply_to_report(const char *remote_addr,
-                               bt_hid_header_type_t htype,
-                               bt_hid_param_type_t ptype,
+                               bluetooth_hid_header_type_t htype,
+                               bluetooth_hid_param_type_t ptype,
                                const char *data,
                                unsigned int data_len)
 {
index cf1f230..c7aa3c7 100644 (file)
@@ -1062,7 +1062,7 @@ typedef enum {
        HTYPE_TRANS_SET_PROTOCOL,
        HTYPE_TRANS_DATA,
        HTYPE_TRANS_UNKNOWN
-} bt_hid_header_type_t;
+} bluetooth_hid_header_type_t;
 
 /**
  * HID Param type
@@ -1070,16 +1070,16 @@ typedef enum {
 typedef enum {
        PTYPE_DATA_RTYPE_INPUT,
        PTYPE_DATA_RTYPE_OUTPUT
-} bt_hid_param_type_t;
+} bluetooth_hid_param_type_t;
 
 /**
  * Stucture to hid receive data
  */
 typedef struct {
        const char *address;
-       bt_hid_header_type_t type;
+       bluetooth_hid_header_type_t type;
                /**< Header type containing */
-       bt_hid_param_type_t param;
+       bluetooth_hid_param_type_t param;
                /**< Param type in header like INPUT Report or OutPut Report */
        int buffer_size;/**< the length of the receive buffer */
        char *buffer;
index 0507a70..47782c5 100755 (executable)
@@ -285,8 +285,8 @@ int bluetooth_hid_device_send_key_event(const char *remote_addr,
 
 /**
  * @fn int bluetooth_hid_device_reply_to_report(const char *remote_addr,
- *                     bt_hid_header_type_t htype,
- *                     bt_hid_param_type_t ptype,
+ *                     bluetooth_hid_header_type_t htype,
+ *                     bluetooth_hid_param_type_t ptype,
  *                     char *buffer)
  *
  * @brief write the event data on the socket.
@@ -307,8 +307,8 @@ int bluetooth_hid_device_send_key_event(const char *remote_addr,
  * @remark      None
  */
 int bluetooth_hid_device_reply_to_report(const char *remote_addr,
-               bt_hid_header_type_t htype,
-               bt_hid_param_type_t ptype,
+               bluetooth_hid_header_type_t htype,
+               bluetooth_hid_param_type_t ptype,
                const char *data,
                unsigned int data_len);