summaryrefslogtreecommitdiff
path: root/indra/test
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2022-06-22 10:51:11 -0400
committerNat Goodspeed <nat@lindenlab.com>2022-06-22 10:51:11 -0400
commit6b53036f7499a4e42813378009050eaf02c0b69d (patch)
treecfa65d470b614a6ef246dce074186e54b4ffbc23 /indra/test
parentf9d810ac2a02ef96c843e214c7479146dd4f4157 (diff)
DRTVWR-564: Allow LLLeapListener to report LazyEventAPIs too.
One important factor in the design of LazyEventAPI was the desire to allow LLLeapListener to query metadata for an LLEventAPI even if it hasn't yet been instantiated by LazyEventAPI. That's why LazyEventAPI requires the same metadata required by a classic LLEventAPI. Instead of just publicly exposing its data members, give LazyEventAPI a query API mimicking LLEventAPI / LLEventDispatcher. Protect data members and private methods. Adapt lazyeventapi_test.cpp accordingly. Extend LLLeapListener::getAPIs() and getAPI() to look through LazyEventAPIBase instances after first checking existing LLEventAPI instances. Because the query API for LazyEventAPIBase mimics LLEventAPI's, extract getAPI()'s actual metadata reporting to a new internal template function reportAPI(). While we're touching LLLeapListener, we no longer need BOOST_FOREACH().
Diffstat (limited to 'indra/test')
0 files changed, 0 insertions, 0 deletions