summaryrefslogtreecommitdiffstats
path: root/commands/magicvar.c
blob: b208d337dcdbd201a1d6e047c506c19041dca11a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <common.h>
#include <command.h>
#include <magicvar.h>

static int do_magicvar(int argc, char *argv[])
{
	struct magicvar *m;

	for (m = &__barebox_magicvar_start;
			m != &__barebox_magicvar_end;
			m++)
		printf("%-32s %s\n", m->name, m->description);

	return 0;
}

BAREBOX_CMD_START(magicvar)
	.cmd		= do_magicvar,
	.usage		= "List information about magic variables",
BAREBOX_CMD_END