dbus: move types to header for use in tests
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: Iff106e17fa020d7deff29b78af8a5337324317d8
diff --git a/dbus/dbusconfiguration.hpp b/dbus/dbusconfiguration.hpp
index fc119e8..29f8597 100644
--- a/dbus/dbusconfiguration.hpp
+++ b/dbus/dbusconfiguration.hpp
@@ -13,13 +13,28 @@
// See the License for the specific language governing permissions and
// limitations under the License.
*/
-
#pragma once
+
#include "conf.hpp"
#include <boost/asio/steady_timer.hpp>
#include <sdbusplus/bus.hpp>
+#include <cstdint>
+#include <string>
+#include <unordered_map>
+#include <variant>
+#include <vector>
+
+using DbusVariantType =
+ std::variant<uint64_t, int64_t, double, std::string,
+ std::vector<std::string>, std::vector<double>>;
+
+using ManagedObjectType = std::unordered_map<
+ sdbusplus::message::object_path,
+ std::unordered_map<std::string,
+ std::unordered_map<std::string, DbusVariantType>>>;
+
namespace pid_control
{
namespace dbus_configuration