From 863055d5cb568764a87d26d0b6d88a21f4cb3b61 Mon Sep 17 00:00:00 2001 From: Alexandre Bique Date: Mon, 8 Jan 2024 10:10:03 +0100 Subject: [PATCH] Remove check for update extension --- ChangeLog.md | 4 +++ README.md | 1 - include/clap/ext/draft/check-for-update.h | 32 ----------------------- 3 files changed, 4 insertions(+), 33 deletions(-) delete mode 100644 include/clap/ext/draft/check-for-update.h diff --git a/ChangeLog.md b/ChangeLog.md index b70d2dd8..c0cba488 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -14,6 +14,10 @@ Note: we kept the last draft extension ID in order to not break plugins already using it. +## Removed draft extension + +* `CLAP_EXT_CHECK_FOR_UPDATE` was removed because it wasn't used and it's design needed more thought. + ## Stabilize factory * `CLAP_PRESET_DISCOVERY_FACTORY_ID` diff --git a/README.md b/README.md index 52dc263c..4354567e 100644 --- a/README.md +++ b/README.md @@ -105,7 +105,6 @@ and use to get a basic plugin experience: - [track-info](include/clap/ext/draft/track-info.h) - [quick-controls](include/clap/ext/draft/quick-controls.h), bank of controls that can be mapped on a controlles with 8 knobs - [file-reference](include/clap/ext/draft/file-reference.h), let the host know about the plugin's file reference, and perform "Collect & Save" -- [check-for-update](include/clap/ext/draft/check-for-update.h), check if there is a new version of a plugin - [audio-ports-config](include/clap/ext/audio-ports-config.h), simple list of possible configurations - [surround](include/clap/ext/draft/surround.h), inspect surround channel mapping - [ambisonic](include/clap/ext/draft/ambisonic.h), inspect ambisonic channel mapping diff --git a/include/clap/ext/draft/check-for-update.h b/include/clap/ext/draft/check-for-update.h deleted file mode 100644 index 71ebe81c..00000000 --- a/include/clap/ext/draft/check-for-update.h +++ /dev/null @@ -1,32 +0,0 @@ -#pragma once - -#include "../../plugin.h" - -static CLAP_CONSTEXPR const char CLAP_EXT_CHECK_FOR_UPDATE[] = "clap.check_for_update.draft/0"; - -#ifdef __cplusplus -extern "C" { -#endif - -typedef struct clap_check_for_update_info { - const char *version; // latest version - const char *release_date; // YYYY-MM-DD - const char *url; // url to a download page which the user can visit - - bool is_preview; // true if this version is a preview release -} clap_check_for_update_info_t; - -typedef struct clap_plugin_check_for_update { - // [main-thread] - void(CLAP_ABI *check)(const clap_plugin_t *plugin, bool include_preview); -} clap_plugin_check_for_update_t; - -typedef struct clap_host_check_for_update { - // [main-thread] - void(CLAP_ABI *on_new_version)(const clap_host_t *host, - const clap_check_for_update_info_t *update_info); -} clap_host_check_for_update_t; - -#ifdef __cplusplus -} -#endif