comparison src/bluetooth/agent.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 dc22e3d2e56e
comparison
equal deleted inserted replaced
2846:3d7f01edb388 2847:671cdfc2d62d
22 * 22 *
23 */ 23 */
24 24
25 #include <glib/gprintf.h> 25 #include <glib/gprintf.h>
26 #include "bluetooth.h" 26 #include "bluetooth.h"
27 #include "agent.h"
27 #include "gui.h" 28 #include "gui.h"
28 29
29 #define PASSKEY_AGENT_PATH "/org/bluez/audacious_passkey" 30 #define PASSKEY_AGENT_PATH "/org/bluez/audacious_passkey"
30 #define AUTH_AGENT_PATH "/org/bluez/audacious_auth" 31 #define AUTH_AGENT_PATH "/org/bluez/audacious_auth"
31 32
40 static GtkWidget *ok_button = NULL; 41 static GtkWidget *ok_button = NULL;
41 static GtkWidget *cancel_button = NULL; 42 static GtkWidget *cancel_button = NULL;
42 static char* passkey; 43 static char* passkey;
43 static GList *adapter_list = NULL; 44 static GList *adapter_list = NULL;
44 DBusGProxy *pair_obj = NULL; 45 DBusGProxy *pair_obj = NULL;
45 static gint bonding_finish=0; 46
46 static DBusGConnection *connection; 47 static DBusGConnection *connection;
47 48
48 struct adapter_data { 49 struct adapter_data {
49 char *path; 50 char *path;
50 int attached; 51 int attached;
1071 } 1072 }
1072 1073
1073 1074
1074 void run_agents() 1075 void run_agents()
1075 { 1076 {
1077 bonding_finish =0;
1076 setup_agents(bus); 1078 setup_agents(bus);
1077 //to add the bounding signals 1079 //to add the bounding signals
1078 // register_agents(); 1080 // register_agents();
1079 setup_manager(); 1081 setup_manager();
1080 1082