#include "alpm_list.h"#include "alpm.h"#include <time.h>#include <download.h>


Go to the source code of this file.
Data Structures | |
| struct | __pmserver_t |
Defines | |
| #define | PM_DLBUF_LEN (1024 * 10) |
Functions | |
| pmserver_t * | _alpm_server_new (const char *url) |
| void | _alpm_server_free (pmserver_t *server) |
| int | _alpm_downloadfiles (alpm_list_t *servers, const char *localpath, alpm_list_t *files, int *dl_total, unsigned long totalsize) |
| int | _alpm_downloadfiles_forreal (alpm_list_t *servers, const char *localpath, alpm_list_t *files, time_t mtime1, time_t *mtime2, int *dl_total, unsigned long totalsize) |
| #define PM_DLBUF_LEN (1024 * 10) |
| int _alpm_downloadfiles | ( | alpm_list_t * | servers, | |
| const char * | localpath, | |||
| alpm_list_t * | files, | |||
| int * | dl_total, | |||
| unsigned long | totalsize | |||
| ) |
Definition at line 142 of file server.c.
References _alpm_downloadfiles_forreal().
Referenced by _alpm_sync_commit(), and alpm_fetch_pkgurl().


| int _alpm_downloadfiles_forreal | ( | alpm_list_t * | servers, | |
| const char * | localpath, | |||
| alpm_list_t * | files, | |||
| time_t | mtime1, | |||
| time_t * | mtime2, | |||
| int * | dl_total, | |||
| unsigned long | totalsize | |||
| ) |
Definition at line 166 of file server.c.
References _, _alpm_log(), _alpm_rmrf(), alpm_list_add(), alpm_list_count(), alpm_list_find_str(), alpm_list_free(), ALPM_LOG_FUNC, __alpm_list_t::data, _pmhandle_t::dlcb, FREE, handle, __alpm_list_t::next, _pmhandle_t::nopassiveftp, PM_DLBUF_LEN, PM_ERR_CONNECT_FAILED, PM_ERR_FORK_FAILED, PM_LOG_DEBUG, PM_LOG_ERROR, PM_LOG_WARNING, STRDUP, and _pmhandle_t::xfercommand.
Referenced by _alpm_downloadfiles(), and alpm_db_update().


| void _alpm_server_free | ( | pmserver_t * | server | ) |
Definition at line 76 of file server.c.
References ALPM_LOG_FUNC, FREE, and __pmserver_t::s_url.
Referenced by _alpm_db_free(), and alpm_fetch_pkgurl().

| pmserver_t* _alpm_server_new | ( | const char * | url | ) |
Definition at line 43 of file server.c.
References _, _alpm_log(), ALPM_LOG_FUNC, CALLOC, PM_ERR_MEMORY, PM_ERR_SERVER_BAD_URL, PM_LOG_ERROR, PM_LOG_WARNING, RET_ERR, and __pmserver_t::s_url.
Referenced by alpm_db_setserver(), and alpm_fetch_pkgurl().


1.5.4