summaryrefslogtreecommitdiff
path: root/src/genbuiltin
blob: 8b6f047612ec62b9d9a38d62d1a29650be12315b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

for i in $*
do
	echo "extern struct bluetooth_plugin_desc __bluetooth_builtin_$i;"
done

echo
echo "static struct bluetooth_plugin_desc *__bluetooth_builtin[] = {"

for i in $*
do
	echo "  &__bluetooth_builtin_$i,"
done

echo "  NULL"
echo "};"