diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2007-10-09 13:36:33 +0000 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2007-10-09 13:36:33 +0000 |
commit | d328981381cec52309a57b991bad0b832b4b9373 (patch) | |
tree | e20e62df02339001bede8c3a2f2c0876b5f9b057 /audio/avdtp.c | |
parent | af44f3cafbe4a2a2f2c4bb5879d803f766cf775a (diff) |
Handle cross-connect case for AVDTP
Diffstat (limited to 'audio/avdtp.c')
-rw-r--r-- | audio/avdtp.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/audio/avdtp.c b/audio/avdtp.c index ee1bd06d..0fb64bb0 100644 --- a/audio/avdtp.c +++ b/audio/avdtp.c @@ -499,6 +499,23 @@ void avdtp_error_init(struct avdtp_error *err, uint8_t type, int id) } } +avdtp_error_type_t avdtp_error_type(struct avdtp_error *err) +{ + return err->type; +} + +int avdtp_error_error_code(struct avdtp_error *err) +{ + assert(err->type == AVDTP_ERROR_ERROR_CODE); + return err->err.error_code; +} + +int avdtp_error_posix_errno(struct avdtp_error *err) +{ + assert(err->type == AVDTP_ERROR_ERRNO); + return err->err.posix_errno; +} + static struct avdtp_stream *find_stream_by_rseid(struct avdtp *session, uint8_t rseid) { |