You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ja...@apache.org on 2022/03/08 15:37:44 UTC
[mynewt-nimble] 06/06: host: include own header(s)
This is an automated email from the ASF dual-hosted git repository.
janc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
commit a9e4b68d45a22f729f4a911e83d7ee5336ff78d8
Author: Bas van den Berg <b....@gmail.com>
AuthorDate: Tue Mar 8 11:13:54 2022 +0100
host: include own header(s)
---
nimble/host/include/host/ble_hs_stop.h | 2 +-
nimble/host/src/ble_att.c | 1 +
nimble/host/src/ble_att_svr.c | 1 +
nimble/host/src/ble_gap.c | 2 ++
nimble/host/src/ble_gattc.c | 1 +
nimble/host/src/ble_gatts.c | 1 +
nimble/host/src/ble_gatts_lcl.c | 1 +
nimble/host/src/ble_hs.c | 1 +
nimble/host/src/ble_hs_log.c | 1 +
nimble/host/src/ble_hs_mbuf.c | 1 +
nimble/host/src/ble_hs_stop.c | 3 ++-
nimble/host/src/ble_ibeacon.c | 1 +
nimble/host/src/ble_l2cap.c | 1 +
13 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/nimble/host/include/host/ble_hs_stop.h b/nimble/host/include/host/ble_hs_stop.h
index d16c9c2..e4feb62 100644
--- a/nimble/host/include/host/ble_hs_stop.h
+++ b/nimble/host/include/host/ble_hs_stop.h
@@ -64,7 +64,7 @@ struct ble_hs_stop_listener {
* BLE_HS_EALREADY: Host already stopped; the
* provided callback does *not* get called.
*/
-int ble_hs_stop(struct ble_hs_stop_listener *listener,
+int ble_hs_stop(struct ble_hs_stop_listener *listener,
ble_hs_stop_fn *fn, void *arg);
#endif
diff --git a/nimble/host/src/ble_att.c b/nimble/host/src/ble_att.c
index 8aab7f9..5f119ac 100644
--- a/nimble/host/src/ble_att.c
+++ b/nimble/host/src/ble_att.c
@@ -20,6 +20,7 @@
#include <stddef.h>
#include <errno.h>
#include "ble_hs_priv.h"
+#include "host/ble_att.h"
#if NIMBLE_BLE_CONNECT
static uint16_t ble_att_preferred_mtu_val;
diff --git a/nimble/host/src/ble_att_svr.c b/nimble/host/src/ble_att_svr.c
index 468768a..73e258d 100644
--- a/nimble/host/src/ble_att_svr.c
+++ b/nimble/host/src/ble_att_svr.c
@@ -21,6 +21,7 @@
#include <string.h>
#include <errno.h>
#include "os/os.h"
+#include "host/ble_att.h"
#include "nimble/ble.h"
#include "host/ble_uuid.h"
#include "ble_hs_priv.h"
diff --git a/nimble/host/src/ble_gap.c b/nimble/host/src/ble_gap.c
index 3d8f303..621a88a 100644
--- a/nimble/host/src/ble_gap.c
+++ b/nimble/host/src/ble_gap.c
@@ -21,9 +21,11 @@
#include <string.h>
#include <errno.h>
#include "nimble/nimble_opt.h"
+#include "host/ble_gap.h"
#include "host/ble_hs_adv.h"
#include "host/ble_hs_hci.h"
#include "ble_hs_priv.h"
+#include "ble_gap_priv.h"
#if MYNEWT
#include "bsp/bsp.h"
diff --git a/nimble/host/src/ble_gattc.c b/nimble/host/src/ble_gattc.c
index b43a0af..b0535fb 100644
--- a/nimble/host/src/ble_gattc.c
+++ b/nimble/host/src/ble_gattc.c
@@ -56,6 +56,7 @@
#include <string.h>
#include "os/os_mempool.h"
#include "nimble/ble.h"
+#include "host/ble_gatt.h"
#include "host/ble_uuid.h"
#include "host/ble_gap.h"
#include "ble_hs_priv.h"
diff --git a/nimble/host/src/ble_gatts.c b/nimble/host/src/ble_gatts.c
index 83402e7..93809ca 100644
--- a/nimble/host/src/ble_gatts.c
+++ b/nimble/host/src/ble_gatts.c
@@ -21,6 +21,7 @@
#include <stdlib.h>
#include <string.h>
#include "nimble/ble.h"
+#include "host/ble_gatt.h"
#include "host/ble_uuid.h"
#include "host/ble_store.h"
#include "ble_hs_priv.h"
diff --git a/nimble/host/src/ble_gatts_lcl.c b/nimble/host/src/ble_gatts_lcl.c
index 938d736..f824e90 100644
--- a/nimble/host/src/ble_gatts_lcl.c
+++ b/nimble/host/src/ble_gatts_lcl.c
@@ -19,6 +19,7 @@
#include <stddef.h>
#include <string.h>
+#include "host/ble_gatt.h"
#include "host/ble_uuid.h"
#include "console/console.h"
#include "nimble/ble.h"
diff --git a/nimble/host/src/ble_hs.c b/nimble/host/src/ble_hs.c
index 9f39c8e..5e5c644 100644
--- a/nimble/host/src/ble_hs.c
+++ b/nimble/host/src/ble_hs.c
@@ -24,6 +24,7 @@
#include "syscfg/syscfg.h"
#include "stats/stats.h"
#include "nimble/ble_hci_trans.h"
+#include "host/ble_hs.h"
#include "ble_hs_priv.h"
#include "ble_monitor_priv.h"
#include "nimble/nimble_npl.h"
diff --git a/nimble/host/src/ble_hs_log.c b/nimble/host/src/ble_hs_log.c
index 7ec6946..0670dca 100644
--- a/nimble/host/src/ble_hs_log.c
+++ b/nimble/host/src/ble_hs_log.c
@@ -19,6 +19,7 @@
#include "os/os.h"
#include "host/ble_hs.h"
+#include "host/ble_hs_log.h"
struct log ble_hs_log;
diff --git a/nimble/host/src/ble_hs_mbuf.c b/nimble/host/src/ble_hs_mbuf.c
index 6e920f9..f4d6a79 100644
--- a/nimble/host/src/ble_hs_mbuf.c
+++ b/nimble/host/src/ble_hs_mbuf.c
@@ -18,6 +18,7 @@
*/
#include "host/ble_hs.h"
+#include "host/ble_hs_mbuf.h"
#include "ble_hs_priv.h"
/**
diff --git a/nimble/host/src/ble_hs_stop.c b/nimble/host/src/ble_hs_stop.c
index b90d3ec..e48fff3 100644
--- a/nimble/host/src/ble_hs_stop.c
+++ b/nimble/host/src/ble_hs_stop.c
@@ -21,6 +21,7 @@
#include "sysinit/sysinit.h"
#include "syscfg/syscfg.h"
#include "ble_hs_priv.h"
+#include "host/ble_hs_stop.h"
#include "nimble/nimble_npl.h"
#ifndef MYNEWT
#include "nimble/nimble_port.h"
@@ -217,7 +218,7 @@ ble_hs_stop_begin(struct ble_hs_stop_listener *listener,
}
int
-ble_hs_stop(struct ble_hs_stop_listener *listener,
+ble_hs_stop(struct ble_hs_stop_listener *listener,
ble_hs_stop_fn *fn, void *arg)
{
int rc;
diff --git a/nimble/host/src/ble_ibeacon.c b/nimble/host/src/ble_ibeacon.c
index 0c6ef99..bbd353c 100644
--- a/nimble/host/src/ble_ibeacon.c
+++ b/nimble/host/src/ble_ibeacon.c
@@ -19,6 +19,7 @@
#include <string.h>
#include "host/ble_hs_adv.h"
+#include "host/ble_ibeacon.h"
#include "ble_hs_priv.h"
#define BLE_IBEACON_MFG_DATA_SIZE 25
diff --git a/nimble/host/src/ble_l2cap.c b/nimble/host/src/ble_l2cap.c
index bfbdadf..fb1a617 100644
--- a/nimble/host/src/ble_l2cap.c
+++ b/nimble/host/src/ble_l2cap.c
@@ -21,6 +21,7 @@
#include <errno.h>
#include "syscfg/syscfg.h"
#include "os/os.h"
+#include "host/ble_l2cap.h"
#include "nimble/ble.h"
#include "nimble/hci_common.h"
#include "ble_hs_priv.h"