util.h 729 B

12345678910111213141516171819202122232425262728
  1. // Copyright 2014 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef DBUS_UTIL_H_
  5. #define DBUS_UTIL_H_
  6. #include <string>
  7. #include "dbus/dbus_export.h"
  8. namespace dbus {
  9. // Returns the absolute name of a member by concatanating |interface_name| and
  10. // |member_name|. e.g.:
  11. // GetAbsoluteMemberName(
  12. // "org.freedesktop.DBus.Properties",
  13. // "PropertiesChanged")
  14. //
  15. // => "org.freedesktop.DBus.Properties.PropertiesChanged"
  16. //
  17. CHROME_DBUS_EXPORT std::string GetAbsoluteMemberName(
  18. const std::string& interface_name,
  19. const std::string& member_name);
  20. } // namespace dbus
  21. #endif // DBUS_UTIL_H_