avdtp.h (6a737fb6dffb35739dfc90427773a58b014bc75d) avdtp.h (48ce193c1bb43973676c530932628af0332bfb28)
1/*
2 * Copyright (C) 2016 BlueKitchen GmbH
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 101 unchanged lines hidden (view full) ---

110 AVDTP_SI_RECONFIGURE, //5
111 AVDTP_SI_OPEN, //6
112 AVDTP_SI_START, //7
113 AVDTP_SI_CLOSE,
114 AVDTP_SI_SUSPEND,
115 AVDTP_SI_ABORT, //10
116 AVDTP_SI_SECURITY_CONTROL,
117 AVDTP_SI_GET_ALL_CAPABILITIES, //12
1/*
2 * Copyright (C) 2016 BlueKitchen GmbH
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 101 unchanged lines hidden (view full) ---

110 AVDTP_SI_RECONFIGURE, //5
111 AVDTP_SI_OPEN, //6
112 AVDTP_SI_START, //7
113 AVDTP_SI_CLOSE,
114 AVDTP_SI_SUSPEND,
115 AVDTP_SI_ABORT, //10
116 AVDTP_SI_SECURITY_CONTROL,
117 AVDTP_SI_GET_ALL_CAPABILITIES, //12
118 AVDTP_SI_DELAYREPORT
118 AVDTP_SI_DELAYREPORT,
119#ifdef ENABLE_AVDTP_ACCEPTOR_EXPLICIT_START_STREAM_CONFIRMATION
120 AVDTP_SI_ACCEPT_START
121#endif
119} avdtp_signal_identifier_t;
120
121typedef enum {
122 AVDTP_SINGLE_PACKET = 0,
123 AVDTP_START_PACKET ,
124 AVDTP_CONTINUE_PACKET ,
125 AVDTP_END_PACKET
126} avdtp_packet_type_t;

--- 249 unchanged lines hidden (view full) ---

376 AVDTP_ACCEPTOR_STREAM_CONFIG_IDLE = 0,
377 AVDTP_ACCEPTOR_W2_ANSWER_GET_CAPABILITIES,
378 AVDTP_ACCEPTOR_W2_ANSWER_GET_ALL_CAPABILITIES,
379 AVDTP_ACCEPTOR_W2_ANSWER_DELAY_REPORT,
380 AVDTP_ACCEPTOR_W2_ANSWER_SET_CONFIGURATION,
381 AVDTP_ACCEPTOR_W2_ANSWER_RECONFIGURE,
382 AVDTP_ACCEPTOR_W2_ANSWER_GET_CONFIGURATION,
383 AVDTP_ACCEPTOR_W2_ANSWER_OPEN_STREAM,
122} avdtp_signal_identifier_t;
123
124typedef enum {
125 AVDTP_SINGLE_PACKET = 0,
126 AVDTP_START_PACKET ,
127 AVDTP_CONTINUE_PACKET ,
128 AVDTP_END_PACKET
129} avdtp_packet_type_t;

--- 249 unchanged lines hidden (view full) ---

379 AVDTP_ACCEPTOR_STREAM_CONFIG_IDLE = 0,
380 AVDTP_ACCEPTOR_W2_ANSWER_GET_CAPABILITIES,
381 AVDTP_ACCEPTOR_W2_ANSWER_GET_ALL_CAPABILITIES,
382 AVDTP_ACCEPTOR_W2_ANSWER_DELAY_REPORT,
383 AVDTP_ACCEPTOR_W2_ANSWER_SET_CONFIGURATION,
384 AVDTP_ACCEPTOR_W2_ANSWER_RECONFIGURE,
385 AVDTP_ACCEPTOR_W2_ANSWER_GET_CONFIGURATION,
386 AVDTP_ACCEPTOR_W2_ANSWER_OPEN_STREAM,
384 AVDTP_ACCEPTOR_W2_ANSWER_START_STREAM,
387#ifdef ENABLE_AVDTP_ACCEPTOR_EXPLICIT_START_STREAM_CONFIRMATION
388 AVDTP_ACCEPTOR_W4_USER_CONFIRM_START_STREAM,
389 AVDTP_ACCEPTOR_W2_REJECT_START_STREAM,
390#endif
391 AVDTP_ACCEPTOR_W2_ACCEPT_START_STREAM,
385 AVDTP_ACCEPTOR_W2_ANSWER_CLOSE_STREAM,
386 AVDTP_ACCEPTOR_W2_ANSWER_ABORT_STREAM,
387 AVDTP_ACCEPTOR_W2_SUSPEND_STREAM_WITH_SEID,
388 AVDTP_ACCEPTOR_W2_ANSWER_SUSPEND_STREAM,
389 AVDTP_ACCEPTOR_W2_REJECT_WITH_ERROR_CODE,
390 AVDTP_ACCEPTOR_W2_REJECT_CATEGORY_WITH_ERROR_CODE,
391 AVDTP_ACCEPTOR_W2_REJECT_UNKNOWN_CMD,
392 AVDTP_ACCEPTOR_STREAMING

--- 273 unchanged lines hidden (view full) ---

666uint8_t avdtp_choose_sbc_min_bitpool_value(avdtp_stream_endpoint_t * stream_endpoint, uint8_t remote_min_bitpool_value);
667
668uint8_t avdtp_stream_endpoint_seid(avdtp_stream_endpoint_t * stream_endpoint);
669
670uint8_t is_avdtp_remote_seid_registered(avdtp_stream_endpoint_t * stream_endpoint);
671
672uint16_t avdtp_get_next_transaction_label(void);
673
392 AVDTP_ACCEPTOR_W2_ANSWER_CLOSE_STREAM,
393 AVDTP_ACCEPTOR_W2_ANSWER_ABORT_STREAM,
394 AVDTP_ACCEPTOR_W2_SUSPEND_STREAM_WITH_SEID,
395 AVDTP_ACCEPTOR_W2_ANSWER_SUSPEND_STREAM,
396 AVDTP_ACCEPTOR_W2_REJECT_WITH_ERROR_CODE,
397 AVDTP_ACCEPTOR_W2_REJECT_CATEGORY_WITH_ERROR_CODE,
398 AVDTP_ACCEPTOR_W2_REJECT_UNKNOWN_CMD,
399 AVDTP_ACCEPTOR_STREAMING

--- 273 unchanged lines hidden (view full) ---

673uint8_t avdtp_choose_sbc_min_bitpool_value(avdtp_stream_endpoint_t * stream_endpoint, uint8_t remote_min_bitpool_value);
674
675uint8_t avdtp_stream_endpoint_seid(avdtp_stream_endpoint_t * stream_endpoint);
676
677uint8_t is_avdtp_remote_seid_registered(avdtp_stream_endpoint_t * stream_endpoint);
678
679uint16_t avdtp_get_next_transaction_label(void);
680
681#ifdef ENABLE_AVDTP_ACCEPTOR_EXPLICIT_START_STREAM_CONFIRMATION
682uint8_t avdtp_start_stream_accept(uint16_t avdtp_cid, uint8_t local_seid);
683uint8_t avdtp_start_stream_reject(uint16_t avdtp_cid, uint8_t local_seid);
684#endif
685
674#if defined __cplusplus
675}
676#endif
677
678#endif // AVDTP_H
686#if defined __cplusplus
687}
688#endif
689
690#endif // AVDTP_H