diff src/bluetooth/bluetooth.c @ 2847:671cdfc2d62d

Basic pairing interface
author Paula Stanciu <paula.stanciu@gmail.com>
date Mon, 28 Jul 2008 21:48:39 +0300
parents 3d7f01edb388
children 43557eb3180f
line wrap: on
line diff
--- a/src/bluetooth/bluetooth.c	Sun Jul 27 22:15:41 2008 +0300
+++ b/src/bluetooth/bluetooth.c	Mon Jul 28 21:48:39 2008 +0300
@@ -87,12 +87,12 @@
     if(discover_finish == 2){
         if (devices_no == 0){
             printf("no devs!\n");
-            show_scan();
+            show_scan(0);
             show_no_devices();
         }else 
             results_ui();
     }
-    else show_scan();    
+    else show_scan(0);    
     printf("end of bt_cfg\n");
 }
 
@@ -123,25 +123,12 @@
 
         discover_devices();
         close_window();
-        show_scan();
+        show_scan(0);
     }
     else 
         printf("Scanning please wait!\n");
 }
 
-void bounding_created(gchar* address)
-{
-    printf("Signal BoundingCreated : %s\n",address);
-
-}
-
-void bounding_removed(gchar* address)
-{
-    printf("Signal: BoundingRemoved: %s\n",address);
-
-}
-
-
 gpointer connect_call_th(void)
 {
 
@@ -154,7 +141,10 @@
 }
 void connect_call(void)
 {
- connect_th = g_thread_create((GThreadFunc)connect_call_th,NULL,TRUE,NULL) ;  
+ connect_th = g_thread_create((GThreadFunc)connect_call_th,NULL,TRUE,NULL) ; 
+ close_call();
+ close_window();
+ show_scan(1);
 }