X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Fbluetooth-hid-api.h;h=917d9f5ed335467bb6c42374a1f52bd38fa502b7;hb=a9be3fd4ccbad02f696ba4cdcb2d92b006e6563b;hp=abd7733e86a5cea90003891f12cf243768cb3091;hpb=39a6cbc0e0b202a9ec628daacc1cd4128912964d;p=platform%2Fcore%2Fconnectivity%2Fbluetooth-frwk.git diff --git a/include/bluetooth-hid-api.h b/include/bluetooth-hid-api.h old mode 100644 new mode 100755 index abd7733..917d9f5 --- a/include/bluetooth-hid-api.h +++ b/include/bluetooth-hid-api.h @@ -59,12 +59,6 @@ typedef struct { unsigned char key[8]; } hid_send_key_event_t; -typedef struct { - unsigned char btcode; - unsigned char rep_id; - unsigned short key[3]; -} hid_send_rc_key_event_t; - typedef void (*hid_cb_func_ptr)(int, hid_event_param_t *, void *); typedef struct { @@ -292,8 +286,9 @@ int bluetooth_hid_device_send_key_event(const char *remote_addr, hid_send_key_event_t send_event); /** - * @fn int bluetooth_hid_device_send_rc_key_event( - * const char *remote_addr, hid_send_rc_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. * @@ -307,11 +302,16 @@ int bluetooth_hid_device_send_key_event(const char *remote_addr, * * @exception None * @param[in] remote_addr device address of remote device. - * @param[in] send_event This indicates the event data to send to 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_rc_key_event(const char *remote_addr, - hid_send_rc_key_event_t send_event); +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,