KKopyscinski commented on code in PR #1675:
URL: https://github.com/apache/mynewt-nimble/pull/1675#discussion_r1465961979


##########
nimble/host/include/host/ble_audio_codec.h:
##########
@@ -0,0 +1,122 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#ifndef H_BLE_AUDIO_CODEC_
+#define H_BLE_AUDIO_CODEC_
+
+#include "stdint.h"
+#include "ble_audio_common.h"
+
+#define BLE_AUDIO_CODEC_FLAG_SOURCE                             0x01
+#define BLE_AUDIO_CODEC_FLAG_SINK                               0x02
+
+/** Type definition for Codec Specific Capabilities parser function. */
+typedef int ble_audio_codec_parser(uint8_t codec_spec_caps_len,
+                                   uint8_t *codec_spec_caps,
+                                   void *cb_arg);
+
+
+/** Codec list entry */
+struct ble_audio_codec_record {
+    /* Pointer to next codec list entry */
+    STAILQ_ENTRY(ble_audio_codec_record) next;
+
+    /* Codec ID */
+    struct ble_audio_codec_id codec_id;
+
+    /* Length of Codec Specific Capabilities */
+    uint8_t codec_spec_caps_len;
+
+    /* Codec Specific Capabilities data */
+    uint8_t *codec_spec_caps;
+
+    /* Metadata length */
+    uint8_t metadata_len;
+
+    /* Metadata */
+    uint8_t *metadata;
+
+    /* Codec entry flags. It is any combination of following flags:
+     *  - BLE_AUDIO_CODEC_FLAG_SOURCE
+     *  - BLE_AUDIO_CODEC_FLAG_SINK
+     */
+    uint8_t flags;
+
+    /* Function used to parse Codec Specific Capabilities */
+    ble_audio_codec_parser *parser;

Review Comment:
   Initially I was thinking app, but it can manage this on its own. I think 
you're right, this is not needed here.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to