• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/dbus-1.6.8/bus/

Lines Matching refs:pending_activation

147 bus_pending_activation_ref (BusPendingActivation *pending_activation)
149 _dbus_assert (pending_activation->refcount > 0);
150 pending_activation->refcount += 1;
152 return pending_activation;
156 bus_pending_activation_unref (BusPendingActivation *pending_activation)
160 if (pending_activation == NULL) /* hash table requires this */
163 _dbus_assert (pending_activation->refcount > 0);
164 pending_activation->refcount -= 1;
166 if (pending_activation->refcount > 0)
169 if (pending_activation->timeout_added)
171 _dbus_loop_remove_timeout (bus_context_get_loop (pending_activation->activation->context),
172 pending_activation->timeout);
173 pending_activation->timeout_added = FALSE;
176 if (pending_activation->timeout)
177 _dbus_timeout_unref (pending_activation->timeout);
179 if (pending_activation->babysitter)
181 if (!_dbus_babysitter_set_watch_functions (pending_activation->babysitter,
183 pending_activation->babysitter,
187 _dbus_babysitter_unref (pending_activation->babysitter);
190 dbus_free (pending_activation->service_name);
191 dbus_free (pending_activation->exec);
192 dbus_free (pending_activation->systemd_service);
194 link = _dbus_list_get_first_link (&pending_activation->entries);
202 link = _dbus_list_get_next_link (&pending_activation->entries, link);
204 _dbus_list_clear (&pending_activation->entries);
206 pending_activation->activation->n_pending_activations -=
207 pending_activation->n_entries;
209 _dbus_assert (pending_activation->activation->n_pending_activations >= 0);
211 dbus_free (pending_activation);
1014 BusPendingActivation *pending_activation;
1023 _dbus_assert (d->pending_activation != NULL);
1027 d->pending_activation->service_name,
1028 d->pending_activation->timeout_added);
1030 _dbus_hash_table_insert_string_preallocated (d->pending_activation->activation->pending_activations,
1032 d->pending_activation->service_name, d->pending_activation);
1034 bus_pending_activation_ref (d->pending_activation);
1045 _dbus_hash_table_free_preallocated_entry (d->pending_activation->activation->pending_activations,
1048 bus_pending_activation_unref (d->pending_activation);
1055 BusPendingActivation *pending_activation)
1063 d->pending_activation = pending_activation;
1064 d->hash_entry = _dbus_hash_table_preallocate_entry (d->pending_activation->activation->pending_activations);
1066 bus_pending_activation_ref (d->pending_activation);
1087 BusPendingActivation *pending_activation;
1094 pending_activation = _dbus_hash_table_lookup_string (activation->pending_activations, service_name);
1096 if (!pending_activation)
1103 link = _dbus_list_get_first_link (&pending_activation->entries);
1107 DBusList *next = _dbus_list_get_next_link (&pending_activation->entries, link);
1160 BusPendingActivation *pending_activation;
1166 pending_activation = _dbus_hash_table_lookup_string (activation->pending_activations,
1169 if (!pending_activation)
1172 link = _dbus_list_get_first_link (&pending_activation->entries);
1176 DBusList *next = _dbus_list_get_next_link (&pending_activation->entries, link);
1195 if (!add_restore_pending_to_transaction (transaction, pending_activation))
1217 try_send_activation_failure (BusPendingActivation *pending_activation,
1224 activation = pending_activation->activation;
1230 link = _dbus_list_get_first_link (&pending_activation->entries);
1234 DBusList *next = _dbus_list_get_next_link (&pending_activation->entries, link);
1263 pending_activation_failed (BusPendingActivation *pending_activation,
1267 while (!try_send_activation_failure (pending_activation, how))
1271 _dbus_hash_table_remove_string (pending_activation->activation->pending_activations,
1272 pending_activation->service_name);
1331 BusPendingActivation *pending_activation = data;
1334 _dbus_assert (babysitter == pending_activation->babysitter);
1345 uses_servicehelper = bus_context_get_servicehelper (pending_activation->activation->context) != NULL;
1383 bus_context_log (pending_activation->activation->context,
1385 pending_activation->service_name,
1389 _dbus_hash_iter_init (pending_activation->activation->pending_activations,
1395 if (p != pending_activation && strcmp (p->exec, pending_activation->exec) == 0)
1400 pending_activation_failed (pending_activation, &error);
1413 BusPendingActivation *pending_activation = data;
1416 bus_context_get_loop (pending_activation->activation->context),
1424 BusPendingActivation *pending_activation = data;
1426 _dbus_loop_remove_watch (bus_context_get_loop (pending_activation->activation->context),
1434 BusPendingActivation *pending_activation = data;
1436 _dbus_loop_toggle_watch (bus_context_get_loop (pending_activation->activation->context),
1443 BusPendingActivation *pending_activation = data;
1450 if (pending_activation->babysitter)
1451 _dbus_babysitter_kill_child (pending_activation->babysitter);
1457 pending_activation->service_name);
1458 bus_context_log (pending_activation->activation->context,
1461 pending_activation->service_name);
1463 pending_activation_failed (pending_activation, &error);
1473 BusPendingActivation *pending_activation = data;
1476 pending_activation->service_name);
1478 if (pending_activation->babysitter)
1479 _dbus_babysitter_kill_child (pending_activation->babysitter);
1481 _dbus_hash_table_remove_string (pending_activation->activation->pending_activations,
1482 pending_activation->service_name);
1488 BusPendingActivation *pending_activation = data;
1490 bus_pending_activation_unref (pending_activation);
1495 BusPendingActivation *pending_activation)
1498 pending_activation,
1502 bus_pending_activation_ref (pending_activation);
1676 BusPendingActivation *pending_activation;
1765 pending_activation = _dbus_hash_table_lookup_string (activation->pending_activations, service_name);
1766 was_pending_activation = (pending_activation != NULL);
1769 if (!_dbus_list_append (&pending_activation->entries, pending_activation_entry))
1778 pending_activation->n_entries += 1;
1779 pending_activation->activation->n_pending_activations += 1;
1783 pending_activation = dbus_new0 (BusPendingActivation, 1);
1784 if (!pending_activation)
1793 pending_activation->activation = activation;
1794 pending_activation->refcount = 1;
1796 pending_activation->service_name = _dbus_strdup (service_name);
1797 if (!pending_activation->service_name)
1802 bus_pending_activation_unref (pending_activation);
1807 pending_activation->exec = _dbus_strdup (entry->exec);
1808 if (!pending_activation->exec)
1812 bus_pending_activation_unref (pending_activation);
1819 pending_activation->systemd_service = _dbus_strdup (entry->systemd_service);
1820 if (!pending_activation->systemd_service)
1824 bus_pending_activation_unref (pending_activation);
1830 pending_activation->timeout =
1833 pending_activation,
1835 if (!pending_activation->timeout)
1840 bus_pending_activation_unref (pending_activation);
1846 pending_activation->timeout))
1851 bus_pending_activation_unref (pending_activation);
1856 pending_activation->timeout_added = TRUE;
1858 if (!_dbus_list_append (&pending_activation->entries, pending_activation_entry))
1863 bus_pending_activation_unref (pending_activation);
1868 pending_activation->n_entries += 1;
1869 pending_activation->activation->n_pending_activations += 1;
1872 pending_activation->service_name,
1873 pending_activation))
1878 bus_pending_activation_unref (pending_activation);
1883 if (!add_cancel_pending_to_transaction (transaction, pending_activation))
1888 pending_activation->service_name);
2058 pending_activation->service_name);
2093 if (!_dbus_spawn_async_with_babysitter (&pending_activation->babysitter, argv,
2114 _dbus_assert (pending_activation->babysitter != NULL);
2116 _dbus_babysitter_set_result_function (pending_activation->babysitter,
2118 pending_activation);
2120 if (!_dbus_babysitter_set_watch_functions (pending_activation->babysitter,
2124 pending_activation,