summaryrefslogtreecommitdiffstats
path: root/src/genbuiltin
blob: d64bc72537b025336210d8c6dded2e5ca32c7a91 (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 ofono_plugin_desc __ofono_builtin_$i;"
done

echo
echo "static struct ofono_plugin_desc *__ofono_builtin[] = {"

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

echo "  NULL"
echo "};"