diff options
author | David Walter Seikel | 2012-01-23 23:30:42 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-01-23 23:30:42 +1000 |
commit | 825a3d837a33f226c879cd02ad15c3fba57e8b2c (patch) | |
tree | 75f57bd9c4253508d338dc79ba8e57a7abc42255 /libraries/ecore/src/lib/ecore_file/ecore_file_download.c | |
parent | Add ability to disable the test harness, or the Lua compile test. (diff) | |
download | SledjHamr-825a3d837a33f226c879cd02ad15c3fba57e8b2c.zip SledjHamr-825a3d837a33f226c879cd02ad15c3fba57e8b2c.tar.gz SledjHamr-825a3d837a33f226c879cd02ad15c3fba57e8b2c.tar.bz2 SledjHamr-825a3d837a33f226c879cd02ad15c3fba57e8b2c.tar.xz |
Update the EFL to what I'm actually using, coz I'm using some stuff not yet released.
Diffstat (limited to '')
-rw-r--r-- | libraries/ecore/src/lib/ecore_file/ecore_file_download.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libraries/ecore/src/lib/ecore_file/ecore_file_download.c b/libraries/ecore/src/lib/ecore_file/ecore_file_download.c index c7efc4d..c5e56bd 100644 --- a/libraries/ecore/src/lib/ecore_file/ecore_file_download.c +++ b/libraries/ecore/src/lib/ecore_file/ecore_file_download.c | |||
@@ -2,6 +2,7 @@ | |||
2 | # include <config.h> | 2 | # include <config.h> |
3 | #endif | 3 | #endif |
4 | 4 | ||
5 | #include <stdlib.h> | ||
5 | #include <stdio.h> | 6 | #include <stdio.h> |
6 | #include <string.h> | 7 | #include <string.h> |
7 | 8 | ||
@@ -14,6 +15,7 @@ | |||
14 | #ifdef BUILD_ECORE_CON | 15 | #ifdef BUILD_ECORE_CON |
15 | 16 | ||
16 | #define ECORE_MAGIC_FILE_DOWNLOAD_JOB 0xf7427cb8 | 17 | #define ECORE_MAGIC_FILE_DOWNLOAD_JOB 0xf7427cb8 |
18 | #define ECORE_FILE_DOWNLOAD_TIMEOUT 30 | ||
17 | 19 | ||
18 | struct _Ecore_File_Download_Job | 20 | struct _Ecore_File_Download_Job |
19 | { | 21 | { |
@@ -360,6 +362,7 @@ _ecore_file_download_curl(const char *url, const char *dst, | |||
360 | } | 362 | } |
361 | 363 | ||
362 | if (headers) eina_hash_foreach(headers, _ecore_file_download_headers_foreach_cb, job); | 364 | if (headers) eina_hash_foreach(headers, _ecore_file_download_headers_foreach_cb, job); |
365 | ecore_con_url_timeout_set(job->url_con, ECORE_FILE_DOWNLOAD_TIMEOUT); | ||
363 | ecore_con_url_fd_set(job->url_con, fileno(job->file)); | 366 | ecore_con_url_fd_set(job->url_con, fileno(job->file)); |
364 | ecore_con_url_data_set(job->url_con, data); | 367 | ecore_con_url_data_set(job->url_con, data); |
365 | 368 | ||