Mikkel Krautz
c8d136febc
Merge PR #2248 : Fix Left 4 Dead 2 plugin and clean up plugin code
2016-05-08 22:58:51 +02:00
Joeliam
192a89c4d1
Fix Left 4 Dead 2 plugin and clean up plugin code
...
Thanks to @mrzchuck for answering system based programming questions
and helping me with my first use of github.
This plugin supports the latest version of L4D2 (version 2.1.4.5)
Most of my code changes are based on the mumble wiki plugin guide
styling and/or the Counter Strike (CS) plugin (both of which are more
standardized and easier to read). I removed the calcout function by
pulling in the front and top vectors directly from L4D2. I simplified
the trylock function by calling fetch from it (previously trylock and
fetch contained duplicate code). The style for context support seemed
convoluted so I changed it to emulate the style of the CS plugin (the
logic is still the same). Lastly, I added many helpful comments
describing the variables, functions, and general principles of mumble
plugins.
I have performed extensive testing and found excellent results.
2016-05-08 22:58:20 +02:00
Mikkel Krautz
790bd7963c
Merge PR #2253 : Transifex translation update
2016-05-08 22:54:46 +02:00
MumbleTransifexBot
7ab5aa2ca2
Transifex translation update
...
Mode: default
Minimum percent translated: 0
Matched 41 languages
2016-05-08 22:54:25 +02:00
Mikkel Krautz
89097d5abb
Merge PR #1682 : murmur grpc support
2016-05-08 16:59:45 +02:00
Mikkel Krautz
4a419de221
grpc: limit gRPC to Qt 5.
...
It doesn't build on Qt 4 at the moment.
2016-05-08 16:45:52 +02:00
Tim Cooper
21f9a29d42
grpc: fix uninitialized RPCCall reference count
2016-05-08 16:45:52 +02:00
Tim Cooper
1af50bd5ff
grpc: do not use CONFIG for grpc block
2016-05-08 16:45:52 +02:00
Tim Cooper
edcd4cde27
grpc: require protobuf>=3
2016-05-08 16:45:52 +02:00
Tim Cooper
59bda9bec8
grpc: rename murmur.ini.grpc to murmur.grpc.ini
2016-05-08 16:45:52 +02:00
Mikkel Krautz
8d5236f3f2
grpc: add log message in GRPCStart, so users know that GRPC is enabled.
2016-05-08 16:45:52 +02:00
Mikkel Krautz
e93d566fa9
grpc: use single-line comments for docs in MurmurGRPCImpl.cpp.
2016-05-08 16:45:52 +02:00
Mikkel Krautz
88a665313e
grpc: use single-line doxygen-style comments in RPCSingleStreamCall top-level comment.
2016-05-08 16:45:52 +02:00
Mikkel Krautz
cd6b532cfd
grpc: fix implicit QString conversions in setChannelStateGRPC.
2016-05-08 16:45:52 +02:00
Mikkel Krautz
9128351b5c
grpc: rename GRPC-specific Server::setChannelState method, and add docs.
2016-05-08 16:45:52 +02:00
Mikkel Krautz
c7cd28b469
grpc: indent pre-declaration of classes in MurmurRPC::Wrapper.
2016-05-08 16:45:52 +02:00
Mikkel Krautz
505df4f7d3
grpc: make mServer and qtCleanup members in MurmurRPCImpl conform to coding style.
2016-05-08 16:45:52 +02:00
Mikkel Krautz
a02ef1b102
grpc: fix Server::sendTextMessageGRPC and Server::setChannelState to build in non-C++11 mode.
...
Before C++11, <:: is expanded as a trigraph in this context.
2016-05-08 16:45:52 +02:00
Mikkel Krautz
9fafa9ae15
grpc: make member variables in RPCCall and RPCSingleStreamCall coding style conformant.
2016-05-08 16:45:52 +02:00
Mikkel Krautz
71f90de22c
grpc: rename remaining MurmurRPCImpl member variables to be coding style conformant.
2016-05-08 16:45:52 +02:00
Mikkel Krautz
d8710c1019
grpc: rename aV1Service to m_V1Service.
2016-05-08 16:45:52 +02:00
Mikkel Krautz
32b8abd894
grpc: rename mCQ to m_completionQueue as per our coding style.
2016-05-08 16:45:52 +02:00
Mikkel Krautz
31928ca51f
grpc: use single-line comments for MurmurGRPCImpl.cpp system overview.
2016-05-08 16:45:52 +02:00
Mikkel Krautz
83c0b095e0
grpc: rename RPCStart and RPCStop to GRPCStart and GRPCStop.
2016-05-08 16:45:52 +02:00
Mikkel Krautz
a107fb3d71
grpc: fix formatting of textMessageFilter result handling.
2016-05-08 16:45:52 +02:00
Mikkel Krautz
ee1988eb4b
grpc: rename GRPC-specific Server::sendTextMessage to Server::sendTextMessageGRPC(), and add docs.
2016-05-08 16:45:52 +02:00
Mikkel Krautz
9c55e95673
grpc: mention that gRPC is experimental in the INSTALL file.
2016-05-08 16:45:52 +02:00
Mikkel Krautz
7666447df6
grpc: rename murmur_grpc_wrapper_gen to murmur_grpcwrapper_protoc_plugin.
...
Also, rename the binary to protoc-plugin-murmur-grpcwrapper.
2016-05-08 16:45:52 +02:00
Mikkel Krautz
4c54bb2785
grpc: update license headers to use the new-style header.
2016-05-08 16:45:52 +02:00
Mikkel Krautz
75d68fb473
grpc: sync murmur.ini.grpc with murmur.ini.
2016-05-08 16:45:52 +02:00
Mikkel Krautz
49f983301c
grpc: shell out to 'which grpc_cpp_plugin' to find grpc_cpp_plugin path in murmur_grpc.pro.
2016-05-08 16:45:52 +02:00
Mikkel Krautz
41885a2fed
grpc: ignore unused parameter warnings from MurmurRPC.grpc.pb.h.
2016-05-08 16:45:52 +02:00
Mikkel Krautz
772191fa8e
grpc: use RegisterService instead of RegisterAsyncService.
...
grpc 0.14.0-dev does not have RegisterAsyncService anymore,
and the gRPC examples that use async now use RegisterService
instead of RegisterAsyncService.
2016-05-08 16:45:52 +02:00
Mikkel Krautz
46e954dc4f
grpc: remove 'gpr' from PKGCONFIG.
...
There is no pkgconfig file for it anymore, in 0.14.0-dev,
so the build fails.
None of the other files seem to use libgpr.so either.
2016-05-08 16:45:52 +02:00
Tim Cooper
750f08d981
grpc: do not include generated proto wrapper
2016-05-08 16:45:52 +02:00
Tim Cooper
4a0f28724b
grpc: fix grpc CONFIG flag
2016-05-08 16:45:52 +02:00
Tim Cooper
ff109d96f0
grpc: integrate murmur_grpc_wrapper_gen into qmake build
2016-05-08 16:45:52 +02:00
Tim Cooper
97741f645e
grpc: move grpc-specific ini options to separate file
2016-05-08 16:45:52 +02:00
Tim Cooper
77e0bc2e55
grpc: fix compilation errors
2016-05-08 16:45:52 +02:00
Tim Cooper
49a6d35f2b
grpc: rename grpcCert, grpcKey to grpccert, grpckey
2016-05-08 16:45:52 +02:00
Tim Cooper
7c7ccfb4cb
grpc: change "no-grpc" build flag to "grpc"
2016-05-08 16:45:52 +02:00
Tim Cooper
9bd982c9c5
grpc: add TextMessageFilter method comment
2016-05-08 16:45:52 +02:00
Tim Cooper
805c0477c1
grpc: implement TextMessageFilter
2016-05-08 16:45:52 +02:00
Tim Cooper
19537ac218
grpc: allow connections to be secured using TLS
2016-05-08 16:45:52 +02:00
Tim Cooper
6c68dec477
grpc: only allow users to trigger explicitly added context actions
2016-05-08 16:45:52 +02:00
Tim Cooper
92320bffba
grpc: add comment about incomplete embedded protobuf messages
2016-05-08 16:45:52 +02:00
Tim Cooper
af631631e4
grpc: fix crash when writing to a stream that hasn't completed its previous write
2016-05-08 16:45:52 +02:00
Tim Cooper
d4b799deb9
grpc: add RPCSingleStreamCall base for single-streaming wrappers
2016-05-08 16:45:52 +02:00
Tim Cooper
1253f77edf
grpc: add helper method "end" to RPCSingleSingleCall
2016-05-08 16:45:52 +02:00
Tim Cooper
8401b5113e
grpc: document more of the RPC protocol
2016-05-08 16:45:52 +02:00