Skip to content

Commit

Permalink
Expose subfolder argument for ROSIDL_GET_SRV_TYPE_SUPPORT macro (#315)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
jacobperron authored Nov 8, 2018
1 parent 82a6a5f commit 7ce5b5e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 7ce5b5e

Please sign in to comment.