Mercurial > audlegacy-plugins
comparison src/bluetooth/agent.c @ 2896:35773e919dba
removed unsed mutex - and a dupplicate function call
author | Paula Stanciu <paula.stanciu@gmail.com> |
---|---|
date | Wed, 13 Aug 2008 09:35:56 +0300 |
parents | 4128ae5633e4 |
children | 223822ba79f2 |
comparison
equal
deleted
inserted
replaced
2895:92fc55b8da15 | 2896:35773e919dba |
---|---|
698 } | 698 } |
699 | 699 |
700 static void bonding_created(DBusGProxy *object, | 700 static void bonding_created(DBusGProxy *object, |
701 const char *address, gpointer user_data) | 701 const char *address, gpointer user_data) |
702 { | 702 { |
703 bonded_dev_mutex = g_mutex_new (); | 703 |
704 | 704 |
705 const char *adapter = NULL, *name = NULL; | 705 const char *adapter = NULL, *name = NULL; |
706 gchar *device, *text; | 706 gchar *device, *text; |
707 | 707 |
708 dbus_g_proxy_call(object, "GetName", NULL, G_TYPE_INVALID, | 708 dbus_g_proxy_call(object, "GetName", NULL, G_TYPE_INVALID, |
717 device = g_strdup(name); | 717 device = g_strdup(name); |
718 else | 718 else |
719 device = g_strdup_printf("%s (%s)", name, address); | 719 device = g_strdup_printf("%s (%s)", name, address); |
720 } else | 720 } else |
721 device = g_strdup(address); | 721 device = g_strdup(address); |
722 | 722 bonded_dev = g_strdup_printf(address); |
723 g_mutex_lock(bonded_dev_mutex); | 723 |
724 bonded_dev = g_strdup_printf(address); | |
725 g_mutex_unlock(bonded_dev_mutex); | |
726 | 724 |
727 text = g_strdup_printf(_("Created bonding with %s"), device); | 725 text = g_strdup_printf(_("Created bonding with %s"), device); |
728 bonding_finish = 1; | 726 bonding_finish = 1; |
729 g_free(device); | 727 g_free(device); |
730 | 728 |
754 device = g_strdup(address); | 752 device = g_strdup(address); |
755 | 753 |
756 text = g_strdup_printf(_("Removed bonding with %s"), device); | 754 text = g_strdup_printf(_("Removed bonding with %s"), device); |
757 | 755 |
758 g_free(device); | 756 g_free(device); |
759 printf("bonding removed"); | 757 printf("bonding removed\n"); |
760 | 758 |
761 // show_notification(adapter ? adapter : _("Bluetooth device"), | 759 // show_notification(adapter ? adapter : _("Bluetooth device"), |
762 // text, NULL, 6000, NULL); | 760 // text, NULL, 6000, NULL); |
763 | 761 |
764 g_free(text); | 762 g_free(text); |