From: Michael Tremer Date: Fri, 23 Apr 2021 14:53:47 +0000 (+0000) Subject: libpakfire: Drop filters X-Git-Tag: 0.9.28~1285^2~244 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d361690fc926adfa54b8bd87c93052af46703af;p=pakfire.git libpakfire: Drop filters Signed-off-by: Michael Tremer --- diff --git a/Makefile.am b/Makefile.am index da4f815f0..966faec0b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -257,7 +257,6 @@ libpakfire_la_SOURCES = \ src/libpakfire/execute.c \ src/libpakfire/file.c \ src/libpakfire/filelist.c \ - src/libpakfire/filter.c \ src/libpakfire/key.c \ src/libpakfire/logging.c \ src/libpakfire/package.c \ @@ -293,7 +292,6 @@ pkginclude_HEADERS += \ src/libpakfire/include/pakfire/execute.h \ src/libpakfire/include/pakfire/file.h \ src/libpakfire/include/pakfire/filelist.h \ - src/libpakfire/include/pakfire/filter.h \ src/libpakfire/include/pakfire/i18n.h \ src/libpakfire/include/pakfire/key.h \ src/libpakfire/include/pakfire/logging.h \ diff --git a/src/libpakfire/filter.c b/src/libpakfire/filter.c deleted file mode 100644 index e09400404..000000000 --- a/src/libpakfire/filter.c +++ /dev/null @@ -1,37 +0,0 @@ -/*############################################################################# -# # -# 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 . # -# # -#############################################################################*/ - -#include - -#include -#include -#include -#include - -PAKFIRE_EXPORT PakfireFilter pakfire_filter_create(void) { - PakfireFilter filter = calloc(1, sizeof(*filter)); - - return filter; -} - -PAKFIRE_EXPORT void pakfire_filter_free(PakfireFilter filter) { - free(filter->match); - free(filter); -} diff --git a/src/libpakfire/include/pakfire/filter.h b/src/libpakfire/include/pakfire/filter.h deleted file mode 100644 index 508d55a9f..000000000 --- a/src/libpakfire/include/pakfire/filter.h +++ /dev/null @@ -1,39 +0,0 @@ -/*############################################################################# -# # -# 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 . # -# # -#############################################################################*/ - -#ifndef PAKFIRE_FILTER_H -#define PAKFIRE_FILTER_H - -#include - -PakfireFilter pakfire_filter_create(void); -void pakfire_filter_free(PakfireFilter filter); - -#ifdef PAKFIRE_PRIVATE - -struct _PakfireFilter { - int cmp_type; - int keyname; - char* match; -}; - -#endif - -#endif /* PAKFIRE_FILTER_H */ diff --git a/src/libpakfire/include/pakfire/types.h b/src/libpakfire/include/pakfire/types.h index f6475ad57..34861aece 100644 --- a/src/libpakfire/include/pakfire/types.h +++ b/src/libpakfire/include/pakfire/types.h @@ -28,7 +28,6 @@ typedef struct _PakfireArchive* PakfireArchive; typedef struct _PakfireArchiveSignature* PakfireArchiveSignature; typedef struct _PakfireFile* PakfireFile; typedef struct _PakfireFilelist* PakfireFilelist; -typedef struct _PakfireFilter* PakfireFilter; typedef struct _PakfireKey* PakfireKey; typedef struct _PakfirePackage* PakfirePackage; typedef struct _PakfirePackageList* PakfirePackageList;