| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 // | 4 // |
| 5 // TODO(satorux): | 5 // TODO(satorux): |
| 6 // - Handle "disconnected" signal. | 6 // - Handle "disconnected" signal. |
| 7 | 7 |
| 8 #include "dbus/bus.h" | 8 #include "dbus/bus.h" |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 785 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 796 this)); | 796 this)); |
| 797 } | 797 } |
| 798 | 798 |
| 799 dbus_bool_t Bus::OnAddWatchThunk(DBusWatch* raw_watch, void* data) { | 799 dbus_bool_t Bus::OnAddWatchThunk(DBusWatch* raw_watch, void* data) { |
| 800 Bus* self = static_cast<Bus*>(data); | 800 Bus* self = static_cast<Bus*>(data); |
| 801 return self->OnAddWatch(raw_watch); | 801 return self->OnAddWatch(raw_watch); |
| 802 } | 802 } |
| 803 | 803 |
| 804 void Bus::OnRemoveWatchThunk(DBusWatch* raw_watch, void* data) { | 804 void Bus::OnRemoveWatchThunk(DBusWatch* raw_watch, void* data) { |
| 805 Bus* self = static_cast<Bus*>(data); | 805 Bus* self = static_cast<Bus*>(data); |
| 806 return self->OnRemoveWatch(raw_watch); | 806 self->OnRemoveWatch(raw_watch); |
| 807 } | 807 } |
| 808 | 808 |
| 809 void Bus::OnToggleWatchThunk(DBusWatch* raw_watch, void* data) { | 809 void Bus::OnToggleWatchThunk(DBusWatch* raw_watch, void* data) { |
| 810 Bus* self = static_cast<Bus*>(data); | 810 Bus* self = static_cast<Bus*>(data); |
| 811 return self->OnToggleWatch(raw_watch); | 811 self->OnToggleWatch(raw_watch); |
| 812 } | 812 } |
| 813 | 813 |
| 814 dbus_bool_t Bus::OnAddTimeoutThunk(DBusTimeout* raw_timeout, void* data) { | 814 dbus_bool_t Bus::OnAddTimeoutThunk(DBusTimeout* raw_timeout, void* data) { |
| 815 Bus* self = static_cast<Bus*>(data); | 815 Bus* self = static_cast<Bus*>(data); |
| 816 return self->OnAddTimeout(raw_timeout); | 816 return self->OnAddTimeout(raw_timeout); |
| 817 } | 817 } |
| 818 | 818 |
| 819 void Bus::OnRemoveTimeoutThunk(DBusTimeout* raw_timeout, void* data) { | 819 void Bus::OnRemoveTimeoutThunk(DBusTimeout* raw_timeout, void* data) { |
| 820 Bus* self = static_cast<Bus*>(data); | 820 Bus* self = static_cast<Bus*>(data); |
| 821 return self->OnRemoveTimeout(raw_timeout); | 821 self->OnRemoveTimeout(raw_timeout); |
| 822 } | 822 } |
| 823 | 823 |
| 824 void Bus::OnToggleTimeoutThunk(DBusTimeout* raw_timeout, void* data) { | 824 void Bus::OnToggleTimeoutThunk(DBusTimeout* raw_timeout, void* data) { |
| 825 Bus* self = static_cast<Bus*>(data); | 825 Bus* self = static_cast<Bus*>(data); |
| 826 return self->OnToggleTimeout(raw_timeout); | 826 self->OnToggleTimeout(raw_timeout); |
| 827 } | 827 } |
| 828 | 828 |
| 829 void Bus::OnDispatchStatusChangedThunk(DBusConnection* connection, | 829 void Bus::OnDispatchStatusChangedThunk(DBusConnection* connection, |
| 830 DBusDispatchStatus status, | 830 DBusDispatchStatus status, |
| 831 void* data) { | 831 void* data) { |
| 832 Bus* self = static_cast<Bus*>(data); | 832 Bus* self = static_cast<Bus*>(data); |
| 833 return self->OnDispatchStatusChanged(connection, status); | 833 self->OnDispatchStatusChanged(connection, status); |
| 834 } | 834 } |
| 835 | 835 |
| 836 } // namespace dbus | 836 } // namespace dbus |
| OLD | NEW |