mime->mimetype[len] = '\0';
if (LIST_IS_EMPTY(&cbhm_data_offer->offer_mimetype_list)) {
- DBG("[CBHM]_cbhm_add_mime_type: %s\n", type);
+ INF("[CBHM]_cbhm_add_mime_type: %s\n", type);
LIST_ADDTAIL(&mime->item_link, &cbhm_data_offer->offer_mimetype_list);
cbhm_data_offer->type_count++;
} else {
}
if (type_match == false) {
- DBG("[CBHM]_cbhm_add_mime_type: %s\n", type);
+ INF("[CBHM]_cbhm_add_mime_type: %s\n", type);
LIST_ADDTAIL(&mime->item_link, &cbhm_data_offer->offer_mimetype_list);
cbhm_data_offer->type_count++;
}
free(mime->mimetype);
LIST_DEL(&mime->item_link);
free(mime);
- DBG("[CBHM]_cbhm_remove_mime_type: remove mime type : %s\n", type);
+ INF("[CBHM]_cbhm_remove_mime_type: remove mime type : %s\n", type);
cbhm_data_offer->type_count--;
break;
}
}
cur_buf = buf;
- DBG("[CBHM][SENDING] ====>> fd(%d), len(%d), data(%s)\n", fd, size_ret, buf);
+ INF("[CBHM][SENDING] ====>> fd(%d), len(%d), data(%s)\n", fd, size_ret, buf);
while (len_written < size_ret) {
ret = write(fd, cur_buf, len_remained);
if (ret == -1) {
cur_buf += ret;
len_written += ret;
len_remained -= ret;
- DBG("[CBHM][SENT] ====>> remain(%d), sent(%d)\n", len_remained, ret);
+ INF("[CBHM][SENT] ====>> remain(%d), sent(%d)\n", len_remained, ret);
}
cur_buf = NULL;
free(buf);
if (info->data_source == source)
info->data_source = NULL;
- DBG("[CBHM]_data_source_cancelled: destroy(%p)\n", source);
+ INF("[CBHM]_data_source_cancelled: destroy(%p)\n", source);
wl_data_source_destroy(source);
}
if (info->data_source == source)
info->data_source = NULL;
- DBG("[CBHM]_data_source_dnd_finished: destroy(%p)\n", source);
+ INF("[CBHM]_data_source_dnd_finished: destroy(%p)\n", source);
wl_data_source_destroy(source);
}
cbhm_data_offer = info->cbhm_data_offer;
if (info->data_received_count == cbhm_data_offer->type_count) {
- DBG("[CBHM]_cbhm_offer_receive: already received all type data : %d", cbhm_data_offer->type_count);
+ INF("[CBHM]_cbhm_offer_receive: already received all type data : %d", cbhm_data_offer->type_count);
return;
}
info->temp_mime_type = strdup(mime->mimetype);
break;
}
- DBG("[CBHM]_cbhm_offer_receive: selected mime type : %s", info->temp_mime_type);
+ INF("[CBHM]_cbhm_offer_receive: selected mime type : %s", info->temp_mime_type);
if (pipe2(pipe, O_CLOEXEC) == -1) {
ERR("[CBHM]_cbhm_offer_receive: pipe2 fail\n");
info->datafd.revents = 0;
g_source_add_poll(&info->gsource, &info->datafd);
- DBG("[CBHM]_cbhm_offer_receive: set datafd(%d, %d)\n", pipe[0], pipe[1]);
+ INF("[CBHM]_cbhm_offer_receive: set datafd(%d, %d)\n", pipe[0], pipe[1]);
}
static void
cbhm_data_offer = info->cbhm_data_offer;
if (cbhm_data_offer != NULL && cbhm_data_offer->data_offer == offer) {
- DBG("[CBHM]_data_device_cb_offer : same offer called do nothing(%p)\n", offer);
+ INF("[CBHM]_data_device_cb_offer : same offer called do nothing(%p)\n", offer);
return;
}
if (cbhm_data_offer != NULL && cbhm_data_offer->data_offer != offer) {
- DBG("[CBHM]_data_device_cb_offer : destroy previous offer %p\n", cbhm_data_offer->data_offer);
+ INF("[CBHM]_data_device_cb_offer : destroy previous offer %p\n", cbhm_data_offer->data_offer);
_cbhm_free_mime_type_list(cbhm_data_offer);
wl_data_offer_destroy(cbhm_data_offer->data_offer);
free(cbhm_data_offer);
ERR("[CBHM]_data_device_cb_offer : calloc fail\n");
return;
}
- DBG("[CBHM]_data_device_cb_offer : %p\n", offer);
+ INF("[CBHM]_data_device_cb_offer : %p\n", offer);
_cbhm_free_received_data(info);
LIST_INITHEAD(&info->received_data_list);