{
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);
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
#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