summaryrefslogtreecommitdiff
path: root/apt-pkg/cachefilter-patterns.h
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2022-03-28 15:19:11 +0200
committerDavid Kalnischkies <david@kalnischkies.de>2022-04-01 14:15:26 +0200
commitf6438ea9e726a1c13ce8d90ac78cc272346ab0f8 (patch)
tree742ab3be95f07b0b488f31ad621af8dec513ae82 /apt-pkg/cachefilter-patterns.h
parentf0227a5d4c0a2576348417c658ee93bfa19dc6a0 (diff)
Document tagfile-keys.h as internal to apt
The previous regime of the file was to sort it on insert, but that changes the values in the generated enum, which is fine as long as we only use it in libapt itself, but breaks on other users. The header was always intended to be private to apt itself, so we just document this here now and lay the ground work to have the file in the future only appended to, so that it remains sufficiently ABI stable that we can use it outside the library in our apt tools. We also remove some fields apt is unlikely to need or only uses in certain cases outside of any (speed) critical path to have enough room to add more fields soon as currently we are limited to 128 fields max and it would be sad if we use up that allowance entirely already.
Diffstat (limited to 'apt-pkg/cachefilter-patterns.h')
-rw-r--r--apt-pkg/cachefilter-patterns.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/apt-pkg/cachefilter-patterns.h b/apt-pkg/cachefilter-patterns.h
index e6ea16c68..284fcc1cf 100644
--- a/apt-pkg/cachefilter-patterns.h
+++ b/apt-pkg/cachefilter-patterns.h
@@ -11,6 +11,7 @@
#include <apt-pkg/cachefile.h>
#include <apt-pkg/cachefilter.h>
#include <apt-pkg/error.h>
+#include <apt-pkg/header-is-private.h>
#include <apt-pkg/string_view.h>
#include <apt-pkg/strutl.h>
#include <iostream>
@@ -20,10 +21,6 @@
#include <vector>
#include <assert.h>
-#ifndef APT_COMPILING_APT
-#error Internal header
-#endif
-
namespace APT
{