Mercurial > audlegacy-plugins
annotate src/bluetooth/bluetooth.h @ 2867:dc22e3d2e56e
fixed bonding an allready bonded device bug
| author | Paula Stanciu <paula.stanciu@gmail.com> |
|---|---|
| date | Thu, 07 Aug 2008 12:11:09 +0300 |
| parents | 43557eb3180f |
| children | 15754379dbd5 |
| rev | line source |
|---|---|
| 2839 | 1 /* |
| 2 * Audacious Bluetooth headset suport plugin | |
| 3 * | |
| 4 * Copyright (c) 2008 Paula Stanciu paula.stanciu@gmail.com | |
| 5 * | |
| 6 * This program is free software; you can redistribute it and/or modify | |
| 7 * it under the terms of the GNU General Public License as published by | |
| 8 * the Free Software Foundation; under version 3 of the License. | |
| 9 * | |
| 10 * This program is distributed in the hope that it will be useful, | |
| 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 13 * GNU General Public License for more details. | |
| 14 * | |
| 15 * You should have received a copy of the GNU General Public License | |
| 16 * along with this program. If not, see <http://www.gnu.org/licenses>. | |
| 17 */ | |
| 18 | |
| 2644 | 19 #include <config.h> |
| 20 #include <glib.h> | |
| 21 #include <sys/types.h> | |
| 22 #include <audacious/plugin.h> | |
| 23 #include <audacious/ui_plugin_menu.h> | |
| 24 #include <audacious/i18n.h> | |
| 25 #include <gtk/gtk.h> | |
| 26 #include <audacious/util.h> | |
|
2838
22a2ffe86750
added passkey agent and basic pairing functionality
Paula Stanciu <paula.stanciu@gmail.com>
parents:
2728
diff
changeset
|
27 #include <dbus/dbus.h> |
|
22a2ffe86750
added passkey agent and basic pairing functionality
Paula Stanciu <paula.stanciu@gmail.com>
parents:
2728
diff
changeset
|
28 #include <dbus/dbus-glib.h> |
|
22a2ffe86750
added passkey agent and basic pairing functionality
Paula Stanciu <paula.stanciu@gmail.com>
parents:
2728
diff
changeset
|
29 #include <glib-object.h> |
|
22a2ffe86750
added passkey agent and basic pairing functionality
Paula Stanciu <paula.stanciu@gmail.com>
parents:
2728
diff
changeset
|
30 #include <stdio.h> |
|
2867
dc22e3d2e56e
fixed bonding an allready bonded device bug
Paula Stanciu <paula.stanciu@gmail.com>
parents:
2854
diff
changeset
|
31 #include <audacious/configdb.h> |
|
dc22e3d2e56e
fixed bonding an allready bonded device bug
Paula Stanciu <paula.stanciu@gmail.com>
parents:
2854
diff
changeset
|
32 #include <audacious/i18n.h> |
|
dc22e3d2e56e
fixed bonding an allready bonded device bug
Paula Stanciu <paula.stanciu@gmail.com>
parents:
2854
diff
changeset
|
33 #include <audacious/util.h> |
| 2644 | 34 #include "gui.h" |
|
2646
7fbff3287a56
added device discovery in the plugin's prefs window
Paula Stanciu <paula.stanciu@gmail.com>
parents:
2644
diff
changeset
|
35 typedef struct { |
|
7fbff3287a56
added device discovery in the plugin's prefs window
Paula Stanciu <paula.stanciu@gmail.com>
parents:
2644
diff
changeset
|
36 guint class; |
|
7fbff3287a56
added device discovery in the plugin's prefs window
Paula Stanciu <paula.stanciu@gmail.com>
parents:
2644
diff
changeset
|
37 gchar* address; |
|
7fbff3287a56
added device discovery in the plugin's prefs window
Paula Stanciu <paula.stanciu@gmail.com>
parents:
2644
diff
changeset
|
38 gchar* name; |
|
7fbff3287a56
added device discovery in the plugin's prefs window
Paula Stanciu <paula.stanciu@gmail.com>
parents:
2644
diff
changeset
|
39 }DeviceData; |
|
7fbff3287a56
added device discovery in the plugin's prefs window
Paula Stanciu <paula.stanciu@gmail.com>
parents:
2644
diff
changeset
|
40 |
|
7fbff3287a56
added device discovery in the plugin's prefs window
Paula Stanciu <paula.stanciu@gmail.com>
parents:
2644
diff
changeset
|
41 |
|
7fbff3287a56
added device discovery in the plugin's prefs window
Paula Stanciu <paula.stanciu@gmail.com>
parents:
2644
diff
changeset
|
42 |
| 2644 | 43 void refresh_call(void); |
| 44 void connect_call(void); | |
| 2854 | 45 void play_call(void); |
|
2646
7fbff3287a56
added device discovery in the plugin's prefs window
Paula Stanciu <paula.stanciu@gmail.com>
parents:
2644
diff
changeset
|
46 GList * audio_devices; |
| 2728 | 47 gint discover_finish ; |
|
2838
22a2ffe86750
added passkey agent and basic pairing functionality
Paula Stanciu <paula.stanciu@gmail.com>
parents:
2728
diff
changeset
|
48 DBusGConnection * bus; |
|
22a2ffe86750
added passkey agent and basic pairing functionality
Paula Stanciu <paula.stanciu@gmail.com>
parents:
2728
diff
changeset
|
49 DBusGProxy * obj; |
|
2646
7fbff3287a56
added device discovery in the plugin's prefs window
Paula Stanciu <paula.stanciu@gmail.com>
parents:
2644
diff
changeset
|
50 |
| 2728 | 51 |
