/*
- Copyright 2016, 2017 IoT.bzh
+ Copyright (C) 2016-2019 IoT.bzh
author: José Bollo <jose.bollo@iot.bzh>
return 0;
}
+static int new_afid()
+{
+ static int r = 1;
+ return r++;
+}
+
int main(int ac, char **av)
{
struct unitconf conf;
conf.installdir = "INSTALL-DIR";
conf.icondir = "ICONS-DIR";
- conf.port = 666;
+ conf.new_afid = new_afid;
+ conf.base_http_ports = 20000;
rc = unit_generator_open_template(*++av);
if (rc < 0)
error("can't read template %s: %m",*av);