~ubuntu-branches/ubuntu/wily/bluez/wily

« back to all changes in this revision

Viewing changes to audio/headset.h

ImportĀ upstreamĀ versionĀ 4.81

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 *
3
3
 *  BlueZ - Bluetooth protocol stack for Linux
4
4
 *
5
 
 *  Copyright (C) 2006-2007  Nokia Corporation
6
 
 *  Copyright (C) 2004-2009  Marcel Holtmann <marcel@holtmann.org>
 
5
 *  Copyright (C) 2006-2010  Nokia Corporation
 
6
 *  Copyright (C) 2004-2010  Marcel Holtmann <marcel@holtmann.org>
7
7
 *
8
8
 *
9
9
 *  This program is free software; you can redistribute it and/or modify
29
29
 
30
30
typedef enum {
31
31
        HEADSET_STATE_DISCONNECTED,
32
 
        HEADSET_STATE_CONNECT_IN_PROGRESS,
 
32
        HEADSET_STATE_CONNECTING,
33
33
        HEADSET_STATE_CONNECTED,
34
34
        HEADSET_STATE_PLAY_IN_PROGRESS,
35
35
        HEADSET_STATE_PLAYING
65
65
                        const char *uuidstr);
66
66
 
67
67
unsigned int headset_config_stream(struct audio_device *dev,
 
68
                                        gboolean auto_dc,
68
69
                                        headset_stream_cb_t cb,
69
70
                                        void *user_data);
70
71
unsigned int headset_request_stream(struct audio_device *dev,
89
90
 
90
91
int headset_get_sco_fd(struct audio_device *dev);
91
92
gboolean headset_get_nrec(struct audio_device *dev);
 
93
gboolean headset_get_inband(struct audio_device *dev);
92
94
gboolean headset_get_sco_hci(struct audio_device *dev);
93
95
 
94
96
gboolean headset_is_active(struct audio_device *dev);
98
100
gboolean headset_unlock(struct audio_device *dev, headset_lock_t lock);
99
101
gboolean headset_suspend(struct audio_device *dev, void *data);
100
102
gboolean headset_play(struct audio_device *dev, void *data);
 
103
void headset_shutdown(struct audio_device *dev);