Commit Graph

58 Commits

Author SHA1 Message Date
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
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
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
Flumble
b47bfc8544 Add target_squad_id and ipport to identity 2017-05-06 01:02:36 +02:00
Flumble
aa87489636 add VoiP state to Battlefield 2 identity 2017-05-05 20:37:46 +02:00
Davide Beatrici
474b3700ae plugins: Fix indentation and whitespace
* Use tabs for indentation
* Remove trailing whitespace
* Space indentation for alignment
2017-01-29 13:02:58 +01:00
Mikkel Krautz
98349a1b33 Merge PR #2755: plugins: Fix visibility, warnings and errors when compiled with MinGW 2017-01-22 16:37:32 +01:00
Davide Beatrici
6096b74a1c
plugins: Fix MinGW compilation warnings and errors
warning: converting to non-pointer type 'procptr32_t {aka long unsigned int}' from NULL [-Wconversion-null]
ql\ql.cpp:87: warning: comparison is always true due to limited range of data type [-Wtype-limits]
sto\sto.cpp:11: error: 'numeric_limits' is not a member of 'std'

Not fixed:
sto\sto.cpp:55: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
2017-01-22 16:20:56 +01:00
Mikkel Krautz
91ebb8b0b5 Update tree copyrights to 2017. 2017-01-08 21:05:57 +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
Mikkel Krautz
b19840cd10 plugins: use MUMBLE_PLUGIN_EXPORT instead of __declspec(dllexport). 2016-08-13 22:59:30 +02:00
davidebeatrici
88797fa324 mumble/plugins: Rename Win32 headers 2016-08-11 23:31:15 +02:00
davidebeatrici
ed8748dc07 plugins: update memory addresses retrieval to use procptr32_t/procptr64_t. 2016-06-23 23:32:37 +02:00
Mikkel Krautz
313be4b66b plugins: update to use LICENSE.header. 2016-05-10 22:42:04 +02:00
Benjamin Jemlich
f90c6e35ab More plugin touching 2012-05-01 11:12:43 +02:00
Stefan Hacker
86b8c00f71 Make bf2 plugin correctly clear its context and identity 2011-08-07 03:26:58 +02:00
Thorvald Natvig
f3437a6ba7 Update copyright year ranges of dev team. 2011-03-18 05:52:51 +01:00
Thorvald Natvig
8a44cb950d Indent, changelog, submodule and language update 2011-01-21 03:47:51 +01:00
Stefan Hacker
ce51f281cb Prevent random fluke in ip/port readout in bf2 plugin 2011-01-09 15:42:41 +01:00
Stefan Hacker
b50a0ac08a Update bf2 plugin to use json instead of xml for context/identity representation 2010-12-24 15:37:59 +01:00
Tuck Therebelos
90e1f7ea9b Fix unreliable commander state memory address 2010-12-23 15:28:39 -06:00
Thorvald Natvig
78e918bfba Indent, changelog, submodule and language update 2010-09-02 02:11:10 +02:00
Tuck Therebelos
ab81d38d41 Add player-specific context information to BF2 2010-08-21 18:44:41 -05:00
Tuck Therebelos
1a2ea89896 Fix last commit 2010-07-30 01:47:23 -05:00
Tuck Therebelos
aa0fc958ec Add context support to BFBC2 2010-07-30 01:42:37 -05:00
Thorvald Natvig
f2c191daf8 The grand plugin multiregexp experiment 2010-02-25 15:18:35 +01:00
Thorvald Natvig
c263aa0a7d Update plugins to new trylock signature 2010-02-25 13:19:47 +01:00
Thorvald Natvig
e207ef60c4 Zero camera positions in plugins' fetch() 2010-02-08 17:11:59 +01:00
Thorvald Natvig
16339bfc91 Update license to 2010 2010-01-05 08:49:22 +01:00
Thorvald Natvig
45da4e1569 Add license info to a few plugins 2010-01-05 05:34:09 +01:00
Thorvald Natvig
fb53df99ca Indent, changelog, submodule and language update 2009-12-27 04:06:38 +01:00
Tuck Therebelos
25660145b6 Linkcheck is different if loading movies 2009-12-26 06:31:10 -06:00
Tuck Therebelos
87ec3c5404 Fix BF2 link bug; improved context address 2009-12-26 06:07:13 -06:00
Thorvald Natvig
6325fa8072 Indent, changelog and submodule update 2009-12-10 18:15:56 +01:00
Tuck Therebelos
a4ea89c1cf Added BFHeroes plugin; updated BF2 and BF2142 with IP contexts and improved linkstates 2009-12-10 02:46:37 -06:00
Thorvald Natvig
1c0d7bbfd3 Indent, changelog and submodule update 2009-04-27 22:59:47 +02:00
Thorvald Natvig
f91647345b Avoid constref initializers of std::wstring inside const structs 2009-04-27 00:18:19 +02:00
Tuck Therebelos
f594ce8ee4 Plugins update for 1.2 PA; Cod5 and L4D patch update 2009-04-24 16:36:03 -05:00
Stefan H
3798014d51 Patch #2580353: bf2 PA increased possible mapsize
git-svn-id: https://mumble.svn.sourceforge.net/svnroot/mumble/trunk@1504 05730e5d-ab1b-0410-a4ac-84af385074fa
2009-02-08 23:13:56 +00:00
Mikkel Krautz
e61870e0f7 Fix version number in BF2 plugin about dialog.
git-svn-id: https://mumble.svn.sourceforge.net/svnroot/mumble/trunk@1330 05730e5d-ab1b-0410-a4ac-84af385074fa
2008-10-18 13:51:44 +00:00
Thorvald Natvig
be9a94b553 Bump BF2 plugin version.
git-svn-id: https://mumble.svn.sourceforge.net/svnroot/mumble/trunk@1312 05730e5d-ab1b-0410-a4ac-84af385074fa
2008-09-13 21:03:14 +00:00
Thorvald Natvig
e93c194397 Indenting run
git-svn-id: https://mumble.svn.sourceforge.net/svnroot/mumble/trunk@1019 05730e5d-ab1b-0410-a4ac-84af385074fa
2008-03-20 14:26:20 +00:00