summaryrefslogtreecommitdiffstats
path: root/audio/manager.h
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2008-10-08 14:09:25 +0200
committerJohan Hedberg <johan.hedberg@nokia.com>2008-10-08 14:09:25 +0200
commit586fd91a6c1a18e7e324fe39c20786be357c3576 (patch)
tree07060acebc43eeaaa448e0170f05133ed951f370 /audio/manager.h
parent2db2d39af8cba3883756d21a0634722f37bdfef0 (diff)
Add separate function for creating new audio device objects
This is needed in preparation of supporting remotely initated audio device pairing and connections (when we haven't done SDP to the remote device yet).
Diffstat (limited to 'audio/manager.h')
-rw-r--r--audio/manager.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/audio/manager.h b/audio/manager.h
index 708b52be..7feaf83c 100644
--- a/audio/manager.h
+++ b/audio/manager.h
@@ -30,8 +30,6 @@ struct enabled_interfaces {
gboolean control;
};
-typedef void (*create_dev_cb_t) (struct audio_device *dev, void *user_data);
-
int audio_manager_init(DBusConnection *conn, GKeyFile *config);
void audio_manager_exit(void);
@@ -40,5 +38,5 @@ gboolean server_is_enabled(bdaddr_t *src, uint16_t svc);
struct audio_device *manager_find_device(const bdaddr_t *bda, const char *interface,
gboolean connected);
-gboolean manager_create_device(bdaddr_t *bda, create_dev_cb_t cb,
- void *user_data);
+struct audio_device *manager_get_device(bdaddr_t *sba, bdaddr_t *dba,
+ const char *path, gboolean *created);