summaryrefslogtreecommitdiff
path: root/system.h
diff options
context:
space:
mode:
authorSteve Lawrence <slawrence@tresys.com>2010-06-21 17:04:39 -0400
committerPanu Matilainen <pmatilai@redhat.com>2010-06-22 11:12:43 +0300
commit04bdec775ac56c7673f87257306b23536a954474 (patch)
tree9b3209bfd02f9bee5311a7d9952e8122ed4be1e0 /system.h
parent2fd0913a6abd91389a3f1498ef9c4b2c6c72bff1 (diff)
downloadlibrpm-tizen-04bdec775ac56c7673f87257306b23536a954474.tar.gz
librpm-tizen-04bdec775ac56c7673f87257306b23536a954474.tar.bz2
librpm-tizen-04bdec775ac56c7673f87257306b23536a954474.zip
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.
Diffstat (limited to 'system.h')
-rw-r--r--system.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/system.h b/system.h
index ac18e16fa..e34f6d6d1 100644
--- a/system.h
+++ b/system.h
@@ -144,4 +144,6 @@ extern const char *__progname;
#include "misc/fnmatch.h"
#endif
+#include <dlfcn.h>
+
#endif /* H_SYSTEM */