view src/bluetooth/bluetooth.h @ 3193:93cf4d0a0dde

alsa-ng: Prefer "PCM" volume control over "Wave" on systems that have both, for consistency with OSS plugin and maybe other apps (closes AUD-34 and AUD-36).
author John Lindgren <john.lindgren@tds.net>
date Mon, 29 Jun 2009 23:05:56 -0400
parents 3134a0987162
children
line wrap: on
line source

/*
 * Audacious Bluetooth headset suport plugin
 *
 * Copyright (c) 2008 Paula Stanciu paula.stanciu@gmail.com
 * 
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; under version 3 of the License.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses>.
 */

#include <config.h>
#include <glib.h>
#include <sys/types.h>
#include <audlegacy/plugin.h>
#include <audlegacy/ui_plugin_menu.h>
#include <audlegacy/i18n.h>
#include <gtk/gtk.h>
#include <audlegacy/util.h>
#include <dbus/dbus.h>
#include <dbus/dbus-glib.h>
#include <glib-object.h>
#include <stdio.h>
#include <audlegacy/configdb.h>
#include <audlegacy/i18n.h>
#include <audlegacy/util.h>
#include "gui.h"
typedef struct {
    guint class;
    gchar* address;
    gchar* name;
}DeviceData;



void refresh_call(void);
void connect_call(void);
void play_call(void);
GList * audio_devices;
gint discover_finish ;
DBusGConnection * bus;
DBusGProxy * obj;
gchar *bonded_dev;
GMutex *bonded_dev_mutex;