From af653b447a18b97bf5e18c34026b693b1aa24094 Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Sat, 25 Jan 2025 18:07:51 +0100 Subject: [PATCH] change naming heartbeat --- src/kds_s2000w_client.c | 4 ++-- src/kds_s2000w_heartbeat.c | 8 ++++---- src/kds_s2000w_heartbeat.h | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/kds_s2000w_client.c b/src/kds_s2000w_client.c index afd7418..0b3d11a 100644 --- a/src/kds_s2000w_client.c +++ b/src/kds_s2000w_client.c @@ -277,8 +277,8 @@ int kds_s2000w_client_status_session(int64_t sessionid, response* resp) { kds_s2000w_debug_printf(ALL, "kds_s2000w_client_status_session"); - join_thread(); - wait_seconds(&config->heartbeat); + kds_s2000w_heartbeat_join_thread(); + kds_s2000w_heartbeat_wait_seconds(&config->heartbeat); curl_easy_reset(curl); diff --git a/src/kds_s2000w_heartbeat.c b/src/kds_s2000w_heartbeat.c index 19b0d8a..fb449a2 100644 --- a/src/kds_s2000w_heartbeat.c +++ b/src/kds_s2000w_heartbeat.c @@ -4,19 +4,19 @@ pthread_t pwait; -void* _wait_thread(void *args) +void* _kds_s2000w_heartbeat_wait_thread(void *args) { unsigned int* seconds = (unsigned int*) args; sleep(*seconds); return NULL; } -void join_thread() +void kds_s2000w_heartbeat_join_thread() { pthread_join(pwait, NULL); } -void wait_seconds(unsigned int* seconds) +void kds_s2000w_heartbeat_wait_seconds(unsigned int* seconds) { - pthread_create(&pwait, NULL, _wait_thread, seconds); + pthread_create(&pwait, NULL, _kds_s2000w_heartbeat_wait_thread, seconds); } \ No newline at end of file diff --git a/src/kds_s2000w_heartbeat.h b/src/kds_s2000w_heartbeat.h index cafff2b..55be263 100644 --- a/src/kds_s2000w_heartbeat.h +++ b/src/kds_s2000w_heartbeat.h @@ -1,7 +1,7 @@ #ifndef KDS_S2000W_HEARTBEAT_H #define KDS_S2000W_HEARTBEAT_H -void join_thread(); -void wait_seconds(unsigned int* seconds); +void kds_s2000w_heartbeat_join_thread(); +void kds_s2000w_heartbeat_wait_seconds(unsigned int* seconds); #endif \ No newline at end of file -- 2.39.5