Make sure plugins do not use osdialog, add Lilac implementation
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
31f8436494
commit
83ba2ca091
4 changed files with 62 additions and 6 deletions
51
include/osdialog-stub/osdialog.h
Normal file
51
include/osdialog-stub/osdialog.h
Normal file
|
@ -0,0 +1,51 @@
|
|||
/*
|
||||
* DISTRHO Cardinal Plugin
|
||||
* 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
|
||||
* published by the Free Software Foundation; either version 3 of
|
||||
* the License, or any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* For a full copy of the GNU General Public License see the LICENSE file.
|
||||
*/
|
||||
|
||||
/**
|
||||
* This file is an edited version of osdialog.h
|
||||
* Originally licensed under CC0 1.0 Universal.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
|
||||
/** Linked list of patterns. */
|
||||
typedef struct osdialog_filter_patterns {
|
||||
char* pattern;
|
||||
struct osdialog_filter_patterns* next;
|
||||
} osdialog_filter_patterns;
|
||||
|
||||
/** Linked list of file filters. */
|
||||
typedef struct osdialog_filters {
|
||||
char* name;
|
||||
osdialog_filter_patterns* patterns;
|
||||
struct osdialog_filters* next;
|
||||
} osdialog_filters;
|
||||
|
||||
/** Parses a filter string. */
|
||||
static inline osdialog_filters* osdialog_filters_parse(const char* str) { return NULL; }
|
||||
static inline void osdialog_filters_free(osdialog_filters* filters) {}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue