- the big solv data change
[platform/upstream/libsolv.git] / src / repopage.h
1 /*
2  * Copyright (c) 2007-2008, Novell Inc.
3  *
4  * This program is licensed under the BSD license, read LICENSE.BSD
5  * for further information
6  */
7
8 #define BLOB_PAGEBITS 15
9 #define BLOB_PAGESIZE (1 << BLOB_PAGEBITS)
10
11 /* load pages pstart..pend into consecutive memory, return address */
12 unsigned char *repodata_load_page_range(Repodata *data, unsigned int pstart, unsigned int pend);
13
14 /* compress a page, return compressed len */
15 unsigned int repodata_compress_page(unsigned char *page, unsigned int len, unsigned char *cpage, unsigned int max);
16
17 /* setup page data for repodata_load_page_range */
18 void repodata_read_or_setup_pages(Repodata *data, unsigned int pagesz, unsigned int blobsz);