You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.4KB

  1. /*
  2. * DISTRHO Cardinal Plugin
  3. * Copyright (C) 2021-2022 Filipe Coelho <falktx@falktx.com>
  4. *
  5. * This program is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU General Public License as
  7. * published by the Free Software Foundation; either version 3 of
  8. * the License, or any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * For a full copy of the GNU General Public License see the LICENSE file.
  16. */
  17. /**
  18. * This file is an edited version of osdialog.h
  19. * Originally licensed under CC0 1.0 Universal.
  20. */
  21. #pragma once
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif
  25. #include <stdint.h>
  26. #include <stddef.h>
  27. /** Linked list of patterns. */
  28. typedef struct osdialog_filter_patterns {
  29. char* pattern;
  30. struct osdialog_filter_patterns* next;
  31. } osdialog_filter_patterns;
  32. /** Linked list of file filters. */
  33. typedef struct osdialog_filters {
  34. char* name;
  35. osdialog_filter_patterns* patterns;
  36. struct osdialog_filters* next;
  37. } osdialog_filters;
  38. /** Parses a filter string. */
  39. static inline osdialog_filters* osdialog_filters_parse(const char* str) { return NULL; }
  40. static inline void osdialog_filters_free(osdialog_filters* filters) {}
  41. #ifdef __cplusplus
  42. }
  43. #endif