summaryrefslogtreecommitdiffstats
path: root/audio/avdtp.h
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-08-24 12:15:20 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-08-24 12:15:20 +0000
commit666938b54d631956826343ed278e2af4b982fc29 (patch)
tree90828ce9054d431a304bda457ac392cd3798bd9e /audio/avdtp.h
parentc3cd59ae39ebb53e27ddd99ee48f1875bd480c1d (diff)
Support up to two simultaneous streams
Diffstat (limited to 'audio/avdtp.h')
-rw-r--r--audio/avdtp.h50
1 files changed, 29 insertions, 21 deletions
diff --git a/audio/avdtp.h b/audio/avdtp.h
index 49907cff..d759be48 100644
--- a/audio/avdtp.h
+++ b/audio/avdtp.h
@@ -97,28 +97,32 @@ struct avdtp_sep_cfm {
void (*set_configuration) (struct avdtp *session,
struct avdtp_local_sep *lsep,
struct avdtp_stream *stream,
- struct avdtp_error *err);
+ struct avdtp_error *err,
+ void *user_data);
void (*get_configuration) (struct avdtp *session,
struct avdtp_local_sep *lsep,
struct avdtp_stream *stream,
- struct avdtp_error *err);
+ struct avdtp_error *err,
+ void *user_data);
void (*open) (struct avdtp *session, struct avdtp_local_sep *lsep,
- struct avdtp_stream *stream, struct avdtp_error *err);
+ struct avdtp_stream *stream, struct avdtp_error *err,
+ void *user_data);
void (*start) (struct avdtp *session, struct avdtp_local_sep *lsep,
- struct avdtp_stream *stream, struct avdtp_error *err);
+ struct avdtp_stream *stream, struct avdtp_error *err,
+ void *user_data);
void (*suspend) (struct avdtp *session, struct avdtp_local_sep *lsep,
struct avdtp_stream *stream,
- struct avdtp_error *err);
+ struct avdtp_error *err, void *user_data);
void (*close) (struct avdtp *session, struct avdtp_local_sep *lsep,
struct avdtp_stream *stream,
- struct avdtp_error *err);
+ struct avdtp_error *err, void *user_data);
void (*abort) (struct avdtp *session, struct avdtp_local_sep *lsep,
struct avdtp_stream *stream,
- struct avdtp_error *err);
+ struct avdtp_error *err, void *user_data);
void (*reconfigure) (struct avdtp *session,
struct avdtp_local_sep *lsep,
struct avdtp_stream *stream,
- struct avdtp_error *err);
+ struct avdtp_error *err, void *user_data);
};
/* Callbacks for indicating when we received a new command. The return value
@@ -126,32 +130,35 @@ struct avdtp_sep_cfm {
struct avdtp_sep_ind {
gboolean (*get_capability) (struct avdtp *session,
struct avdtp_local_sep *sep,
- GSList **caps, uint8_t *err);
+ GSList **caps, uint8_t *err,
+ void *user_data);
gboolean (*set_configuration) (struct avdtp *session,
struct avdtp_local_sep *lsep,
struct avdtp_stream *stream,
GSList *caps, uint8_t *err,
- uint8_t *category);
+ uint8_t *category, void *user_data);
gboolean (*get_configuration) (struct avdtp *session,
struct avdtp_local_sep *lsep,
- uint8_t *err);
+ uint8_t *err, void *user_data);
gboolean (*open) (struct avdtp *session, struct avdtp_local_sep *lsep,
- struct avdtp_stream *stream, uint8_t *err);
+ struct avdtp_stream *stream, uint8_t *err,
+ void *user_data);
gboolean (*start) (struct avdtp *session, struct avdtp_local_sep *lsep,
- struct avdtp_stream *stream,
- uint8_t *err);
+ struct avdtp_stream *stream, uint8_t *err,
+ void *user_data);
gboolean (*suspend) (struct avdtp *session,
struct avdtp_local_sep *sep,
- struct avdtp_stream *stream,
- uint8_t *err);
+ struct avdtp_stream *stream, uint8_t *err,
+ void *user_data);
gboolean (*close) (struct avdtp *session, struct avdtp_local_sep *sep,
- struct avdtp_stream *stream,
- uint8_t *err);
+ struct avdtp_stream *stream, uint8_t *err,
+ void *user_data);
gboolean (*abort) (struct avdtp *session, struct avdtp_local_sep *sep,
- struct avdtp_stream *stream, uint8_t *err);
+ struct avdtp_stream *stream, uint8_t *err,
+ void *user_data);
gboolean (*reconfigure) (struct avdtp *session,
struct avdtp_local_sep *lsep,
- uint8_t *err);
+ uint8_t *err, void *user_data);
};
typedef void (*avdtp_discover_cb_t) (struct avdtp *session, GSList *seps,
@@ -200,7 +207,8 @@ int avdtp_abort(struct avdtp *session, struct avdtp_stream *stream);
struct avdtp_local_sep *avdtp_register_sep(uint8_t type, uint8_t media_type,
struct avdtp_sep_ind *ind,
- struct avdtp_sep_cfm *cfm);
+ struct avdtp_sep_cfm *cfm,
+ void *user_data);
/* Find a matching pair of local and remote SEP ID's */
int avdtp_get_seps(struct avdtp *session, uint8_t type, uint8_t media,