NimBLE: Fix compilation warnings and errors

1. Remove networking macros from endian.h. They are not used in NimBLE (only used in socket transport, which our port does not use)

2. nvs_handle => nvs_handle_t

3. rom/queue.h => sys/queue.h
This commit is contained in:
Hrishikesh Dhayagude
2024-02-14 12:33:28 +05:30
committed by Abhinav Kudnar
parent 630443511e
commit 895623861d
3 changed files with 8 additions and 5 deletions
+3
View File
@@ -137,6 +137,8 @@ extern "C" {
#define htonll ntohll
#endif
/* These are not used in NimBLE and ESP-IDF uses them from LwIP */
#if 0
#ifndef ntohl
#define ntohl(x) os_bswap_32(x)
#endif
@@ -152,6 +154,7 @@ extern "C" {
#ifndef ntohs
#define ntohs htons
#endif
#endif
#ifndef htobe16
#define htobe16(x) os_bswap_16(x)
+2 -2
View File
@@ -34,7 +34,7 @@
#define _QUEUE_H_
/* The common BSD linked list queue macros are already defined here for ESP-IDF */
#include <rom/queue.h>
#include <sys/queue.h>
#ifdef __cplusplus
extern "C" {
@@ -43,7 +43,7 @@ extern "C" {
/*
* This file defines circular queues. The other types of data structures:
* singly-linked lists, singly-linked tail queues, lists and tail queues
* are used from rom/queue.h
* are used from sys/queue.h
*
* A singly-linked list is headed by a single forward pointer. The elements
* are singly linked for minimum space and pointer manipulation overhead at