Adapt to aml api changes

pull/23/head
Andri Yngvason 2022-10-29 12:02:17 +00:00
parent ed52288aca
commit 64449b249a
2 changed files with 7 additions and 1 deletions

View File

@ -16,6 +16,7 @@ prefix = get_option('prefix')
c_args = [
'-D_GNU_SOURCE',
'-DAML_UNSTABLE_API=1',
]
if buildtype != 'debug' and buildtype != 'debugoptimized'

View File

@ -809,7 +809,7 @@ static void create_canary_ticker(void)
last_canary_tick = gettime_us();
struct aml* aml = aml_get_default();
struct aml_ticker* ticker = aml_ticker_new(CANARY_TICK_PERIOD / 1000ULL,
struct aml_ticker* ticker = aml_ticker_new(CANARY_TICK_PERIOD,
on_canary_tick, NULL, NULL);
aml_start(aml, ticker);
aml_unref(ticker);
@ -905,6 +905,11 @@ int main(int argc, char* argv[])
if (n_args >= 2)
port = atoi(argv[optind + 1]);
if (aml_unstable_abi_version != AML_UNSTABLE_API) {
fprintf(stderr, "libaml is incompatible with current build of wlvncc!\n");
abort();
}
struct aml* aml = aml_new();
if (!aml)
return 1;