From 64d36db5f45db15997c6a3987d6f4b0ce147df27 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sun, 3 Jun 2007 23:57:38 -0400 Subject: Move functions out of alpm.c to where they belong alpm.h is the only "publically viewable" file, so there is no reason to have functions in alpm.c that belong in package.c, db.c, etc. Move the functions where they belong and leave only the library init functions in alpm.c. Signed-off-by: Dan McGee --- lib/libalpm/server.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'lib/libalpm/server.c') diff --git a/lib/libalpm/server.c b/lib/libalpm/server.c index af8f5fd7..c36f9ba8 100644 --- a/lib/libalpm/server.c +++ b/lib/libalpm/server.c @@ -42,6 +42,20 @@ #include "log.h" #include "package.h" +/** Fetch a remote pkg. + * @param url + * @return the downloaded filename on success, NULL on error + * @addtogroup alpm_misc + */ +char SYMEXPORT *alpm_fetch_pkgurl(char *url) +{ + ALPM_LOG_FUNC; + + ASSERT(strstr(url, "://"), return(NULL)); + + return(_alpm_fetch_pkgurl(url)); +} + pmserver_t *_alpm_server_new(const char *url) { struct url *u; -- cgit v1.2.3-54-g00ecf