comparison src/bluetooth/bluetooth.c @ 2840:50507763fd31

working basic pairing / bounding
author Paula Stanciu <paula.stanciu@gmail.com>
date Fri, 18 Jul 2008 11:46:56 +0300
parents 22a5075fc7f7
children 9637eab5a3dd
comparison
equal deleted inserted replaced
2839:22a5075fc7f7 2840:50507763fd31
76 } 76 }
77 77
78 void bt_about( void ) 78 void bt_about( void )
79 { 79 {
80 printf("about call\n"); 80 printf("about call\n");
81 run_agent();
82 } 81 }
83 82
84 void bt_cfg(void) 83 void bt_cfg(void)
85 { 84 {
86 printf("bt_cfg\n"); 85 printf("bt_cfg\n");
153 dbus_g_proxy_connect_signal(obj, "BondingCreated", G_CALLBACK(bounding_created), bus, NULL); 152 dbus_g_proxy_connect_signal(obj, "BondingCreated", G_CALLBACK(bounding_created), bus, NULL);
154 153
155 dbus_g_proxy_add_signal(obj, "BondingRemoved", G_TYPE_STRING, G_TYPE_UINT, G_TYPE_INT, G_TYPE_INVALID); 154 dbus_g_proxy_add_signal(obj, "BondingRemoved", G_TYPE_STRING, G_TYPE_UINT, G_TYPE_INT, G_TYPE_INVALID);
156 dbus_g_proxy_connect_signal(obj, "BondingRemoved", G_CALLBACK(bounding_removed), bus, NULL); 155 dbus_g_proxy_connect_signal(obj, "BondingRemoved", G_CALLBACK(bounding_removed), bus, NULL);
157 */ 156 */
157 run_agents();
158 dbus_g_proxy_call(obj,"CreateBonding",NULL,G_TYPE_STRING,"00:0D:3C:B1:1C:7A",G_TYPE_INVALID,G_TYPE_INVALID); 158 dbus_g_proxy_call(obj,"CreateBonding",NULL,G_TYPE_STRING,"00:0D:3C:B1:1C:7A",G_TYPE_INVALID,G_TYPE_INVALID);
159 159
160
161 160
162 } 161 }
163 162
164 163
165 static void remote_device_found(DBusGProxy *object, char *address, const unsigned int class, const int rssi, gpointer user_data) 164 static void remote_device_found(DBusGProxy *object, char *address, const unsigned int class, const int rssi, gpointer user_data)