Adapt to aml api changes
parent
ed52288aca
commit
64449b249a
|
@ -16,6 +16,7 @@ prefix = get_option('prefix')
|
|||
|
||||
c_args = [
|
||||
'-D_GNU_SOURCE',
|
||||
'-DAML_UNSTABLE_API=1',
|
||||
]
|
||||
|
||||
if buildtype != 'debug' and buildtype != 'debugoptimized'
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue