8#ifdef USE_API_USER_DEFINED_ACTIONS
38#define ENTITY_TYPE_(type, singular, plural, count, upper) \
39 case IteratorState::upper: \
40 this->process_platform_item_(App.get_##plural(), &ComponentIterator::on_##singular); \
42#define ENTITY_CONTROLLER_TYPE_(type, singular, plural, count, upper, callback) \
43 ENTITY_TYPE_(type, singular, plural, count, upper)
46#undef ENTITY_CONTROLLER_TYPE_
49#ifdef USE_API_USER_DEFINED_ACTIONS
58 if (camera_instance !=
nullptr && (!camera_instance->
is_internal() || this->include_internal_)) {
75#ifdef USE_API_USER_DEFINED_ACTIONS
void process_platform_item_(const Container &items, bool(ComponentIterator::*on_item)(typename Container::value_type))
void begin(bool include_internal=false)
virtual bool on_service(api::UserServiceDescriptor *service)
virtual bool on_camera(camera::Camera *camera)
Abstract camera base class.
static Camera * instance()
The singleton instance of the camera implementation.
APIServer * global_api_server
Providing packet encoding functions for exchanging data with a remote host.