From 050a2da4092630a74c3bfaabfb0b056edddcbcec Mon Sep 17 00:00:00 2001 From: jlucfarias Date: Sun, 25 May 2025 11:31:22 -0300 Subject: [PATCH] Add symbols for SubEthaEdit app --- .../SystemConfiguration/SCSchemaDefinitions.c | 58 +++++++++---------- src/frameworks/WebKit/CMakeLists.txt | 1 + src/frameworks/WebKit/include/WebKit/WebKit.h | 1 + .../WebKit/include/WebKit/WebView.h | 6 ++ src/frameworks/WebKit/src/WebView.m | 6 ++ 5 files changed, 42 insertions(+), 30 deletions(-) create mode 100644 src/frameworks/WebKit/include/WebKit/WebView.h create mode 100644 src/frameworks/WebKit/src/WebView.m diff --git a/src/frameworks/SystemConfiguration/SCSchemaDefinitions.c b/src/frameworks/SystemConfiguration/SCSchemaDefinitions.c index 3ad6f1885..dfe7f446b 100644 --- a/src/frameworks/SystemConfiguration/SCSchemaDefinitions.c +++ b/src/frameworks/SystemConfiguration/SCSchemaDefinitions.c @@ -1,33 +1,31 @@ #include #include -#ifndef CONST_STRING_DECL -# define CONST_STRING_DECL(name, value) const CFStringRef name = CFSTR(value) -#endif - -CONST_STRING_DECL(kSCPropNetProxiesExceptionsList, "ExceptionsList"); -CONST_STRING_DECL(kSCPropNetProxiesExcludeSimpleHostnames, "ExcludeSimpleHostnames"); -CONST_STRING_DECL(kSCPropNetProxiesFTPEnable, "FTPEnable"); -CONST_STRING_DECL(kSCPropNetProxiesFTPPassive, "FTPPassive"); -CONST_STRING_DECL(kSCPropNetProxiesFTPPort, "FTPPort"); -CONST_STRING_DECL(kSCPropNetProxiesFTPProxy, "FTPProxy"); -CONST_STRING_DECL(kSCPropNetProxiesGopherEnable, "GopherEnable"); -CONST_STRING_DECL(kSCPropNetProxiesGopherPort, "GopherPort"); -CONST_STRING_DECL(kSCPropNetProxiesGopherProxy, "GopherProxy"); -CONST_STRING_DECL(kSCPropNetProxiesHTTPEnable, "HTTPEnable"); -CONST_STRING_DECL(kSCPropNetProxiesHTTPPort, "HTTPPort"); -CONST_STRING_DECL(kSCPropNetProxiesHTTPProxy, "HTTPProxy"); -CONST_STRING_DECL(kSCPropNetProxiesHTTPSEnable, "HTTPSEnable"); -CONST_STRING_DECL(kSCPropNetProxiesHTTPSPort, "HTTPSPort"); -CONST_STRING_DECL(kSCPropNetProxiesHTTPSProxy, "HTTPSProxy"); -CONST_STRING_DECL(kSCPropNetProxiesRTSPEnable, "RTSPEnable"); -CONST_STRING_DECL(kSCPropNetProxiesRTSPPort, "RTSPPort"); -CONST_STRING_DECL(kSCPropNetProxiesRTSPProxy, "RTSPProxy"); -CONST_STRING_DECL(kSCPropNetProxiesSOCKSEnable, "SOCKSEnable"); -CONST_STRING_DECL(kSCPropNetProxiesSOCKSPort, "SOCKSPort"); -CONST_STRING_DECL(kSCPropNetProxiesSOCKSProxy, "SOCKSProxy"); -CONST_STRING_DECL(kSCPropNetProxiesProxyAutoConfigEnable, "ProxyAutoConfigEnable"); -CONST_STRING_DECL(kSCPropNetProxiesProxyAutoConfigJavaScript, "ProxyAutoConfigJavaScript"); -CONST_STRING_DECL(kSCPropNetProxiesProxyAutoConfigURLString, "ProxyAutoConfigURLString"); -CONST_STRING_DECL(kSCPropNetProxiesProxyAutoDiscoveryEnable, "ProxyAutoDiscoveryEnable"); - +const CFStringRef kSCPropNetIPv4Addresses = CFSTR("Addresses"); +const CFStringRef kSCPropNetIPv4SubnetMasks = CFSTR("SubnetMasks"); +const CFStringRef kSCPropNetProxiesExceptionsList = CFSTR("ExceptionsList"); +const CFStringRef kSCPropNetProxiesExcludeSimpleHostnames = CFSTR("ExcludeSimpleHostnames"); +const CFStringRef kSCPropNetProxiesFTPEnable = CFSTR("FTPEnable"); +const CFStringRef kSCPropNetProxiesFTPPassive = CFSTR("FTPPassive"); +const CFStringRef kSCPropNetProxiesFTPPort = CFSTR("FTPPort"); +const CFStringRef kSCPropNetProxiesFTPProxy = CFSTR("FTPProxy"); +const CFStringRef kSCPropNetProxiesGopherEnable = CFSTR("GopherEnable"); +const CFStringRef kSCPropNetProxiesGopherPort = CFSTR("GopherPort"); +const CFStringRef kSCPropNetProxiesGopherProxy = CFSTR("GopherProxy"); +const CFStringRef kSCPropNetProxiesHTTPEnable = CFSTR("HTTPEnable"); +const CFStringRef kSCPropNetProxiesHTTPPort = CFSTR("HTTPPort"); +const CFStringRef kSCPropNetProxiesHTTPProxy = CFSTR("HTTPProxy"); +const CFStringRef kSCPropNetProxiesHTTPSEnable = CFSTR("HTTPSEnable"); +const CFStringRef kSCPropNetProxiesHTTPSPort = CFSTR("HTTPSPort"); +const CFStringRef kSCPropNetProxiesHTTPSProxy = CFSTR("HTTPSProxy"); +const CFStringRef kSCPropNetProxiesRTSPEnable = CFSTR("RTSPEnable"); +const CFStringRef kSCPropNetProxiesRTSPPort = CFSTR("RTSPPort"); +const CFStringRef kSCPropNetProxiesRTSPProxy = CFSTR("RTSPProxy"); +const CFStringRef kSCPropNetProxiesSOCKSEnable = CFSTR("SOCKSEnable"); +const CFStringRef kSCPropNetProxiesSOCKSPort = CFSTR("SOCKSPort"); +const CFStringRef kSCPropNetProxiesSOCKSProxy = CFSTR("SOCKSProxy"); +const CFStringRef kSCPropNetProxiesProxyAutoConfigEnable = CFSTR("ProxyAutoConfigEnable"); +const CFStringRef kSCPropNetProxiesProxyAutoConfigJavaScript = CFSTR("ProxyAutoConfigJavaScript"); +const CFStringRef kSCPropNetProxiesProxyAutoConfigURLString = CFSTR("ProxyAutoConfigURLString"); +const CFStringRef kSCPropNetProxiesProxyAutoDiscoveryEnable = CFSTR("ProxyAutoDiscoveryEnable"); +const CFStringRef kSCDynamicStorePropNetPrimaryInterface = CFSTR("PrimaryInterface"); diff --git a/src/frameworks/WebKit/CMakeLists.txt b/src/frameworks/WebKit/CMakeLists.txt index 83726de56..c20b787ff 100644 --- a/src/frameworks/WebKit/CMakeLists.txt +++ b/src/frameworks/WebKit/CMakeLists.txt @@ -47,6 +47,7 @@ add_framework(WebKit src/_WKWebsiteDataStore.m src/_WKWebsiteDataStoreConfiguration.m src/_WKWebsitePolicies.m + src/WebView.m src/WKCustomProtocolLoader.m src/WKCustomProtocol.m src/WKNetworkSessionDelegate.m diff --git a/src/frameworks/WebKit/include/WebKit/WebKit.h b/src/frameworks/WebKit/include/WebKit/WebKit.h index e0389295d..ac288acf9 100644 --- a/src/frameworks/WebKit/include/WebKit/WebKit.h +++ b/src/frameworks/WebKit/include/WebKit/WebKit.h @@ -188,6 +188,7 @@ #import #import #import +#import @protocol DOMEventListener @end diff --git a/src/frameworks/WebKit/include/WebKit/WebView.h b/src/frameworks/WebKit/include/WebKit/WebView.h new file mode 100644 index 000000000..af399ade3 --- /dev/null +++ b/src/frameworks/WebKit/include/WebKit/WebView.h @@ -0,0 +1,6 @@ +#import + +extern NSString *WebElementImageKey; +extern NSString *WebElementLinkURLKey; +extern NSString *WebElementLinkTargetFrameKey; +extern NSString *WebElementLinkTitleKey; diff --git a/src/frameworks/WebKit/src/WebView.m b/src/frameworks/WebKit/src/WebView.m new file mode 100644 index 000000000..d25bbf0dc --- /dev/null +++ b/src/frameworks/WebKit/src/WebView.m @@ -0,0 +1,6 @@ +#import + +NSString *WebElementImageKey = @"WebElementImage"; +NSString *WebElementLinkURLKey = @"WebElementLinkURL"; +NSString *WebElementLinkTargetFrameKey = @"WebElementTargetFrame"; +NSString *WebElementLinkTitleKey = @"WebElementLinkTitle"; -- 2.51.2