libpakfire_la_SOURCES = \
src/libpakfire/archive.c \
- src/libpakfire/cache.c \
src/libpakfire/errno.c \
src/libpakfire/file.c \
src/libpakfire/filter.c \
pkginclude_HEADERS += \
src/libpakfire/include/pakfire/archive.h \
- src/libpakfire/include/pakfire/cache.h \
src/libpakfire/include/pakfire/constants.h \
src/libpakfire/include/pakfire/errno.h \
src/libpakfire/include/pakfire/file.h \
+++ /dev/null
-/*#############################################################################
-# #
-# Pakfire - The IPFire package management system #
-# Copyright (C) 2013 Pakfire development team #
-# #
-# 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 3 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/>. #
-# #
-#############################################################################*/
-
-#include <assert.h>
-#include <errno.h>
-#include <stdio.h>
-#include <sys/stat.h>
-#include <unistd.h>
-
-#include <pakfire/cache.h>
-#include <pakfire/constants.h>
-#include <pakfire/package.h>
-#include <pakfire/private.h>
-#include <pakfire/types.h>
-#include <pakfire/util.h>
-
-PAKFIRE_EXPORT PakfireCache pakfire_cache_create(PakfirePool pool, const char* path) {
- PakfireCache cache = pakfire_calloc(1, sizeof(*cache));
-
- cache->pool = pool;
- cache->path = pakfire_strdup(path);
-
- return cache;
-}
-
-PAKFIRE_EXPORT void pakfire_cache_free(PakfireCache cache) {
- pakfire_free(cache->path);
- pakfire_free(cache);
-}
-
-PAKFIRE_EXPORT const char* pakfire_cache_get_path(PakfireCache cache) {
- return cache->path;
-}
-
-PAKFIRE_EXPORT char* pakfire_cache_get_full_path(PakfireCache cache, const char* path) {
- const char* cache_path = pakfire_cache_get_path(cache);
-
- return pakfire_path_join(cache_path, path);
-}
+++ /dev/null
-/*#############################################################################
-# #
-# Pakfire - The IPFire package management system #
-# Copyright (C) 2013 Pakfire development team #
-# #
-# 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 3 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 PAKFIRE_CACHE_H
-#define PAKFIRE_CACHE_H
-
-#include <stdio.h>
-
-#include <pakfire/types.h>
-
-PakfireCache pakfire_cache_create(PakfirePool pool, const char* path);
-void pakfire_cache_free(PakfireCache cache);
-
-const char* pakfire_cache_get_path(PakfireCache cache);
-char* pakfire_cache_get_full_path(PakfireCache cache, const char* path);
-
-#ifdef PAKFIRE_PRIVATE
-
-struct _PakfireCache {
- PakfirePool pool;
- char* path;
-};
-
-#endif
-
-#endif /* PAKFIRE_CACHE_H */
PakfirePool pakfire_pool_ref(PakfirePool pool);
PakfirePool pakfire_pool_unref(PakfirePool pool);
-PakfireCache pakfire_pool_get_cache(PakfirePool pool);
-
#ifdef PAKFIRE_PRIVATE
#include <solv/pool.h>
typedef struct _Pakfire* Pakfire;
typedef struct _PakfireArchive* PakfireArchive;
typedef struct _PakfireArchiveSignature* PakfireArchiveSignature;
-typedef struct _PakfireCache* PakfireCache;
typedef struct _PakfireFile* PakfireFile;
typedef struct _PakfireFilter* PakfireFilter;
typedef struct _PakfireKey* PakfireKey;
typedef struct _PakfirePackage* PakfirePackage;
-typedef struct _PakfirePackageCache* PakfirePackageCache;
typedef struct _PakfirePackageList* PakfirePackageList;
typedef struct _PakfirePool* PakfirePool;
typedef struct _PakfireProblem* PakfireProblem;
typedef struct _PakfireRelation* PakfireRelation;
typedef struct _PakfireRelationList* PakfireRelationList;
typedef struct _PakfireRepo* PakfireRepo;
-typedef struct _PakfireRepoCache* PakfireRepoCache;
typedef struct _PakfireRequest* PakfireRequest;
typedef struct _PakfireSelector* PakfireSelector;
typedef struct _PakfireSolution* PakfireSolution;
#include <solv/solvable.h>
#include <pakfire/archive.h>
-#include <pakfire/cache.h>
#include <pakfire/constants.h>
#include <pakfire/file.h>
#include <pakfire/i18n.h>
#include <pakfire/logging.h>
#include <pakfire/package.h>
-#include <pakfire/packagecache.h>
#include <pakfire/pakfire.h>
#include <pakfire/pool.h>
#include <pakfire/private.h>
pakfire_log_function_t log_function;
int log_priority;
- // Cache
- PakfireCache cache;
-
int nrefs;
};
#include <solv/queue.h>
#include <solv/repo.h>
-#include <pakfire/cache.h>
#include <pakfire/logging.h>
#include <pakfire/package.h>
#include <pakfire/packagelist.h>
// This is just being left here for compatibility
struct _PakfirePool {
Pakfire pakfire;
- PakfireCache cache;
int nrefs;
};
Pool* pakfire_pool_get_solv_pool(PakfirePool pool) {
return pakfire_get_solv_pool(pool->pakfire);
}
-
-PAKFIRE_EXPORT PakfireCache pakfire_pool_get_cache(PakfirePool pool) {
- if (pool->cache)
- return pool->cache;
-
- return NULL;
-}
#include <solv/pooltypes.h>
#include <solv/transaction.h>
-#include <pakfire/cache.h>
#include <pakfire/constants.h>
#include <pakfire/logging.h>
#include <pakfire/package.h>