1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright (c) 2016, Olivier MATZ <zer0@droids-corp.org>
10 #include <ecoli_init.h>
12 static struct ec_init_list init_list = TAILQ_HEAD_INITIALIZER(init_list);
14 /* register an init function */
15 void ec_init_register(struct ec_init *init)
17 TAILQ_INSERT_TAIL(&init_list, init, next);
24 /* XXX sort list by priority */
26 TAILQ_FOREACH(init, &init_list, next) {