100 lines
3.0 KiB
Diff
100 lines
3.0 KiB
Diff
|
diff --git a/ffi/cdef.c b/ffi/cdef.c
|
||
|
index 9c22ce7..e8c8a1f 100644
|
||
|
--- a/ffi/cdef.c
|
||
|
+++ b/ffi/cdef.c
|
||
|
@@ -56,8 +56,8 @@ struct curl_ws_frame {
|
||
|
...;
|
||
|
};
|
||
|
|
||
|
-int curl_ws_recv(void *curl, void *buffer, int buflen, int *recv, struct curl_ws_frame **meta);
|
||
|
-int curl_ws_send(void *curl, void *buffer, int buflen, int *sent, int fragsize, unsigned int sendflags);
|
||
|
+int curl_ws_recv(void *curl, void *buffer, int buflen, size_t *recv, const struct curl_ws_frame **meta);
|
||
|
+int curl_ws_send(void *curl, void *buffer, int buflen, size_t *sent, int fragsize, unsigned int sendflags);
|
||
|
|
||
|
// mime
|
||
|
void *curl_mime_init(void* curl); // -> form
|
||
|
diff --git a/libs.json b/libs.json
|
||
|
index 3825dfe..0e1b619 100644
|
||
|
--- a/libs.json
|
||
|
+++ b/libs.json
|
||
|
@@ -41,7 +41,7 @@
|
||
|
"pointer_size": 64,
|
||
|
"libdir": "",
|
||
|
"sysname": "linux",
|
||
|
- "link_type": "static",
|
||
|
+ "link_type": "dynamic",
|
||
|
"libc": "gnu",
|
||
|
"so_name": "libcurl-impersonate-chrome.so",
|
||
|
"so_arch": "x86_64"
|
||
|
@@ -52,7 +52,7 @@
|
||
|
"pointer_size": 64,
|
||
|
"libdir": "",
|
||
|
"sysname": "linux",
|
||
|
- "link_type": "static",
|
||
|
+ "link_type": "dynamic",
|
||
|
"libc": "musl",
|
||
|
"so_name": "libcurl-impersonate-chrome.so",
|
||
|
"so_arch": "x86_64"
|
||
|
@@ -63,7 +63,7 @@
|
||
|
"pointer_size": 32,
|
||
|
"libdir": "",
|
||
|
"sysname": "linux",
|
||
|
- "link_type": "static",
|
||
|
+ "link_type": "dynamic",
|
||
|
"libc": "gnu",
|
||
|
"so_name": "libcurl-impersonate-chrome.so",
|
||
|
"so_arch": "i386"
|
||
|
@@ -74,7 +74,7 @@
|
||
|
"pointer_size": 64,
|
||
|
"libdir": "",
|
||
|
"sysname": "linux",
|
||
|
- "link_type": "static",
|
||
|
+ "link_type": "dynamic",
|
||
|
"libc": "gnu",
|
||
|
"so_name": "libcurl-impersonate-chrome.so",
|
||
|
"so_arch": "aarch64"
|
||
|
@@ -96,7 +96,7 @@
|
||
|
"pointer_size": 32,
|
||
|
"libdir": "",
|
||
|
"sysname": "linux",
|
||
|
- "link_type": "static",
|
||
|
+ "link_type": "dynamic",
|
||
|
"libc": "gnueabihf",
|
||
|
"so_name": "libcurl-impersonate-chrome.so",
|
||
|
"so_arch": "arm"
|
||
|
@@ -107,7 +107,7 @@
|
||
|
"pointer_size": 32,
|
||
|
"libdir": "",
|
||
|
"sysname": "linux",
|
||
|
- "link_type": "static",
|
||
|
+ "link_type": "dynamic",
|
||
|
"libc": "gnueabihf",
|
||
|
"so_name": "libcurl-impersonate-chrome.so",
|
||
|
"so_arch": "arm"
|
||
|
diff --git a/scripts/build.py b/scripts/build.py
|
||
|
index 4891867..926f2c1 100644
|
||
|
--- a/scripts/build.py
|
||
|
+++ b/scripts/build.py
|
||
|
@@ -103,7 +103,6 @@ def get_curl_libraries():
|
||
|
ffibuilder = FFI()
|
||
|
system = platform.system()
|
||
|
root_dir = Path(__file__).parent.parent
|
||
|
-download_libcurl()
|
||
|
|
||
|
|
||
|
ffibuilder.set_source(
|
||
|
@@ -113,7 +112,6 @@ ffibuilder.set_source(
|
||
|
""",
|
||
|
# FIXME from `curl-impersonate`
|
||
|
libraries=get_curl_libraries(),
|
||
|
- extra_objects=get_curl_archives(),
|
||
|
library_dirs=[arch["libdir"]],
|
||
|
source_extension=".c",
|
||
|
include_dirs=[
|
||
|
@@ -132,4 +130,4 @@ with open(root_dir / "ffi/cdef.c") as f:
|
||
|
|
||
|
|
||
|
if __name__ == "__main__":
|
||
|
- ffibuilder.compile(verbose=False)
|
||
|
+ ffibuilder.compile(verbose=True)
|