Home | History | Annotate | Download | only in dbus

Lines Matching defs:Bus

5 #include "dbus/bus.h"
41 // The class is used for watching the file descriptor used for D-Bus
102 // The class is used for monitoring the timeout used for D-Bus method
108 // Bus::OnRemoveTimeout(). That's why we don't simply delete the object in
109 // Bus::OnRemoveTimeout().
126 void StartMonitoring(Bus* bus) {
127 bus->GetDBusTaskRunner()->PostDelayedTask(
163 // occur if this function is called after Bus::OnRemoveTimeout().
181 Bus::Options::Options()
186 Bus::Options::~Options() {
189 Bus::Bus(const Options& options)
210 Bus::~Bus() {
223 ObjectProxy* Bus::GetObjectProxy(const std::string& service_name,
229 ObjectProxy* Bus::GetObjectProxyWithOptions(const std::string& service_name,
249 bool Bus::RemoveObjectProxy(const std::string& service_name,
257 bool Bus::RemoveObjectProxyWithOptions(const std::string& service_name,
273 base::Bind(&Bus::RemoveObjectProxyInternal,
280 void Bus::RemoveObjectProxyInternal(scoped_refptr<ObjectProxy> object_proxy,
289 ExportedObject* Bus::GetExportedObject(const ObjectPath& object_path) {
305 void Bus::UnregisterExportedObject(const ObjectPath& object_path) {
317 // Post the task to perform the final unregistration to the D-Bus thread.
318 // Since the registration also happens on the D-Bus thread in
324 base::Bind(&Bus::UnregisterExportedObjectInternal,
328 void Bus::UnregisterExportedObjectInternal(
335 ObjectManager* Bus::GetObjectManager(const std::string& service_name,
353 void Bus::RemoveObjectManager(const std::string& service_name,
366 void Bus::GetManagedObjects() {
373 bool Bus::Connect() {
397 LOG(ERROR) << "Failed to connect to the bus: "
405 // org.freedesktop.DBus.Hello method at the beging of bus connection to
409 LOG(ERROR) << "Failed to register the bus component: "
418 AddFilterFunction(Bus::OnConnectionDisconnectedFilter, this);
424 void Bus::ClosePrivateConnection() {
432 void Bus::ShutdownAndBlock() {
473 RemoveFilterFunction(Bus::OnConnectionDisconnectedFilter, this);
486 void Bus::ShutdownOnDBusThreadAndBlock() {
492 base::Bind(&Bus::ShutdownOnDBusThreadAndBlockInternal, this));
497 // Wait until the shutdown is complete on the D-Bus thread.
502 LOG_IF(ERROR, !signaled) << "Failed to shutdown the bus";
505 void Bus::RequestOwnership(const std::string& service_name,
512 base::Bind(&Bus::RequestOwnershipInternal,
516 void Bus::RequestOwnershipInternal(const std::string& service_name,
531 bool Bus::RequestOwnershipAndBlock(const std::string& service_name,
556 bool Bus::ReleaseOwnership(const std::string& service_name) {
565 LOG(ERROR) << service_name << " is not owned by the bus";
583 bool Bus::SetUpAsyncOperations() {
595 &Bus::OnAddWatchThunk,
596 &Bus::OnRemoveWatchThunk,
597 &Bus::OnToggleWatchThunk,
603 &Bus::OnAddTimeoutThunk,
604 &Bus::OnRemoveTimeoutThunk,
605 &Bus::OnToggleTimeoutThunk,
612 &Bus::OnDispatchStatusChangedThunk,
621 DBusMessage* Bus::SendWithReplyAndBlock(DBusMessage* request,
631 void Bus::SendWithReply(DBusMessage* request,
642 void Bus::Send(DBusMessage* request, uint32* serial) {
650 bool Bus::AddFilterFunction(DBusHandleMessageFunction filter_function,
671 bool Bus::RemoveFilterFunction(DBusHandleMessageFunction filter_function,
691 void Bus::AddMatch(const std::string& match_rule, DBusError* error) {
709 bool Bus::RemoveMatch(const std::string& match_rule, DBusError* error) {
729 bool Bus::TryRegisterObjectPath(const ObjectPath& object_path,
753 void Bus::UnregisterObjectPath(const ObjectPath& object_path) {
771 void Bus::ShutdownOnDBusThreadAndBlockInternal() {
778 void Bus::ProcessAllIncomingDataIfAny() {
796 base::TaskRunner* Bus::GetDBusTaskRunner() {
803 base::TaskRunner* Bus::GetOriginTaskRunner() {
808 bool Bus::HasDBusThread() {
812 void Bus::AssertOnOriginThread() {
816 void Bus::AssertOnDBusThread() {
826 std::string Bus::GetServiceOwnerAndBlock(const std::string& service_name,
865 void Bus::GetServiceOwner(const std::string& service_name,
871 base::Bind(&Bus::GetServiceOwnerInternal, this, service_name, callback));
874 void Bus::GetServiceOwnerInternal(const std::string& service_name,
885 void Bus::ListenForServiceOwnerChange(
894 base::Bind(&Bus::ListenForServiceOwnerChangeInternal,
898 void Bus::ListenForServiceOwnerChangeInternal(
910 AddFilterFunction(Bus::OnServiceOwnerChangedFilter, this);
942 void Bus::UnlistenForServiceOwnerChange(
951 base::Bind(&Bus::UnlistenForServiceOwnerChangeInternal,
955 void Bus::UnlistenForServiceOwnerChangeInternal(
988 RemoveFilterFunction(Bus::OnServiceOwnerChangedFilter, this);
993 dbus_bool_t Bus::OnAddWatch(DBusWatch* raw_watch) {
1005 void Bus::OnRemoveWatch(DBusWatch* raw_watch) {
1013 void Bus::OnToggleWatch(DBusWatch* raw_watch) {
1026 dbus_bool_t Bus::OnAddTimeout(DBusTimeout* raw_timeout) {
1039 void Bus::OnRemoveTimeout(DBusTimeout* raw_timeout) {
1047 void Bus::OnToggleTimeout(DBusTimeout* raw_timeout) {
1058 void Bus::OnDispatchStatusChanged(DBusConnection* connection,
1065 // prohibited by the D-Bus library. Hence, we post a task here instead.
1068 base::Bind(&Bus::ProcessAllIncomingDataIfAny,
1072 void Bus::OnConnectionDisconnected(DBusConnection* connection) {
1085 void Bus::OnServiceOwnerChanged(DBusMessage* message) {
1124 dbus_bool_t Bus::OnAddWatchThunk(DBusWatch* raw_watch, void* data) {
1125 Bus* self = static_cast<Bus*>(data);
1130 void Bus::OnRemoveWatchThunk(DBusWatch* raw_watch, void* data) {
1131 Bus* self = static_cast<Bus*>(data);
1136 void Bus::OnToggleWatchThunk(DBusWatch* raw_watch, void* data) {
1137 Bus* self = static_cast<Bus*>(data);
1142 dbus_bool_t Bus::OnAddTimeoutThunk(DBusTimeout* raw_timeout, void* data) {
1143 Bus* self = static_cast<Bus*>(data);
1148 void Bus::OnRemoveTimeoutThunk(DBusTimeout* raw_timeout, void* data) {
1149 Bus* self = static_cast<Bus*>(data);
1154 void Bus::OnToggleTimeoutThunk(DBusTimeout* raw_timeout, void* data) {
1155 Bus* self = static_cast<Bus*>(data);
1160 void Bus::OnDispatchStatusChangedThunk(DBusConnection* connection,
1163 Bus* self = static_cast<Bus*>(data);
1168 DBusHandlerResult Bus::OnConnectionDisconnectedFilter(
1175 Bus* self = static_cast<Bus*>(data);
1183 DBusHandlerResult Bus::OnServiceOwnerChangedFilter(
1190 Bus* self = static_cast<Bus*>(data);