Skip to content

Commit fb12ba5

Browse files
committed
updated conan dependency versions and wsclient.h fix
1 parent fa9f611 commit fb12ba5

File tree

3 files changed

+9
-14
lines changed

3 files changed

+9
-14
lines changed

docs/conan.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# Installing using conan
2-
### Prerequisites
2+
## Prerequisites
33
1- Python 3
44
https://www.python.org/downloads/
55

66
2- Conan package manager
77
https://docs.conan.io/2/installation.html
88

99
## Build and Install the repo to local system by using conan
10-
1- Navigate to `kubernetes` directory, then use `conan create .` command. This will build the repo from source as static library.
10+
1- Navigate to `kubernetes` directory, then use `conan create` command. This will build the repo from source as static library.
1111
```
1212
cd kubernetes
1313
conan create . --build=missing
@@ -55,7 +55,7 @@ class ExampleRecipe(ConanFile):
5555
conan install . --build=missing
5656
```
5757

58-
3- Finally, edit your `CMakeLists.txt` of your project to link against libraries. In this case, we link to `kubernetes_client_c` library.
58+
3- Finally, edit `CMakeLists.txt` of your project to link against libraries. In this case, we link to `kubernetes_client_c` library.
5959

6060
Add these lines after declaring the target in CMakeLists.
6161

kubernetes/conanfile.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,7 @@ def package_info(self):
5959
self.cpp_info.libs = ["kubernetes"]
6060

6161
def requirements(self):
62-
self.requires("libcurl/[^7.58]", headers=True, libs=True, transitive_headers=True)
63-
self.requires("openssl/[~1.1]", headers=True, libs=True, transitive_headers=True)
64-
self.requires("libwebsockets/4.2.0", headers=True, libs=True, transitive_headers=True)
65-
self.requires("libyaml/0.2.5", headers=True, libs=True, transitive_headers=True)
66-
67-
68-
69-
70-
62+
self.requires("libcurl/[^8]", transitive_headers=True)
63+
self.requires("openssl/[~1.1]")
64+
self.requires("libwebsockets/4.2.0", transitive_headers=True)
65+
self.requires("libyaml/0.2.5")

kubernetes/websocket/wsclient.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
extern "C" {
99
#endif
1010

11-
typedef void (*data_callback_func) (void **, long *);
11+
typedef void (*data_callback_function) (void **, long *);
1212

1313
typedef enum wsc_mode_t {
1414
WSC_MODE_NORMAL = 0,
@@ -23,7 +23,7 @@ typedef struct wsclient_t {
2323
long data_to_send_len;
2424
void *data_received;
2525
long data_received_len;
26-
data_callback_func data_callback_func;
26+
data_callback_function data_callback_func;
2727
int log_mask;
2828
lws_sorted_usec_list_t sul; /* schedule connection retry */
2929
struct lws *wsi; /* related wsi if any */

0 commit comments

Comments
 (0)