scoped_dbus_error.cc 462 B

123456789101112131415161718192021
  1. // Copyright (c) 2012 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. #include "dbus/scoped_dbus_error.h"
  5. namespace dbus {
  6. ScopedDBusError::ScopedDBusError() {
  7. dbus_error_init(&error_);
  8. }
  9. ScopedDBusError::~ScopedDBusError() {
  10. dbus_error_free(&error_);
  11. }
  12. bool ScopedDBusError::is_set() const {
  13. return dbus_error_is_set(&error_);
  14. }
  15. } // namespace dbus