aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Vanbesien <tvanbesi@proton.me>2026-02-19 00:43:50 +0100
committerThomas Vanbesien <tvanbesi@proton.me>2026-02-19 00:47:37 +0100
commit37c0fee672afd3701ea3ed87958da4d548bf1be3 (patch)
treeaacc516639d96c73e01331020220aec7b8443318
parent9fe1d1f41069eda254e11746512d6be032db81d5 (diff)
downloadBobinkCOpcUa-37c0fee672afd3701ea3ed87958da4d548bf1be3.tar.gz
BobinkCOpcUa-37c0fee672afd3701ea3ed87958da4d548bf1be3.zip
Rename print_endpoint to print_endpoint_description and fix clone URL
-rw-r--r--CMakeLists.txt2
-rw-r--r--readme.md4
-rw-r--r--src/bobink_opcua_client.c2
-rw-r--r--src/common.h3
4 files changed, 6 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1d9f7a8..9be6ab9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,5 +1,5 @@
# ======================================
-# OPC UA Discovery — Top-level build
+# BobinkCOpcUa — Top-level build
# ======================================
#
# Builds three programs that demonstrate OPC UA discovery.
diff --git a/readme.md b/readme.md
index e0bf631..29ee7a7 100644
--- a/readme.md
+++ b/readme.md
@@ -19,8 +19,8 @@ A small C project that demonstrates OPC UA server discovery using the
Clone the repository with its submodule:
```sh
-git clone --recursive https://git.tvcloud.fr/opcua_c
-cd opcua_c
+git clone --recursive https://git.tvcloud.fr/BobinkCOpcUa
+cd BobinkCOpcUa
```
### Certificates
diff --git a/src/bobink_opcua_client.c b/src/bobink_opcua_client.c
index 79edef6..b7c004c 100644
--- a/src/bobink_opcua_client.c
+++ b/src/bobink_opcua_client.c
@@ -104,7 +104,7 @@ _s_op_get_endpoints (UA_Client *client, const char *url)
}
for (size_t i = 0; i < array_size; i++)
- print_endpoint (&array[i], i);
+ print_endpoint_description (&array[i], i);
UA_Array_delete (array, array_size, &UA_TYPES[UA_TYPES_ENDPOINTDESCRIPTION]);
return EXIT_SUCCESS;
diff --git a/src/common.h b/src/common.h
index 66bf905..69afecc 100644
--- a/src/common.h
+++ b/src/common.h
@@ -289,6 +289,7 @@ print_application_description (const UA_ApplicationDescription *description,
* @param endpoint The endpoint description to print.
* @param index Display index (e.g. position in the GetEndpoints result array).
*/
-void print_endpoint (const UA_EndpointDescription *endpoint, size_t index);
+void print_endpoint_description (const UA_EndpointDescription *endpoint,
+ size_t index);
#endif /* DISCOVERY_COMMON_H */