summaryrefslogtreecommitdiff
path: root/src/hsd-headset.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/hsd-headset.h')
-rw-r--r--src/hsd-headset.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/hsd-headset.h b/src/hsd-headset.h
index c739a42..b30c01b 100644
--- a/src/hsd-headset.h
+++ b/src/hsd-headset.h
@@ -17,6 +17,12 @@
* Boston, MA 02110-1301, USA.
*/
+typedef enum {
+ HSD_HEADSET_STATE_IDLE,
+ HSD_HEADSET_STATE_PENDING,
+ HSD_HEADSET_STATE_ACTIVE,
+} HsdHeadsetState;
+
struct _HsdHeadset {
guint id;
@@ -27,7 +33,10 @@ struct _HsdHeadset {
GIOChannel *rfcomm;
- GHashTable *transports;
+ HsdHeadsetState state;
+ gchar *owner;
+ gint fd;
+ GDBusMethodInvocation *invocation;
};
HsdHeadset * hsd_headset_new (const gchar *device, GIOChannel *rfcomm, GError **error);