From e0763151147af31e6acd3dad0f3fa1cbc58282fb Mon Sep 17 00:00:00 2001 From: Arjav Patel Date: Sun, 31 May 2026 10:14:38 +0530 Subject: [PATCH] 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 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 --- tools/nxstyle.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/nxstyle.c b/tools/nxstyle.c index d7ee750cfbcc6..36c0834bcc4f8 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 };