From f97cfcbbaa7400097da0ac10f2a727f44e1c69db Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Sun, 2 Jul 2017 22:33:50 +0200 Subject: [PATCH] avdtp: mark avdtp_header(..) as static inline and move to header --- src/classic/avdtp_util.c | 4 ---- src/classic/avdtp_util.h | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/classic/avdtp_util.c b/src/classic/avdtp_util.c index b517b7319..84d33239b 100644 --- a/src/classic/avdtp_util.c +++ b/src/classic/avdtp_util.c @@ -47,10 +47,6 @@ #include "avdtp.h" #include "avdtp_util.h" -inline uint8_t avdtp_header(uint8_t tr_label, avdtp_packet_type_t packet_type, avdtp_message_type_t msg_type){ - return (tr_label<<4) | ((uint8_t)packet_type<<2) | (uint8_t)msg_type; -} - void avdtp_initialize_stream_endpoint(avdtp_stream_endpoint_t * stream_endpoint){ stream_endpoint->connection = NULL; stream_endpoint->state = AVDTP_STREAM_ENDPOINT_IDLE; diff --git a/src/classic/avdtp_util.h b/src/classic/avdtp_util.h index 58d22ba40..82d29c198 100644 --- a/src/classic/avdtp_util.h +++ b/src/classic/avdtp_util.h @@ -61,6 +61,10 @@ avdtp_stream_endpoint_t * avdtp_stream_endpoint_with_seid(uint8_t seid, avdtp_co avdtp_stream_endpoint_t * avdtp_stream_endpoint_associated_with_acp_seid(uint16_t acp_seid, avdtp_context_t * context); avdtp_stream_endpoint_t * avdtp_stream_endpoint_for_seid(uint16_t seid, avdtp_context_t * context); +static inline uint8_t avdtp_header(uint8_t tr_label, avdtp_packet_type_t packet_type, avdtp_message_type_t msg_type){ + return (tr_label<<4) | ((uint8_t)packet_type<<2) | (uint8_t)msg_type; +} + uint8_t avdtp_header(uint8_t tr_label, avdtp_packet_type_t packet_type, avdtp_message_type_t msg_type); int avdtp_read_signaling_header(avdtp_signaling_packet_t * signaling_header, uint8_t * packet, uint16_t size);