diff src/bluetooth/bluetooth.c @ 2648:6cc858a726b8

added the marshal files
author Paula Stanciu <paula.stanciu@gmail.com>
date Sun, 25 May 2008 21:44:27 +0300
parents 7fbff3287a56
children d891ba4be5a5
line wrap: on
line diff
--- a/src/bluetooth/bluetooth.c	Sun May 25 21:29:48 2008 +0300
+++ b/src/bluetooth/bluetooth.c	Sun May 25 21:44:27 2008 +0300
@@ -61,7 +61,10 @@
 
 
 void refresh_call(void){
-    discover_devices()
+   if(discover_finish == 0)
+       discover_devices();
+       else 
+           printf("Scanning please wait!\n");
     printf("refresh function called\n");
 }
 
@@ -103,6 +106,7 @@
 static void discovery_started(DBusGProxy *object, gpointer user_data)
 {
     g_print("Signal: DiscoveryStarted()\n");
+    discover_finish = 1;
 }
 
 static void remote_name_updated(DBusGProxy *object, const char *address,  char *name, gpointer user_data)
@@ -143,6 +147,7 @@
 {
     g_print("Signal: DiscoveryCompleted()\n");
     print_results();
+    discover_finish =0;
 
 
 }