mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-05 07:38:20 +02:00
BusTransaction: remove confusing getter of connections
There is a DBusList* member of BusTransaction named "connections", while its getter function bus_transaction_get_connections() returns context->connections which in fact is a BusConnections pointer, this is quite confusing. Because this is what bus_context_get_connections() returns. This patch call out to bus_context_get_connections() directly and remove the then unused bus_transaction_get_connections(). https://bugs.freedesktop.org/show_bug.cgi?id=71597 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
This commit is contained in:
parent
b2a517040c
commit
854554c3a6
4 changed files with 2 additions and 9 deletions
|
|
@ -2026,12 +2026,6 @@ bus_transaction_get_context (BusTransaction *transaction)
|
|||
return transaction->context;
|
||||
}
|
||||
|
||||
BusConnections*
|
||||
bus_transaction_get_connections (BusTransaction *transaction)
|
||||
{
|
||||
return bus_context_get_connections (transaction->context);
|
||||
}
|
||||
|
||||
dbus_bool_t
|
||||
bus_transaction_send_from_driver (BusTransaction *transaction,
|
||||
DBusConnection *connection,
|
||||
|
|
|
|||
|
|
@ -122,7 +122,6 @@ typedef void (* BusTransactionCancelFunction) (void *data);
|
|||
|
||||
BusTransaction* bus_transaction_new (BusContext *context);
|
||||
BusContext* bus_transaction_get_context (BusTransaction *transaction);
|
||||
BusConnections* bus_transaction_get_connections (BusTransaction *transaction);
|
||||
dbus_bool_t bus_transaction_send (BusTransaction *transaction,
|
||||
DBusConnection *connection,
|
||||
DBusMessage *message);
|
||||
|
|
|
|||
|
|
@ -133,7 +133,7 @@ bus_dispatch_matches (BusTransaction *transaction,
|
|||
}
|
||||
|
||||
/* Now dispatch to others who look interested in this message */
|
||||
connections = bus_transaction_get_connections (transaction);
|
||||
connections = bus_context_get_connections (context);
|
||||
dbus_error_init (&tmp_error);
|
||||
matchmaker = bus_context_get_matchmaker (context);
|
||||
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ bus_stats_handle_get_stats (DBusConnection *connection,
|
|||
|
||||
_DBUS_ASSERT_ERROR_IS_CLEAR (error);
|
||||
|
||||
connections = bus_transaction_get_connections (transaction);
|
||||
connections = bus_context_get_connections (transaction->context);
|
||||
|
||||
reply = _dbus_asv_new_method_return (message, &iter, &arr_iter);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue