From 7ce5b5e61112512637ea6368b470596b8fac2a6b Mon Sep 17 00:00:00 2001 From: Jacob Perron Date: Thu, 8 Nov 2018 09:49:09 -0800 Subject: [PATCH] Expose subfolder argument for ROSIDL_GET_SRV_TYPE_SUPPORT macro (#315) * Expose subfolder argument for ROSIDL_GET_SRV_TYPE_SUPPORT macro This allows getting type support for services defined in an 'action' namespace; analogous to how ROSIDL_GET_MSG_TYPE_SUPPORT exposes the subfolder argument to support services. --- .../include/rosidl_generator_c/service_type_support_struct.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rosidl_generator_c/include/rosidl_generator_c/service_type_support_struct.h b/rosidl_generator_c/include/rosidl_generator_c/service_type_support_struct.h index 55fda5887..4ecdf4173 100644 --- a/rosidl_generator_c/include/rosidl_generator_c/service_type_support_struct.h +++ b/rosidl_generator_c/include/rosidl_generator_c/service_type_support_struct.h @@ -44,8 +44,9 @@ ROSIDL_GENERATOR_C_PUBLIC const rosidl_service_type_support_t * get_service_typesupport_handle_function( const rosidl_service_type_support_t * handle, const char * identifier); -#define ROSIDL_GET_SRV_TYPE_SUPPORT(PkgName, SrvName) \ - ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_c, PkgName, srv, SrvName)() +#define ROSIDL_GET_SRV_TYPE_SUPPORT(PkgName, SrvSubfolder, SrvName) \ + ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME( \ + rosidl_typesupport_c, PkgName, SrvSubfolder, SrvName)() #ifdef __cplusplus }