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

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 34e0663e2da tools/nxstyle: Whitelist Micro XRCE-DDS uxrCustomTransport 
prefix.
34e0663e2da is described below

commit 34e0663e2da5602bd6797549a42602c93323c690
Author: Arjav Patel <[email protected]>
AuthorDate: Sun May 31 10:14:38 2026 +0530

    tools/nxstyle: Whitelist Micro XRCE-DDS uxrCustomTransport prefix.
    
    The Micro XRCE-DDS Client custom-transport API expects user
    callbacks with prototypes of the form
    
      bool open_cb (struct uxrCustomTransport *transport);
      size_t read_cb(struct uxrCustomTransport *transport, ...);
    
    The struct tag is fixed by the upstream public header
    <uxr/client/profile/transport/custom/custom_transport.h> and
    cannot be renamed. nxstyle currently flags every callback
    signature in apps/system/microros/transport with 'Mixed case
    identifier found'.
    
    Add the 'uxrCustom' prefix to g_white_prefix, following the same
    pattern used for the ROS 2 message type names added in
    commit bc3a2596c8 ("tools/nxstyle: Whitelist ROS 2 message type
    identifiers.").
    
    Signed-off-by: Arjav Patel <[email protected]>
---
 tools/nxstyle.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/tools/nxstyle.c b/tools/nxstyle.c
index d7ee750cfbc..36c0834bcc4 100644
--- a/tools/nxstyle.c
+++ b/tools/nxstyle.c
@@ -250,6 +250,13 @@ static const char *g_white_prefix[] =
   "UInt64",
   "Float32",
   "Float64",
+
+  /* Ref:  apps/system/microros/transport
+   * Micro XRCE-DDS Client custom transport struct exposed in the
+   * callback prototypes registered via rmw_uros_set_custom_transport().
+   */
+
+  "uxrCustom",           /* uxrCustomTransport */
   NULL
 };
 

Reply via email to