Lines Matching refs:mi

3095 hald_exec_method_free_mi (MethodInvocation *mi)
3097 /* hald_runner_run_method() assumes ownership of mi->message.. so we don't free it here */
3098 g_free (mi->udi);
3099 g_free (mi->execpath);
3100 g_strfreev (mi->extra_env);
3101 g_free (mi->mstdin);
3102 g_free (mi->member);
3103 g_free (mi->interface);
3104 g_free (mi);
3109 hald_exec_method_do_invocation (MethodInvocation *mi)
3116 d = hal_device_store_find (hald_get_gdl (), mi->udi);
3118 d = hal_device_store_find (hald_get_tdl (), mi->udi);
3123 mi->execpath,
3124 mi->extra_env,
3125 mi->mstdin,
3129 (gpointer) mi->message,
3130 (gpointer) mi->connection);
3136 raise_no_such_device (mi->connection, mi->message, mi->udi);
3158 MethodInvocation *mi;
3159 mi = (MethodInvocation *) queue->data;
3160 if ((strcmp (mi->interface, interface_name) == 0) &&
3161 (strcmp (mi->member, method_name) == 0)) {
3175 hald_exec_method_enqueue (MethodInvocation *mi)
3187 if (g_hash_table_lookup_extended (udi_to_method_queue, mi->udi, &origkey, (gpointer) &queue)) {
3189 queue = g_list_append (queue, mi);
3190 g_hash_table_replace (udi_to_method_queue, g_strdup (mi->udi), queue);
3193 queue = g_list_append (NULL, mi);
3194 g_hash_table_insert (udi_to_method_queue, g_strdup (mi->udi), queue);
3196 hald_exec_method_do_invocation (mi);
3206 MethodInvocation *mi;
3212 mi = (MethodInvocation *) queue->data;
3220 if (strcmp (mi->interface, "org.freedesktop.Hal.Device.Volume") == 0 &&
3221 strcmp (mi->member, "Unmount") == 0) {
3224 HAL_INFO (("Refreshing mount state for %s since Unmount() completed", mi->udi));
3226 d = hal_device_store_find (hald_get_gdl (), mi->udi);
3228 d = hal_device_store_find (hald_get_tdl (), mi->udi);
3234 HAL_WARNING ((" Cannot find device object for %s", mi->udi));
3238 hald_exec_method_free_mi (mi);
3246 mi = (MethodInvocation *) queue->data;
3247 if (!hald_exec_method_do_invocation (mi)) {
3249 hald_exec_method_process_queue (mi->udi);
3348 MethodInvocation *mi;
3485 mi = g_new0 (MethodInvocation, 1);
3486 mi->udi = g_strdup (d->udi);
3487 mi->execpath = g_strdup (execpath);
3488 mi->extra_env = g_strdupv (extra_env);
3489 mi->mstdin = g_strdup (stdin_str->str);
3490 mi->message = message;
3491 mi->connection = connection;
3492 mi->member = g_strdup (dbus_message_get_member (message));
3493 mi->interface = g_strdup (dbus_message_get_interface (message));
3494 hald_exec_method_enqueue (mi);