summaryrefslogtreecommitdiff
path: root/indra/llui/lluictrl.h
diff options
context:
space:
mode:
authorMnikolenko Productengine <mnikolenko@productengine.com>2024-05-15 18:50:51 +0300
committerMnikolenko Productengine <mnikolenko@productengine.com>2024-05-15 18:50:51 +0300
commit9f540f10e687bb3889de191afbae3b52cc21f415 (patch)
tree48f561539193be6993dfd40e853a67b01cdb1812 /indra/llui/lluictrl.h
parentcec3b8d870085925cd0c9fb900b7d5e4629bcbfd (diff)
Add trusted flag to UI callbacks, so not everything is accessible from the script
Diffstat (limited to 'indra/llui/lluictrl.h')
-rw-r--r--indra/llui/lluictrl.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/indra/llui/lluictrl.h b/indra/llui/lluictrl.h
index cffb9933d4..5039d3e22c 100644
--- a/indra/llui/lluictrl.h
+++ b/indra/llui/lluictrl.h
@@ -282,6 +282,22 @@ public:
{
LLSINGLETON_EMPTY_CTOR(EnableCallbackRegistry);
};
+
+ struct LLCommitCallbackInfo
+ {
+ LLCommitCallbackInfo(commit_callback_t func = NULL, bool allow_untrusted = false)
+ : callback_func(func), mAllowUntrusted(allow_untrusted)
+ {}
+
+ public:
+ bool mAllowUntrusted;
+ commit_callback_t callback_func;
+ };
+
+ class SharedCommitCallbackRegistry : public CallbackRegistry<LLCommitCallbackInfo, SharedCommitCallbackRegistry>
+ {
+ LLSINGLETON_EMPTY_CTOR(SharedCommitCallbackRegistry);
+ };
protected: