From: Michael Schroeder Date: Tue, 22 Feb 2022 17:06:29 +0000 (+0100) Subject: Allow querying of the custom vendor check function X-Git-Tag: 0.7.21~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40a29ed210bd7d9e54caa82d5a2759c651472c53;p=thirdparty%2Flibsolv.git Allow querying of the custom vendor check function --- diff --git a/src/libsolv.ver b/src/libsolv.ver index 8f20937a..2fc979da 100644 --- a/src/libsolv.ver +++ b/src/libsolv.ver @@ -70,6 +70,7 @@ SOLV_1.0 { pool_freewhatprovides; pool_get_flag; pool_get_rootdir; + pool_get_custom_vendorcheck; pool_id2evr; pool_id2langid; pool_id2rel; diff --git a/src/pool.c b/src/pool.c index 0b4b9ddc..54226e9a 100644 --- a/src/pool.c +++ b/src/pool.c @@ -2079,4 +2079,9 @@ pool_set_custom_vendorcheck(Pool *pool, int (*vendorcheck)(Pool *, Solvable *, S pool->custom_vendorcheck = vendorcheck; } +int (*pool_get_custom_vendorcheck(Pool *pool))(Pool *, Solvable *, Solvable *) +{ + return pool->custom_vendorcheck; +} + /* EOF */ diff --git a/src/pool.h b/src/pool.h index aa173ea1..935a3263 100644 --- a/src/pool.h +++ b/src/pool.h @@ -258,7 +258,7 @@ extern void pool_setnamespacecallback(Pool *pool, Id (*cb)(struct s_Pool *, void extern void pool_flush_namespaceproviders(Pool *pool, Id ns, Id evr); extern void pool_set_custom_vendorcheck(Pool *pool, int (*vendorcheck)(struct s_Pool *, Solvable *, Solvable *)); - +extern int (*pool_get_custom_vendorcheck(Pool *pool))(struct s_Pool *, Solvable *, Solvable *); extern char *pool_alloctmpspace(Pool *pool, int len); extern void pool_freetmpspace(Pool *pool, const char *space);