Make sure plugins do not use osdialog, add Lilac implementation

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2022-06-17 23:41:37 +01:00
parent 31f8436494
commit 83ba2ca091
No known key found for this signature in database
GPG key ID: CDBAA37ABC74FBA0
4 changed files with 62 additions and 6 deletions

View file

@ -1,6 +1,6 @@
/*
* DISTRHO Cardinal Plugin
* Copyright (C) 2021 Filipe Coelho <falktx@falktx.com>
* Copyright (C) 2021-2022 Filipe Coelho <falktx@falktx.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
@ -17,17 +17,22 @@
#include <osdialog.h>
#include "DistrhoUtils.hpp"
char* osdialog_file(osdialog_file_action action, const char* path, const char* filename, osdialog_filters* filters)
{
d_stderr2("[Cardinal] osdialog_file called %d %s %s", action, path, filename);
return nullptr;
}
int osdialog_message(osdialog_message_level level, osdialog_message_buttons buttons, const char* message)
{
d_stderr2("[Cardinal] osdialog_message called %d %d %s", level, buttons, message);
return 0;
}
char* osdialog_prompt(osdialog_message_level level, const char* message, const char* text)
{
d_stderr2("[Cardinal] osdialog_prompt called %d %s %s", level, message, text);
return nullptr;
}