aboutsummaryrefslogtreecommitdiff
path: root/paludis/resolver/destinations.hh
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-09-01 17:43:20 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-09-01 18:30:27 +0100
commitb1ccdd2e6af952961f50b1d3f9da3dc192d4c8cc (patch)
treed31883ed8ca6ee18d6a4ff31cfb1d41b615f5c8a /paludis/resolver/destinations.hh
parentc94a500a0b3e98e2d75bdfe667fe85949a1f8c27 (diff)
downloadpaludis-b1ccdd2e6af952961f50b1d3f9da3dc192d4c8cc.tar.gz
paludis-b1ccdd2e6af952961f50b1d3f9da3dc192d4c8cc.tar.xz
serialise
Diffstat (limited to 'paludis/resolver/destinations.hh')
-rw-r--r--paludis/resolver/destinations.hh11
1 files changed, 11 insertions, 0 deletions
diff --git a/paludis/resolver/destinations.hh b/paludis/resolver/destinations.hh
index e3cb66d..8c327dc 100644
--- a/paludis/resolver/destinations.hh
+++ b/paludis/resolver/destinations.hh
@@ -21,6 +21,7 @@
#define PALUDIS_GUARD_PALUDIS_RESOLVER_DESTINATIONS_HH 1
#include <paludis/resolver/destinations-fwd.hh>
+#include <paludis/resolver/serialise-fwd.hh>
#include <paludis/util/named_value.hh>
#include <paludis/name.hh>
#include <paludis/package_id-fwd.hh>
@@ -41,11 +42,21 @@ namespace paludis
{
NamedValue<n::replacing, std::tr1::shared_ptr<const PackageIDSequence> > replacing;
NamedValue<n::repository, RepositoryName> repository;
+
+ void serialise(Serialiser &) const;
+
+ static const std::tr1::shared_ptr<Destination> deserialise(
+ Deserialisation & d) PALUDIS_ATTRIBUTE((warn_unused_result));
};
struct Destinations
{
NamedValue<n::slash, std::tr1::shared_ptr<Destination> > slash;
+
+ void serialise(Serialiser &) const;
+
+ static const std::tr1::shared_ptr<Destinations> deserialise(
+ Deserialisation & d) PALUDIS_ATTRIBUTE((warn_unused_result));
};
}
}