2007-10-19 13:17:51 -04:00
|
|
|
/*
|
|
|
|
* delta.h
|
2007-11-16 21:18:45 -05:00
|
|
|
*
|
2011-01-05 23:45:15 -05:00
|
|
|
* Copyright (c) 2006-2011 Pacman Development Team <pacman-dev@archlinux.org>
|
2009-07-01 03:08:33 -04:00
|
|
|
* Copyright (c) 2007-2006 by Judd Vinet <jvinet@zeroflux.org>
|
2007-11-16 21:18:45 -05:00
|
|
|
*
|
2007-10-19 13:17:51 -04:00
|
|
|
* 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
|
2007-12-10 23:55:22 -05:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2007-10-19 13:17:51 -04:00
|
|
|
*/
|
|
|
|
#ifndef _ALPM_DELTA_H
|
|
|
|
#define _ALPM_DELTA_H
|
|
|
|
|
2008-06-01 22:47:31 -04:00
|
|
|
#include <sys/types.h> /* off_t */
|
|
|
|
|
2007-10-19 13:17:51 -04:00
|
|
|
#include "alpm.h"
|
|
|
|
|
2011-12-30 13:17:52 -05:00
|
|
|
alpm_delta_t *_alpm_delta_parse(alpm_handle_t *handle, const char *line);
|
2011-06-28 00:38:38 -04:00
|
|
|
void _alpm_delta_free(alpm_delta_t *delta);
|
|
|
|
alpm_delta_t *_alpm_delta_dup(const alpm_delta_t *delta);
|
2011-06-28 00:04:00 -04:00
|
|
|
off_t _alpm_shortest_delta_path(alpm_handle_t *handle, alpm_list_t *deltas,
|
2009-02-25 12:24:38 -05:00
|
|
|
const char *to, alpm_list_t **path);
|
2007-10-19 13:17:51 -04:00
|
|
|
|
2010-11-07 06:39:55 -05:00
|
|
|
/* max percent of package size to download deltas */
|
|
|
|
#define MAX_DELTA_RATIO 0.7
|
|
|
|
|
2007-10-19 13:17:51 -04:00
|
|
|
#endif /* _ALPM_DELTA_H */
|
|
|
|
|
|
|
|
/* vim: set ts=2 sw=2 noet: */
|