Move desktop notifications to its own header

We'll need to use this from the chainloader.
This commit is contained in:
Robbert van der Helm
2022-04-16 14:57:26 +02:00
parent fde90d7bc3
commit 46af07748b
12 changed files with 246 additions and 193 deletions
+5 -4
View File
@@ -14,10 +14,6 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
#include "bridges/vst3.h"
using namespace std::literals::string_literals;
// FIXME: The VST3 SDK as of version 3.7.2 now includes multiple local functions
// called `InitModule` and `DeinitModule`: one in the new
// `public.sdk/source/main/initmodule.cpp`, and the existing ones in the
@@ -29,6 +25,9 @@ using namespace std::literals::string_literals;
// NOLINTNEXTLINE(bugprone-suspicious-include)
#include <public.sdk/source/main/linuxmain.cpp>
#include "../common/linking.h"
#include "bridges/vst3.h"
using namespace std::literals::string_literals;
namespace fs = ghc::filesystem;
@@ -49,6 +48,8 @@ namespace fs = ghc::filesystem;
std::unique_ptr<Vst3PluginBridge> bridge;
// These functions are called by the `ModuleEntry` and `ModuleExit` functions on
// the first load and load unload
bool InitModule() {
assert(!bridge);