This commit changes main() to call N2's init/exit functions.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
#include <sys/stat.h>
#include <string.h>
+#include "ne-handler.h"
#include "ne-conf.h"
static const char *helpmsg = "\
}
/** @todo NYI Start up required modules (ne-*) */
+ if (init_ne_handler() < 0) {
+ fprintf(stderr, "Fail to init NE host handler\n");
+ return 1;
+ }
while (1) {
/** @todo NYI Health checks for threads and device adaptations? */
usleep(200000L);
+
+ /** @todo add some break condition */
}
+
+ exit_ne_handler();
+
return 0;
}