#include "config.h"#include <stdlib.h>#include <errno.h>#include <time.h>#include <string.h>#include <limits.h>#include <stdio.h>#include <sys/types.h>#include <sys/stat.h>#include <unistd.h>#include <download.h>#include "server.h"#include "alpm_list.h"#include "error.h"#include "log.h"#include "alpm.h"#include "util.h"#include "handle.h"#include "package.h"

Go to the source code of this file.
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) |
| char * | alpm_fetch_pkgurl (const char *url) |
| 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().


| char* alpm_fetch_pkgurl | ( | const char * | url | ) |
Definition at line 423 of file server.c.
References _, _alpm_downloadfiles(), _alpm_filecache_find(), _alpm_filecache_setup(), _alpm_log(), _alpm_server_free(), _alpm_server_new(), alpm_list_add(), alpm_list_free(), ALPM_LOG_FUNC, PM_LOG_DEBUG, PM_LOG_ERROR, and PM_LOG_WARNING.
Referenced by pacman_add().


1.5.4