diff options
Diffstat (limited to 'dev/base')
| -rw-r--r-- | dev/base/FireWall/FireWall.h | 11 | ||||
| -rw-r--r-- | dev/base/FireWall/build.json | 2 | ||||
| -rw-r--r-- | dev/base/FireWall/fwapi.h | 7 | ||||
| -rw-r--r-- | dev/base/FireWall/src/FireWall.cc | 34 | ||||
| -rw-r--r-- | dev/base/FireWall/src/fwentry.cc | 5 | ||||
| -rw-r--r-- | dev/base/RunDLL64/src/Main.cc (renamed from dev/base/RunDLL64/src/dll.cc) | 0 | ||||
| -rw-r--r-- | dev/base/RunXPCOM/src/Main.cc (renamed from dev/base/RunXPCOM/src/xpcom.cc) | 0 | ||||
| -rw-r--r-- | dev/base/View/IPDF.h (renamed from dev/base/View/pdf.h) | 0 | ||||
| -rw-r--r-- | dev/base/View/VPainter.h | 9 | ||||
| -rw-r--r-- | dev/base/View/build.json (renamed from dev/base/View/view.json) | 12 | ||||
| -rw-r--r-- | dev/base/View/src/IPDF.cc (renamed from dev/base/View/src/pdf.cc) | 2 | ||||
| -rw-r--r-- | dev/base/View/src/VPainter.cc | 7 | ||||
| -rw-r--r-- | dev/base/View/src/app.cc | 0 | ||||
| -rw-r--r-- | dev/base/View/src/viewer_box.cc | 0 | ||||
| -rw-r--r-- | dev/base/View/viewer_box.h | 0 |
15 files changed, 69 insertions, 20 deletions
diff --git a/dev/base/FireWall/FireWall.h b/dev/base/FireWall/FireWall.h new file mode 100644 index 00000000..b9a1c57e --- /dev/null +++ b/dev/base/FireWall/FireWall.h @@ -0,0 +1,11 @@ +/* + * Copyright (c) 2024 ZKA Web Services Co + */ + +#pragma once + +#include <sci/sci_base.h> + +IMPORT_C Bool FwAllowConnection(const Char* ip_address, SizeT ip_address_len, Bool is_ipv6); + +IMPORT_C Bool FwForbidConnection(const Char* ip_address, SizeT ip_address_len, Bool is_ipv6); diff --git a/dev/base/FireWall/build.json b/dev/base/FireWall/build.json index 7f8c4956..77657ca5 100644 --- a/dev/base/FireWall/build.json +++ b/dev/base/FireWall/build.json @@ -3,7 +3,7 @@ "compiler_std": "c++20", "headers_path": [ "../", "./", "../../" ], "sources_path": [ "src/*.cc" ], - "output_name": "firewall.zsc", + "output_name": "firewall.exe", "compiler_flags": [ "-ffreestanding", "-fno-rtti", diff --git a/dev/base/FireWall/fwapi.h b/dev/base/FireWall/fwapi.h deleted file mode 100644 index cd916657..00000000 --- a/dev/base/FireWall/fwapi.h +++ /dev/null @@ -1,7 +0,0 @@ -/* - * Copyright (c) 2024 ZKA Web Services Co - */ - -#pragma once - -#include <sci/sci_base.h> diff --git a/dev/base/FireWall/src/FireWall.cc b/dev/base/FireWall/src/FireWall.cc new file mode 100644 index 00000000..1afae1c5 --- /dev/null +++ b/dev/base/FireWall/src/FireWall.cc @@ -0,0 +1,34 @@ +/* + * Copyright (c) 2024 ZKA Web Services Co + */ + +#include <FireWall/FireWall.h> + +struct FW_CONNECTION_ENTRY +{ + Bool is_ipv6, is_allowed; + Char f_ip_address; + SizeT f_ip_address_len; +}; + +IMPORT_C Bool FwAllowConnection(const Char* ip_address, SizeT ip_address_len, Bool is_ipv6) +{ + if (!ip_address || + !ip_address_len) + return No; + + + + return Yes; +} + +IMPORT_C Bool FwForbidConnection(const Char* ip_address, SizeT ip_address_len, Bool is_ipv6) +{ + if (!ip_address || + !ip_address_len) + return No; + + + + return Yes; +} diff --git a/dev/base/FireWall/src/fwentry.cc b/dev/base/FireWall/src/fwentry.cc deleted file mode 100644 index 3fb739f7..00000000 --- a/dev/base/FireWall/src/fwentry.cc +++ /dev/null @@ -1,5 +0,0 @@ -/* - * Copyright (c) 2024 ZKA Web Services Co - */ - -#include <FireWall/fwapi.h> diff --git a/dev/base/RunDLL64/src/dll.cc b/dev/base/RunDLL64/src/Main.cc index ee3cdfa6..ee3cdfa6 100644 --- a/dev/base/RunDLL64/src/dll.cc +++ b/dev/base/RunDLL64/src/Main.cc diff --git a/dev/base/RunXPCOM/src/xpcom.cc b/dev/base/RunXPCOM/src/Main.cc index 3fcfc708..3fcfc708 100644 --- a/dev/base/RunXPCOM/src/xpcom.cc +++ b/dev/base/RunXPCOM/src/Main.cc diff --git a/dev/base/View/pdf.h b/dev/base/View/IPDF.h index b28806d7..b28806d7 100644 --- a/dev/base/View/pdf.h +++ b/dev/base/View/IPDF.h diff --git a/dev/base/View/VPainter.h b/dev/base/View/VPainter.h new file mode 100644 index 00000000..c39a9780 --- /dev/null +++ b/dev/base/View/VPainter.h @@ -0,0 +1,9 @@ +/* ------------------------------------------- + +Copyright ZKA Web Services Co. + +------------------------------------------- */ + +#pragma once + +#include <sci/sci_base.h> diff --git a/dev/base/View/view.json b/dev/base/View/build.json index ba9f979f..a98e8730 100644 --- a/dev/base/View/view.json +++ b/dev/base/View/build.json @@ -1,9 +1,9 @@ { "compiler_path": "x86_64-w64-mingw32-g++", "compiler_std": "c++20", - "headers_path": ["../../", "....//zka"], + "headers_path": ["../", "../../", "../../zka"], "sources_path": ["src/*.cc"], - "output_name": "View.exe", + "output_name": "ViewPDF.exe", "compiler_flags": [ "-fPIC", "-ffreestanding", @@ -13,9 +13,9 @@ "-Wl,--subsystem=17" ], "cpp_macros": [ - "__VIEW_IMPL__", - "cPRMVersion=0x0100", - "cPRMVersionHighest=0x0100", - "cPRMVersionLowest=0x0100" + "__VIEW_PDF_IMPL__", + "cPDFVersion=0x0100", + "cPDFVersionHighest=0x0100", + "cPDFVersionLowest=0x0100" ] } diff --git a/dev/base/View/src/pdf.cc b/dev/base/View/src/IPDF.cc index 2f5e628e..2126b64a 100644 --- a/dev/base/View/src/pdf.cc +++ b/dev/base/View/src/IPDF.cc @@ -4,4 +4,4 @@ ------------------------------------------- */ -#include <View/pdf.h> +#include <View/IPDF.h> diff --git a/dev/base/View/src/VPainter.cc b/dev/base/View/src/VPainter.cc new file mode 100644 index 00000000..92f1075a --- /dev/null +++ b/dev/base/View/src/VPainter.cc @@ -0,0 +1,7 @@ +/* ------------------------------------------- + + Copyright ZKA Web Services Co. + +------------------------------------------- */ + +#include <View/VPainter.h> diff --git a/dev/base/View/src/app.cc b/dev/base/View/src/app.cc deleted file mode 100644 index e69de29b..00000000 --- a/dev/base/View/src/app.cc +++ /dev/null diff --git a/dev/base/View/src/viewer_box.cc b/dev/base/View/src/viewer_box.cc deleted file mode 100644 index e69de29b..00000000 --- a/dev/base/View/src/viewer_box.cc +++ /dev/null diff --git a/dev/base/View/viewer_box.h b/dev/base/View/viewer_box.h deleted file mode 100644 index e69de29b..00000000 --- a/dev/base/View/viewer_box.h +++ /dev/null |
