diff options
Diffstat (limited to 'chromium/dbus/util.h')
-rw-r--r-- | chromium/dbus/util.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/chromium/dbus/util.h b/chromium/dbus/util.h new file mode 100644 index 00000000000..b983b6fdb86 --- /dev/null +++ b/chromium/dbus/util.h @@ -0,0 +1,28 @@ +// Copyright 2014 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef DBUS_UTIL_H_ +#define DBUS_UTIL_H_ + +#include <string> + +#include "dbus/dbus_export.h" + +namespace dbus { + +// Returns the absolute name of a member by concatanating |interface_name| and +// |member_name|. e.g.: +// GetAbsoluteMemberName( +// "org.freedesktop.DBus.Properties", +// "PropertiesChanged") +// +// => "org.freedesktop.DBus.Properties.PropertiesChanged" +// +CHROME_DBUS_EXPORT std::string GetAbsoluteMemberName( + const std::string& interface_name, + const std::string& member_name); + +} // namespace dbus + +#endif // DBUS_UTIL_H_ |