diff options
author | Dan McGee <dan@archlinux.org> | 2008-01-22 22:49:45 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-02-24 20:21:58 -0600 |
commit | f159203f6fb217bb7bed5ffea8c2518325a9ec12 (patch) | |
tree | 02d718e999844043618ac6659b6a3152c255c104 /lib/libalpm/server.h | |
parent | 81a2a06818d367f8528c74311171417beb9e1592 (diff) | |
download | pacman-f159203f6fb217bb7bed5ffea8c2518325a9ec12.tar.xz |
Remove pmserver_t abstraction
Remove what was a pretty weird abstraction in the libalpm backend. Instead
of parsing server URLs as we get them (of which we don't usually use more
than a handful anyway), wait until they are actually used, which allows us
to store them as a simple string list instead. This allows us to remove a
lot of code, and will greatly simplify the continuing refactoring of the
download code.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/server.h')
-rw-r--r-- | lib/libalpm/server.h | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/lib/libalpm/server.h b/lib/libalpm/server.h deleted file mode 100644 index b84b90b6..00000000 --- a/lib/libalpm/server.h +++ /dev/null @@ -1,39 +0,0 @@ -/* - * server.h - * - * Copyright (c) 2006 by Miklos Vajna <vmiklos@frugalware.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ -#ifndef _ALPM_SERVER_H -#define _ALPM_SERVER_H - -#include "alpm_list.h" -#include "alpm.h" - -#include <time.h> -#include <download.h> - -/* Servers */ -struct __pmserver_t { - /* useless abstraction now? */ - struct url *s_url; -}; - -pmserver_t *_alpm_server_new(const char *url); -void _alpm_server_free(pmserver_t *server); - -#endif /* _ALPM_SERVER_H */ - -/* vim: set ts=2 sw=2 noet: */ |