Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Cooper <tim.cooper@layeh.com>2015-08-04 15:36:08 +0300
committerMikkel Krautz <mikkel@krautz.dk>2016-05-08 17:45:52 +0300
commit6c68dec477d2b95c7588934f6860918a3ee046dd (patch)
tree96517c3350f5c659126e0e86ae534cd212aec233 /src/murmur/MurmurGRPCImpl.h
parent92320bffba64ef0e611cb6b2d8ea010625881e8f (diff)
grpc: only allow users to trigger explicitly added context actions
Diffstat (limited to 'src/murmur/MurmurGRPCImpl.h')
-rw-r--r--src/murmur/MurmurGRPCImpl.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/murmur/MurmurGRPCImpl.h b/src/murmur/MurmurGRPCImpl.h
index d399d7469..c15c89ec7 100644
--- a/src/murmur/MurmurGRPCImpl.h
+++ b/src/murmur/MurmurGRPCImpl.h
@@ -81,6 +81,13 @@ class MurmurRPCImpl : public QThread {
QMutex qmAuthenticatorsLock;
QHash<int, ::MurmurRPC::Wrapper::V1_AuthenticatorStream *> qhAuthenticators;
+ QMap<int, QMap<unsigned int, QSet<QString> > > qmActiveContextActions; // server id -> session -> context action
+ bool hasActiveContextAction(const ::Server *s, const ::User *u, const QString &action);
+ void addActiveContextAction(const ::Server *s, const ::User *u, const QString &action);
+ void removeActiveContextAction(const ::Server *s, const ::User *u, const QString &action);
+ void removeUserActiveContextActions(const ::Server *s, const ::User *u);
+ void removeActiveContextActions(const ::Server *s);
+
void removeAuthenticator(const ::Server *);
void sendMetaEvent(const ::MurmurRPC::Event &e);
void sendServerEvent(const ::Server *s, const ::MurmurRPC::Server_Event &e);