Commit Graph

23 Commits

Author SHA1 Message Date
Robert Adam
923045ac60 FORMAT: Run clang-format 10 on all source files 2021-04-16 21:05:52 +02:00
Robert Adam
27dbee8e62 FEAT(client): Plugin framework
This commit introduces a new plugin framework into the codebase of the
Mumble client. Note that "plugin" here really refers to a (more or less)
general purpose plugin and is therefore not to be confused with the
previously available positional data plugins (only responsible for
fetching positional data from a running game and passing that to
Mumble).

The plugin interface is written in C, removing the compiler-dependence
the old "plugins" had. Instead plugins can now be written in an
arbitrary language as long as that language is capable of being compiled
into a shared library and also being capable of being C-compatible.

As already indicated a plugin is essentially a shared library that
provides certain functions that allow Mumble to interface with it.

Inside Mumble the so-called PluginManager is responsible for managing
the plugins and relaying events to the respective callbacks. Plugins
themselves can also interact with Mumble on their own initiative by
using the provided API functions.

Fixes #2455
Fixes #2148
Fixes #1594
Fixes #2051
Fixes #3742
Fixes #4575
Fixes #4751
2021-04-16 20:15:44 +02:00
Robert Adam
59ae429972 MAINT: Update copyright notice to 2021
This was done by running scripts/updateLicenseHeaders.py and then
manually editing the LICENSE file.
2021-03-02 10:15:01 +01:00
Robert
af7dac72f4 FORMAT: Run clang-format 10 on all C/CXX source-files 2020-09-11 18:29:33 +02:00
Robert Adam
40b28b03c1 FORMAT: Move explanatory comments to own line 2020-09-11 18:28:38 +02:00
Popkornium18
691c38736a REFAC(plugins): replace NULL with nullptr
This changes all occurances of NULL in the plugins source
dir to nullptr. Additionally explicit comparisons with NULL were
removed.
2020-06-28 19:04:27 +02:00
Davide Beatrici
4e67a2fafb Auto-update LICENSE.header in source files 2020-01-07 03:09:22 +01:00
Davide Beatrici
243ece3659 plugins/bf1: fix sizeof() bug
Found thanks to GCC's warning:

../mumble_plugin_utils.h: In function ‘int fetch(float*, float*, float*, float*, float*, float*, std::string&, std::wstring&)’:
../mumble_plugin_utils.h:35:16: warning: array subscript 99 is outside array bounds of ‘char [4]’ [-Warray-bounds]
   35 |  str[size - 1] = 0;
      |  ~~~~~~~~~~~~~~^~~
bf1.cpp:15:25: note: while referencing ‘team’
   15 |  char server_name[100], team[4];
      |                         ^~~~
2019-10-12 09:01:28 +02:00
Davide Beatrici
d40fbe8c3b plugins: replace BYTE with uint8_t 2019-10-11 21:13:48 +02:00
Davide Beatrici
9875c59b7a plugins: use new header 2019-08-08 23:51:13 +02:00
Davide Beatrici
b427333257 Auto-update LICENSE.header in source files 2019-01-25 04:56:19 +01:00
Mikkel Krautz
f6ba3a52bf Auto-update LICENSE.header in source files. 2018-01-01 23:05:37 +01:00
davidebeatrici
2a51c7bff6 Accomplish changes in all the plugins 2017-11-19 21:48:55 +01:00
Davide Beatrici
75c4de8cc1 plugins/bf1: update plugin to work with version 1.0.49.52296
https://www.battlefield.com/news/update-notes/spring-update
2017-05-07 23:03:26 +02:00
Davide Beatrici
9f777406bc plugins/bf1: update plugin to work with version 1.0.49.28890
https://www.battlefield.com/news/update-notes/bf1-they-shall-not-pass-update
2017-04-07 17:40:51 +02:00
Mikkel Krautz
91ebb8b0b5 Update tree copyrights to 2017. 2017-01-08 21:05:57 +01:00
Davide Beatrici
4d3d4d8643
plugins/bf1: update plugin to work with version 1.0.47.30570
https://forums.battlefield.com/en-us/discussion/71453/battlefield-1-giant-s-shadow-release-and-update-12132016
2016-12-31 05:17:35 +01:00
Jan Klass
e2ad9c05f0 Fix 2643: Revert "Merge PR #2611: plugins: use the short form of peekProc"
This reverts commit e9c558ffdb, reversing
changes made to ca2fd07b90.

This is a quick-fix for crashing PA plugins. The intended change is
still useful and planned to land later.
2016-11-17 12:59:45 +01:00
Davide Beatrici
921ee19e3a plugins: use the short form of peekProc
The short form of peekProc automatically uses the correct size for the target.
2016-10-31 14:24:25 +01:00
zeroX-tj
360cac6e89 plugins/bf1: better squad pointer
The previous one wasn't working for everyone.
2016-10-27 17:39:09 +02:00
Davide Beatrici
30c779caf2 plugins/bf1: update plugin to work with version 1.0.9.53998
Game version: 1.0.9.53998
https://forums.battlefield.com/en-us/discussion/44346/battlefield-1-update-10242016
2016-10-26 16:40:23 +02:00
davidebeatrici
90bcd40d39 plugins: Move NUL terminator to escape function 2016-10-23 21:32:08 +02:00
davidebeatrici
7ab7d1dd30 Positional audio support for Battlefield 1
Context based on server name.
Identity: Team, squad and squad leader.
2016-10-20 18:43:59 +02:00