summaryrefslogtreecommitdiff
path: root/lib/rpmts_internal.h
diff options
context:
space:
mode:
authorSteve Lawrence <slawrence@tresys.com>2010-08-30 16:32:27 -0400
committerPanu Matilainen <pmatilai@redhat.com>2010-09-01 09:04:05 +0300
commit883f13c8b735bda07b46ee8262cdba7d774322a4 (patch)
treeac9336e55e578aaa1e98e9b8d55012d4f344d327 /lib/rpmts_internal.h
parentd010ec1c9026b35f5b2521be965c03c826894ce8 (diff)
downloadlibrpm-tizen-883f13c8b735bda07b46ee8262cdba7d774322a4.tar.gz
librpm-tizen-883f13c8b735bda07b46ee8262cdba7d774322a4.tar.bz2
librpm-tizen-883f13c8b735bda07b46ee8262cdba7d774322a4.zip
Update the plugin architecture to allow for remembering state
This moves most of the plugin logic to a new rpmplugins file with a struct and functions for managing plugins, allowing for plugins to carry state. This also adds init and cleanup hooks for plugins to initialize and cleanup their state, and a new 'open te' hook allowing plugins to read and save information from transaction elements. This also generalizes the plugin architecture a bit so it isn't so specific to collections.
Diffstat (limited to 'lib/rpmts_internal.h')
-rw-r--r--lib/rpmts_internal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rpmts_internal.h b/lib/rpmts_internal.h
index 1a16457a1..4a4de457b 100644
--- a/lib/rpmts_internal.h
+++ b/lib/rpmts_internal.h
@@ -62,6 +62,8 @@ struct rpmts_s {
rpmSpec spec; /*!< Spec file control structure. */
+ rpmPlugins plugins; /*!< Transaction plugins */
+
int nrefs; /*!< Reference count. */
};