mirror of
https://git.sr.ht/~thestr4ng3r/chiaki
synced 2025-08-21 14:03:11 -07:00
ServerItemWidget Styling
This commit is contained in:
parent
43926a6f3f
commit
a7ff2fef3f
10 changed files with 92 additions and 23 deletions
|
@ -198,6 +198,7 @@ CHIAKI_EXPORT ChiakiErrorCode chiaki_discovery_thread_start(ChiakiDiscoveryThrea
|
|||
|
||||
CHIAKI_EXPORT ChiakiErrorCode chiaki_discovery_thread_stop(ChiakiDiscoveryThread *thread)
|
||||
{
|
||||
chiaki_stop_pipe_stop(&thread->stop_pipe);
|
||||
ChiakiErrorCode err = chiaki_thread_join(&thread->thread, NULL);
|
||||
if(err != CHIAKI_ERR_SUCCESS)
|
||||
return err;
|
||||
|
|
|
@ -28,6 +28,7 @@ static void discovery_service_report_state(ChiakiDiscoveryService *service);
|
|||
|
||||
CHIAKI_EXPORT ChiakiErrorCode chiaki_discovery_service_init(ChiakiDiscoveryService *service, ChiakiDiscoveryServiceOptions *options, ChiakiLog *log)
|
||||
{
|
||||
service->log = log;
|
||||
service->options = *options;
|
||||
service->ping_index = 0;
|
||||
|
||||
|
@ -222,6 +223,8 @@ static void discovery_service_host_received(ChiakiDiscoveryHost *host, void *use
|
|||
goto r2con;
|
||||
}
|
||||
|
||||
CHIAKI_LOGI(service->log, "Discovery Service detected new host with id %s", host->host_id);
|
||||
|
||||
change = true;
|
||||
index = service->hosts_count++;
|
||||
memset(&service->hosts[index], 0, sizeof(ChiakiDiscoveryHost));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue