]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
change naming heartbeat
authorBastian Dehn <hhaalo@arcor.de>
Sat, 25 Jan 2025 17:07:51 +0000 (18:07 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Sat, 25 Jan 2025 17:07:51 +0000 (18:07 +0100)
src/kds_s2000w_client.c
src/kds_s2000w_heartbeat.c
src/kds_s2000w_heartbeat.h

index afd7418cc4b37ee12f28d06ebeedfc3a314312b3..0b3d11af8e35011f710e30bc26b26b3c242f83af 100644 (file)
@@ -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);
 
index 19b0d8af983901d2865dd1faa25e303cd31a59db..fb449a2e1a821fd5faa70872d6ad914c4159192e 100644 (file)
@@ -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
index cafff2b9fe45ec7811fb840540fe73b5e504fbd5..55be263d660232f4ed94d3259d25dce45d068789 100644 (file)
@@ -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