free(uri);
}
-void __transaction_aborted_cb(http_transaction_h transaction, int reason, void *user_data)
+void __transaction_aborted_cb(http_transaction_h transaction, http_error_code_e reason, void *user_data)
{
PRG("transaction_aborted_cb", transaction);
DBG("aborted reason: %d\n", reason);
switch (reason) {
case HTTP_ERROR_OPERATION_FAILED:
- DBG("HTTP_ERROR_OPERATION_FAILED");
+ DBG("HTTP_ERROR_OPERATION_FAILED\n");
break;
case HTTP_ERROR_COULDNT_RESOLVE_HOST:
- DBG("HTTP_ERROR_COULDNT_RESOLVE_HOST");
+ DBG("HTTP_ERROR_COULDNT_RESOLVE_HOST\n");
break;
case HTTP_ERROR_COULDNT_CONNECT:
- DBG("HTTP_ERROR_COULDNT_CONNECT");
+ DBG("HTTP_ERROR_COULDNT_CONNECT\n");
break;
case HTTP_ERROR_OPERATION_TIMEDOUT:
- DBG("HTTP_ERROR_OPERATION_TIMEDOUT");
+ DBG("HTTP_ERROR_OPERATION_TIMEDOUT\n");
break;
case HTTP_ERROR_SSL_CONNECT_ERROR:
- DBG("HTTP_ERROR_SSL_CONNECT_ERROR");
+ DBG("HTTP_ERROR_SSL_CONNECT_ERROR\n");
break;
case HTTP_ERROR_CANCELED:
- DBG("HTTP_ERROR_CANCELED");
+ DBG("HTTP_ERROR_CANCELED\n");
break;
default:
- DBG("Unknown error");
+ DBG("Unknown error\n");
break;
}
cancel = 0;