interfaces: use old dbus encoding

Due to backwards compatibility with old configurations, this is an easy
fix to bring back the old object paths.

Tests are provided to capture this behavior.

Change-Id: Ic89f2eb02bb908cf23b833b08fdca941bef2a07a
Signed-off-by: Alexander Hansen <alexander.hansen@9elements.com>
diff --git a/interfaces/internal_interface.hpp b/interfaces/internal_interface.hpp
index a588226..e0b2b0b 100644
--- a/interfaces/internal_interface.hpp
+++ b/interfaces/internal_interface.hpp
@@ -63,6 +63,14 @@
 
     void removeLED(const std::string& name);
 
+    /** @brief Generates LED DBus name from LED description
+     *
+     *  @param[in] name      - LED description
+     *  @return              - DBus LED name
+     */
+
+    static std::string getDbusName(const LedDescr& ledDescr);
+
   private:
     /**
      *  @brief  Unordered map to declare the sysfs LEDs
@@ -112,14 +120,6 @@
      */
 
     void createLEDPath(const std::string& ledName);
-
-    /** @brief Generates LED DBus name from LED description
-     *
-     *  @param[in] name      - LED description
-     *  @return              - DBus LED name
-     */
-
-    static std::string getDbusName(const LedDescr& ledDescr);
 };
 
 } // namespace interface