Rename DBusConnection *disconnected param to connection
authorWill Thompson <will.thompson@collabora.co.uk>
Thu, 3 Sep 2009 14:33:32 +0000 (15:33 +0100)
committerRalf Habacker <ralf.habacker@freenet.de>
Tue, 5 Jan 2010 20:11:13 +0000 (21:11 +0100)
bus/signals.c
bus/signals.h

index 23bf98a..dbfbb5c 100644 (file)
@@ -1446,7 +1446,7 @@ bus_matchmaker_remove_rule_by_value (BusMatchmaker   *matchmaker,
 
 static void
 rule_list_remove_by_connection (DBusList       **rules,
-                                DBusConnection  *disconnected)
+                                DBusConnection  *connection)
 {
   DBusList *link;
 
@@ -1459,7 +1459,7 @@ rule_list_remove_by_connection (DBusList       **rules,
       rule = link->data;
       next = _dbus_list_get_next_link (rules, link);
 
-      if (rule->matches_go_to == disconnected)
+      if (rule->matches_go_to == connection)
         {
           bus_matchmaker_remove_rule_link (rules, link);
         }
@@ -1472,7 +1472,7 @@ rule_list_remove_by_connection (DBusList       **rules,
            */
           const char *name;
 
-          name = bus_connection_get_name (disconnected);
+          name = bus_connection_get_name (connection);
           _dbus_assert (name != NULL); /* because we're an active connection */
 
           if (((rule->flags & BUS_MATCH_SENDER) &&
@@ -1490,7 +1490,7 @@ rule_list_remove_by_connection (DBusList       **rules,
 
 void
 bus_matchmaker_disconnected (BusMatchmaker   *matchmaker,
-                             DBusConnection  *disconnected)
+                             DBusConnection  *connection)
 {
   int i;
 
@@ -1502,23 +1502,23 @@ bus_matchmaker_disconnected (BusMatchmaker   *matchmaker,
    * the connection we'd need to do something more elaborate.
    */
 
-  _dbus_assert (bus_connection_is_active (disconnected));
+  _dbus_assert (bus_connection_is_active (connection));
 
-  _dbus_verbose ("Removing all rules for connection %p\n", disconnected);
+  _dbus_verbose ("Removing all rules for connection %p\n", connection);
 
   for (i = DBUS_MESSAGE_TYPE_INVALID; i < DBUS_NUM_MESSAGE_TYPES; i++)
     {
       RulePool *p = matchmaker->rules_by_type + i;
       DBusHashIter iter;
 
-      rule_list_remove_by_connection (&p->rules_without_iface, disconnected);
+      rule_list_remove_by_connection (&p->rules_without_iface, connection);
 
       _dbus_hash_iter_init (p->rules_by_iface, &iter);
       while (_dbus_hash_iter_next (&iter))
         {
           DBusList **items = _dbus_hash_iter_get_value (&iter);
 
-          rule_list_remove_by_connection (items, disconnected);
+          rule_list_remove_by_connection (items, connection);
 
           if (*items == NULL)
             _dbus_hash_iter_remove_entry (&iter);
index 4ea1075..eeb1d2d 100644 (file)
@@ -77,7 +77,7 @@ dbus_bool_t bus_matchmaker_remove_rule_by_value (BusMatchmaker   *matchmaker,
 void        bus_matchmaker_remove_rule          (BusMatchmaker   *matchmaker,
                                                  BusMatchRule    *rule);
 void        bus_matchmaker_disconnected         (BusMatchmaker   *matchmaker,
-                                                 DBusConnection  *disconnected);
+                                                 DBusConnection  *connection);
 dbus_bool_t bus_matchmaker_get_recipients       (BusMatchmaker   *matchmaker,
                                                  BusConnections  *connections,
                                                  DBusConnection  *sender,