From 2d3a4e74f6d3a1581f252ee3a414e69133bcad7e Mon Sep 17 00:00:00 2001 From: Geraint Date: Sun, 24 Nov 2024 21:02:17 +0000 Subject: [PATCH] `web` -> `webview` --- include/clap/ext/draft/{web.h => webview.h} | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) rename include/clap/ext/draft/{web.h => webview.h} (89%) diff --git a/include/clap/ext/draft/web.h b/include/clap/ext/draft/webview.h similarity index 89% rename from include/clap/ext/draft/web.h rename to include/clap/ext/draft/webview.h index c27e5c02..47ed6818 100644 --- a/include/clap/ext/draft/web.h +++ b/include/clap/ext/draft/webview.h @@ -1,12 +1,12 @@ #pragma once -static CLAP_CONSTEXPR const char CLAP_EXT_WEB[] = "clap.web/1"; +static CLAP_CONSTEXPR const char CLAP_EXT_WEBVIEW[] = "clap.webview/1"; #ifdef __cplusplus extern "C" { #endif -/// @page Web +/// @page Webview /// /// This extension enables the plugin to provide the start-page for a webview UI, and exchange /// messages back and forth. @@ -15,7 +15,7 @@ extern "C" { /// ArrayBuffer. They are posted back to the plugin using window.parent.postMessage(), with the /// data in an ArrayBuffer or TypedArray. -typedef struct clap_plugin_web { +typedef struct clap_plugin_webview { // Returns the URL for the webview's initial navigation, as a null-terminated UTF-8 string. // If this URL is relative, it is resolved relative to the plugin (bundle) resource directory. // The host may assume that no resources outside of that directory are used, and may use any @@ -33,9 +33,9 @@ typedef struct clap_plugin_web { // [main-thread] bool(CLAP_ABI *receive)(const clap_plugin_t *plugin, const void *buffer, uint32_t size); -} clap_plugin_web_t; +} clap_plugin_webview_t; -typedef struct clap_host_web { +typedef struct clap_host_webview { // Checks whether the webview is open (and ready to receive messages) // [thread-safe] bool(CLAP_ABI *is_open)(const clap_host_t *host); @@ -46,7 +46,7 @@ typedef struct clap_host_web { // [thread-safe] bool(CLAP_ABI *send)(const clap_host_t *host, const void *buffer, uint32_t size); -} clap_host_web_t; +} clap_host_webview_t; #ifdef __cplusplus }