X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=bt-oal%2Foal-hid-host.c;h=0458b41eb00a33093f83f85bd059d0220e9d2d02;hb=38e9784ab7621790cebe8bee8cff469b2d64001f;hp=eb95e46e1ea113eb91710e9300af8263e5da3f1d;hpb=8898d956897af53f2e76b6626b59411df58b178c;p=platform%2Fcore%2Fconnectivity%2Fbluetooth-frwk.git diff --git a/bt-oal/oal-hid-host.c b/bt-oal/oal-hid-host.c index eb95e46..0458b41 100755 --- a/bt-oal/oal-hid-host.c +++ b/bt-oal/oal-hid-host.c @@ -50,14 +50,14 @@ static void handshake_callback(bt_bdaddr_t *bd_addr, bthh_status_t hh_status); static const bthh_interface_t * hid_api; static bthh_callbacks_t sBluetoothHidCallbacks = { - sizeof(sBluetoothHidCallbacks), - connection_state_callback, - hid_info_callback, - get_protocol_mode_callback, - idle_time_callback, - get_report_callback, - virtual_unplug_callback, - handshake_callback, + .size = sizeof(sBluetoothHidCallbacks), + .connection_state_cb = connection_state_callback, + .hid_info_cb = hid_info_callback, + .protocol_mode_cb = get_protocol_mode_callback, + .idle_time_cb = idle_time_callback, + .get_report_cb = get_report_callback, + .virtual_unplug_cb = virtual_unplug_callback, + .handshake_cb = handshake_callback, }; oal_status_t hid_enable(void) @@ -152,7 +152,7 @@ oal_status_t hid_set_report(bt_address_t *address, int ret; bdstr_t bdstr; - API_TRACE("len: %d", strlen(report)); + API_TRACE("len: %zd", strlen(report)); CHECK_OAL_HID_ENABLED(); OAL_CHECK_PARAMETER(address, return); OAL_CHECK_PARAMETER(report, return);