From 04c2f0a50f1dd89a4d51e8cdace1f11a680b35c7 Mon Sep 17 00:00:00 2001 From: Michael Schroeder Date: Mon, 31 Mar 2025 15:59:57 +0200 Subject: [PATCH] Hide a couple of internal definitions --- src/dataiterator.h | 2 ++ src/policy.h | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/dataiterator.h b/src/dataiterator.h index 357ae598..f45abb6a 100644 --- a/src/dataiterator.h +++ b/src/dataiterator.h @@ -61,8 +61,10 @@ typedef struct s_KeyValue { #define SEARCH_CHECKSUMS (1<<18) /* internal */ +#ifdef LIBSOLV_INTERNAL #define SEARCH_SUBSCHEMA (1<<30) #define SEARCH_THISSOLVID (1<<31) +#endif /* obsolete */ #define SEARCH_COMPLETE_FILELIST 0 /* ignored, this is the default */ diff --git a/src/policy.h b/src/policy.h index 3ae1005a..d58d00e6 100644 --- a/src/policy.h +++ b/src/policy.h @@ -19,9 +19,12 @@ extern "C" { #define POLICY_MODE_CHOOSE 0 #define POLICY_MODE_RECOMMEND 1 #define POLICY_MODE_SUGGEST 2 + +#ifdef LIBSOLV_INTERNAL #define POLICY_MODE_CHOOSE_NOREORDER 3 /* internal, do not use */ -#define POLICY_MODE_SUPPLEMENT 4 /* internal, do not use */ +#define POLICY_MODE_SUPPLEMENT 4 /* internal, do not use */ #define POLICY_MODE_FAVOR_REC (1 << 30) /* internal, do not use */ +#endif #define POLICY_ILLEGAL_DOWNGRADE 1 -- 2.47.2