Added devolve function for 'ResourceProviderInfo'.

Review: https://reviews.apache.org/r/66451/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/d3cc91ee
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/d3cc91ee
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/d3cc91ee

Branch: refs/heads/master
Commit: d3cc91ee24fd3cbd20e2f05675f7f513b40c59d2
Parents: 4bed840
Author: Benjamin Bannier <benjamin.bann...@mesosphere.io>
Authored: Mon Apr 9 13:49:51 2018 +0200
Committer: Benjamin Bannier <bbann...@apache.org>
Committed: Mon Apr 9 13:49:51 2018 +0200

----------------------------------------------------------------------
 src/internal/devolve.cpp | 6 ++++++
 src/internal/devolve.hpp | 2 ++
 2 files changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/d3cc91ee/src/internal/devolve.cpp
----------------------------------------------------------------------
diff --git a/src/internal/devolve.cpp b/src/internal/devolve.cpp
index 5df5d41..93bd975 100644
--- a/src/internal/devolve.cpp
+++ b/src/internal/devolve.cpp
@@ -124,6 +124,12 @@ ResourceProviderID devolve(const v1::ResourceProviderID& 
resourceProviderId)
   return id;
 }
 
+ResourceProviderInfo devolve(
+    const v1::ResourceProviderInfo& resourceProviderInfo)
+{
+  return devolve<ResourceProviderInfo>(resourceProviderInfo);
+}
+
 
 Resources devolve(const v1::Resources& resources)
 {

http://git-wip-us.apache.org/repos/asf/mesos/blob/d3cc91ee/src/internal/devolve.hpp
----------------------------------------------------------------------
diff --git a/src/internal/devolve.hpp b/src/internal/devolve.hpp
index eb58a90..8007f42 100644
--- a/src/internal/devolve.hpp
+++ b/src/internal/devolve.hpp
@@ -63,6 +63,8 @@ Offer devolve(const v1::Offer& offer);
 OperationStatus devolve(const v1::OperationStatus& status);
 Resource devolve(const v1::Resource& resource);
 ResourceProviderID devolve(const v1::ResourceProviderID& resourceProviderId);
+ResourceProviderInfo devolve(
+    const v1::ResourceProviderInfo& resourceProviderInfo);
 Resources devolve(const v1::Resources& resources);
 SlaveID devolve(const v1::AgentID& agentId);
 SlaveInfo devolve(const v1::AgentInfo& agentInfo);

Reply via email to