afm-unit: Fix http port multi allocation
[src/app-framework-main.git] / src / wgtpkg-unit.h
index dc011e1..fc91204 100644 (file)
@@ -1,5 +1,5 @@
 /*
- Copyright 2016, 2017 IoT.bzh
+ Copyright (C) 2016, 2017, 2018 IoT.bzh
 
  author: José Bollo <jose.bollo@iot.bzh>
 
@@ -47,7 +47,7 @@ struct unitdesc {
 struct unitconf {
        const char *installdir;
        const char *icondir;
-       int port;
+       int (*port)();
 };
 
 struct generatedesc {