minstrel-rcd: add work-in-progress minstrel remote control daemon
[openwrt/staging/nbd.git] / package / utils / minstrel-rcd / src / main.c
1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright (C) 2021 Felix Fietkau <nbd@nbd.name> */
3 #include <libubox/usock.h>
4 #include <libubox/ustream.h>
5 #include "rcd.h"
6
7 int main(int argc, char **argv)
8 {
9 int ch;
10
11 uloop_init();
12
13 while ((ch = getopt(argc, argv, "h:")) != -1) {
14 switch (ch) {
15 case 'h':
16 rcd_server_add(optarg);
17 break;
18 }
19 }
20
21 rcd_phy_init();
22 rcd_server_init();
23 uloop_run();
24
25 uloop_end();
26
27 return 0;
28 }