Merge branch 'api_reduce' into integration

This commit is contained in:
J. Nick Koston 2025-06-29 08:20:22 -05:00
commit efdef61477
No known key found for this signature in database
2 changed files with 2 additions and 4 deletions

View File

@ -11,13 +11,12 @@ class APIConnection;
// Macro for generating ListEntitiesIterator handlers
// Calls schedule_message_ with try_send_*_info
// clang-format off
// NOLINTNEXTLINE(bugprone-macro-parentheses)
#define LIST_ENTITIES_HANDLER(entity_type, EntityClass, ResponseType) \
bool ListEntitiesIterator::on_##entity_type(EntityClass *entity) { \
return this->client_->schedule_message_(entity, &APIConnection::try_send_##entity_type##_info, \
ResponseType::MESSAGE_TYPE); \
}
// clang-format on
class ListEntitiesIterator : public ComponentIterator {
public:

View File

@ -12,12 +12,11 @@ class APIConnection;
// Macro for generating InitialStateIterator handlers
// Calls send_*_state
// clang-format off
// NOLINTNEXTLINE(bugprone-macro-parentheses)
#define INITIAL_STATE_HANDLER(entity_type, EntityClass) \
bool InitialStateIterator::on_##entity_type(EntityClass *entity) { \
return this->client_->send_##entity_type##_state(entity); \
}
// clang-format on
class InitialStateIterator : public ComponentIterator {
public: