Make clock hook configurable

This commit is contained in:
Tau
2019-10-14 23:18:18 -04:00
parent 6bdd1f90bc
commit e918795445
13 changed files with 103 additions and 37 deletions

View File

@ -3,6 +3,7 @@
#include <assert.h>
#include "platform/amvideo.h"
#include "platform/clock.h"
#include "platform/config.h"
#include "platform/dns.h"
#include "platform/hwmon.h"
@ -31,6 +32,12 @@ HRESULT platform_hook_init_alls(
return hr;
}
hr = clock_hook_init(&cfg->clock);
if (FAILED(hr)) {
return hr;
}
hr = dns_platform_hook_init(&cfg->dns);
if (FAILED(hr)) {
@ -85,6 +92,12 @@ HRESULT platform_hook_init_nu(
return hr;
}
hr = clock_hook_init(&cfg->clock);
if (FAILED(hr)) {
return hr;
}
hr = dns_platform_hook_init(&cfg->dns);
if (FAILED(hr)) {