]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
Hide a couple of internal definitions
authorMichael Schroeder <mls@suse.de>
Mon, 31 Mar 2025 13:59:57 +0000 (15:59 +0200)
committerMichael Schroeder <mls@suse.de>
Mon, 31 Mar 2025 13:59:57 +0000 (15:59 +0200)
src/dataiterator.h
src/policy.h

index 357ae5989f68e636d1c32f20282a286d6a749313..f45abb6a78169e76345f90ec4156b89c24ae038e 100644 (file)
@@ -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 */
index 3ae1005a1184b0515bd09a6ddb9f6a360e9a2dcf..d58d00e6c10e71053420837adcde3b476b3955ce 100644 (file)
@@ -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