On 01/03/2012 01:08 PM, Florian Festi wrote:
The libzypp API looks pretty complicated. The "next-gen API for package management?" thread on the zypp-devel (September 2011) did not exactly dispel our concerns about that. As we need a C API using C++ creates a lot of overhead. If libzypp would provide the perfect API just putting a C layer in front would be a good way to go. But doing a lot of simplification within this step (as zpm [2]) will likely require tools needing access to "more internal" parts of the API to either be in C++ or wait for a new C layer being written. This is not a situation we are looking forward to.
Yes. Our plan is to write a simplified version of ZYpp API more suitable for writing clients and tools and then wrapping it in C. I know that this means adding new APIs everytime one needs to expose something advanced, but if the alternative is to write the complete core in C, then I think there is still an advantage in our approach. I would still be interested in more concrete examples about the kind API you need as you develop it, as it may help us shaping up the ZYpp API. -- Duncan Mac-Vicar P. - http://www.suse.com/ SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg) Maxfeldstraße 5, 90409 Nürnberg, Germany -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org To contact the owner, e-mail: zypp-devel+owner@opensuse.org