Update copyright dates
[src/app-framework-binder.git] / src / main-afs-supervisor.c
index 6b79c9c..9b8b6d1 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2016-2019 "IoT.bzh"
+ * Copyright (C) 2015-2020 "IoT.bzh"
  * Author José Bollo <jose.bollo@iot.bzh>
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -34,7 +34,7 @@
 #include "afb-session.h"
 
 #include "afs-supervisor.h"
-#include "afs-config.h"
+#include "afs-args.h"
 
 #include "verbose.h"
 #include "jobs.h"
@@ -46,7 +46,7 @@
 #endif
 
 /* the main config */
-struct afs_config *main_config;
+struct afs_args *main_config;
 
 /* the main apiset */
 struct afb_apiset *main_apiset;
@@ -144,7 +144,7 @@ static void start(int signum, void *arg)
        }
 
        /* configure the daemon */
-       if (afb_session_init(main_config->nbSessionMax, main_config->cntxTimeout, main_config->token)) {
+       if (afb_session_init(main_config->nbSessionMax, main_config->cntxTimeout)) {
                ERROR("initialisation of session manager failed");
                goto error;
        }
@@ -212,7 +212,7 @@ error:
 int main(int ac, char **av)
 {
        /* scan arguments */
-       main_config = afs_config_parse_arguments(ac, av);
+       main_config = afs_args_parse(ac, av);
        if (main_config->name) {
                verbose_set_name(main_config->name, 0);
                process_name_set_name(main_config->name);