1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 #pragma once
3
4 #include <stdio.h>
5
6 #include "macro.h"
7
8 int info_main(int argc, char *argv[], void *userdata);
9 int trigger_main(int argc, char *argv[], void *userdata);
10 int settle_main(int argc, char *argv[], void *userdata);
11 int control_main(int argc, char *argv[], void *userdata);
12 int monitor_main(int argc, char *argv[], void *userdata);
13 int hwdb_main(int argc, char *argv[], void *userdata);
14 int test_main(int argc, char *argv[], void *userdata);
15 int builtin_main(int argc, char *argv[], void *userdata);
16 int wait_main(int argc, char *argv[], void *userdata);
17 int lock_main(int argc, char *argv[], void *userdata);
18
print_version(void)19 static inline int print_version(void) {
20 /* Dracut relies on the version being a single integer */
21 puts(STRINGIFY(PROJECT_VERSION));
22 return 0;
23 }
24