rpool: switch "struct xbps_repo" to be part of the rpool simpleq.

The previous internal "struct rpool" was an extra structure that
can be avoided by just using "struct xbps_repo" directly.

This makes rpool use (at least) 4KB less per repository and 1
extra allocation.
This commit is contained in:
Juan RP
2013-12-16 08:49:33 +01:00
parent b1309644e5
commit 67cfc4ebad
2 changed files with 28 additions and 34 deletions

View File

@@ -27,6 +27,7 @@
#ifndef _XBPS_API_H_
#define _XBPS_API_H_
#include <sys/queue.h>
#include <stdio.h>
#include <inttypes.h>
@@ -46,7 +47,7 @@
*
* This header documents the full API for the XBPS Library.
*/
#define XBPS_API_VERSION "20131118"
#define XBPS_API_VERSION "20131216"
#ifndef XBPS_VERSION
#define XBPS_VERSION "UNSET"
@@ -1110,6 +1111,7 @@ struct xbps_repo {
/**
* @private
*/
SIMPLEQ_ENTRY(xbps_repo) entries;
struct archive *ar;
/**
* @var xhp