diff --git a/rmw_zenoh_cpp/src/detail/event.hpp b/rmw_zenoh_cpp/src/detail/event.hpp index 34f55826..b539e5e1 100644 --- a/rmw_zenoh_cpp/src/detail/event.hpp +++ b/rmw_zenoh_cpp/src/detail/event.hpp @@ -28,24 +28,27 @@ enum rmw_zenoh_event_type_t // subscription events ZENOH_EVENT_REQUESTED_QOS_INCOMPATIBLE, - // RMW_EVENT_MESSAGE_LOST, + ZENOH_EVENT_MESSAGE_LOST, // RMW_EVENT_SUBSCRIPTION_INCOMPATIBLE_TYPE, - // RMW_EVENT_SUBSCRIPTION_MATCHED, + ZENOH_EVENT_SUBSCRIPTION_MATCHED, // publisher events // RMW_EVENT_LIVELINESS_LOST, // RMW_EVENT_OFFERED_DEADLINE_MISSED, - ZENOH_EVENT_OFFERED_QOS_INCOMPATIBLE + ZENOH_EVENT_OFFERED_QOS_INCOMPATIBLE, // RMW_EVENT_PUBLISHER_INCOMPATIBLE_TYPE, - // RMW_EVENT_PUBLICATION_MATCHED, + ZENOH_EVENT_PUBLICATION_MATCHED, }; /// Helper value to indicate the maximum index of events supported. -#define ZENOH_EVENT_ID_MAX rmw_zenoh_event_type_t::ZENOH_EVENT_OFFERED_QOS_INCOMPATIBLE +#define ZENOH_EVENT_ID_MAX rmw_zenoh_event_type_t::ZENOH_EVENT_PUBLICATION_MATCHED static const std::unordered_map event_map{ {RMW_EVENT_REQUESTED_QOS_INCOMPATIBLE, ZENOH_EVENT_REQUESTED_QOS_INCOMPATIBLE}, {RMW_EVENT_OFFERED_QOS_INCOMPATIBLE, ZENOH_EVENT_OFFERED_QOS_INCOMPATIBLE}, + {RMW_EVENT_MESSAGE_LOST, ZENOH_EVENT_MESSAGE_LOST}, + {RMW_EVENT_SUBSCRIPTION_MATCHED, ZENOH_EVENT_SUBSCRIPTION_MATCHED}, + {RMW_EVENT_PUBLICATION_MATCHED, ZENOH_EVENT_PUBLICATION_MATCHED} // TODO(clalancette): Implement remaining events };