Add plugin calling support
authorSteve Lawrence <slawrence@tresys.com>
Mon, 21 Jun 2010 21:04:39 +0000 (17:04 -0400)
committerPanu Matilainen <pmatilai@redhat.com>
Tue, 22 Jun 2010 08:12:43 +0000 (11:12 +0300)
commit04bdec775ac56c7673f87257306b23536a954474
tree9b3209bfd02f9bee5311a7d9952e8122ed4be1e0
parent2fd0913a6abd91389a3f1498ef9c4b2c6c72bff1
Add plugin calling support

This patch adds a simple plugin system that makes simple problems easy to
solve, and difficult problems, such as SELinux, possible.

When the transaction gets to the point where a collection action should occur,
it expands a macro of the form %__collection_<collection name> to get the path
to a plugin and any additional options. The plugin is dlopen'ed, and the
appropriate function is called in the plugin, with the additional arguments
passed in.

This also adds a --nocollections option to disable performing Collection
actions.
lib/Makefile.am
lib/collections.h [new file with mode: 0644]
lib/poptI.c
lib/rpmte.c
lib/rpmts.h
system.h