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:
@@ -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
|
||||
|
Reference in New Issue
Block a user