]> git.ipfire.org Git - thirdparty/libsolv.git/commit
Move replace solution types from the bindings to the library
authorMichael Schroeder <mls@suse.de>
Wed, 21 Dec 2022 12:52:41 +0000 (13:52 +0100)
committerMichael Schroeder <mls@suse.de>
Wed, 21 Dec 2022 13:06:16 +0000 (14:06 +0100)
commit685a7c850a53058f50697cedea483f076695a614
tree310c197a0be33521d43568fcce8fe06d7ae50e76
parenta030365d79289f64bd5f59828004cb0db2543af5
Move replace solution types from the bindings to the library

This adds two new functions:

solver_all_solutionelements()
return a queue with (type,p,rp) solution triplets.

solver_solutionelementtype2str()
this is similar to solver_solutionelement2str(), but also takes a
type parameter so that the replace types result in different strings.

Make use of the two functions in the example solver to
show how they work.
bindings/solv.i
examples/solv/solv.c
src/libsolv.ver
src/problems.c
src/problems.h
src/solverdebug.c