You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by an...@apache.org on 2018/11/15 12:45:36 UTC

[mynewt-nimble] branch master updated (ba6ce7d -> 6fb0f8d)

This is an automated email from the ASF dual-hosted git repository.

andk pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git.


    from ba6ce7d  Fixed build error of Mesh stack for 64-bit machine
     new ab35afa  host/util/addr.c: fix typo in doc
     new 6fb0f8d  host/util: move function doc to header file

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 nimble/host/util/include/host/util/util.h | 13 +++++++++++++
 nimble/host/util/src/addr.c               | 15 +--------------
 2 files changed, 14 insertions(+), 14 deletions(-)


[mynewt-nimble] 01/02: host/util/addr.c: fix typo in doc

Posted by an...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

andk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git

commit ab35afaae26d5fd4d668049e8751931adba8d3f5
Author: Hauke Petersen <ha...@fu-berlin.de>
AuthorDate: Thu Nov 15 10:31:44 2018 +0100

    host/util/addr.c: fix typo in doc
---
 nimble/host/util/src/addr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nimble/host/util/src/addr.c b/nimble/host/util/src/addr.c
index e0b7880..ba66686 100644
--- a/nimble/host/util/src/addr.c
+++ b/nimble/host/util/src/addr.c
@@ -99,7 +99,7 @@ ble_hs_util_ensure_addr(int prefer_random)
         /* Try to load a public address. */
         rc = ble_hs_id_copy_addr(BLE_ADDR_PUBLIC, NULL, NULL);
         if (rc == BLE_HS_ENOADDR) {
-            /* No random address; try to load a random address. */
+            /* No public address; try to load a random address. */
             rc = ble_hs_util_ensure_rand_addr();
         }
     }


[mynewt-nimble] 02/02: host/util: move function doc to header file

Posted by an...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

andk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git

commit 6fb0f8d3ea6f520b970c4cb504172a9e4508383a
Author: Hauke Petersen <ha...@fu-berlin.de>
AuthorDate: Thu Nov 15 10:33:36 2018 +0100

    host/util: move function doc to header file
---
 nimble/host/util/include/host/util/util.h | 13 +++++++++++++
 nimble/host/util/src/addr.c               | 13 -------------
 2 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/nimble/host/util/include/host/util/util.h b/nimble/host/util/include/host/util/util.h
index 7588192..3f07c00 100644
--- a/nimble/host/util/include/host/util/util.h
+++ b/nimble/host/util/include/host/util/util.h
@@ -24,6 +24,19 @@
 extern "C" {
 #endif
 
+/**
+ * Tries to configure the device with at least one Bluetooth address.
+ * Addresses are restored in a hardware-specific fashion.
+ *
+ * @param prefer_random         Whether to attempt to restore a random address
+ *                                  before checking if a public address has
+ *                                  already been configured.
+ *
+ * @return                      0 on success;
+ *                              BLE_HS_ENOADDR if the device does not have any
+ *                                  available addresses.
+ *                              Other BLE host core code on error.
+ */
 int ble_hs_util_ensure_addr(int prefer_random);
 
 #ifdef __cplusplus
diff --git a/nimble/host/util/src/addr.c b/nimble/host/util/src/addr.c
index ba66686..58dcb18 100644
--- a/nimble/host/util/src/addr.c
+++ b/nimble/host/util/src/addr.c
@@ -70,19 +70,6 @@ ble_hs_util_ensure_rand_addr(void)
     return 0;
 }
 
-/**
- * Tries to configure the device with at least one Bluetooth address.
- * Addresses are restored in a hardware-specific fasion.
- *
- * @param prefer_random         Whether to attempt to restore a random address
- *                                  before checking if a public address has
- *                                  already been configured.
- *
- * @return                      0 on success;
- *                              BLE_HS_ENOADDR if the device does not have any
- *                                  available addresses.
- *                              Other BLE host core code on error.
- */
 int
 ble_hs_util_ensure_addr(int prefer_random)
 {