EDGESEC  0.1.0-alpha.0+sha.ca29a8277b72f80785649ea9ef9cd7edf642d939
Secure router - reference implementation
Functions
runctl.h File Reference

File containing the definition of the service runners. More...

#include <stdbool.h>
#include <inttypes.h>
#include "config.h"
#include "supervisor/supervisor_config.h"
Include dependency graph for runctl.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int init_context (struct app_config *app_config, struct supervisor_context *ctx)
 Initialises the app context structure. More...
 
int run_ctl (struct app_config *app_config, struct eloop_data *eloop)
 Executes the edgesec WiFi networking engine. Creates subnets and starts the supervisor, radius servers and hostapd service. More...
 

Detailed Description

File containing the definition of the service runners.

Author
Alexandru Mereacre
Date
2020

Function Documentation

◆ init_context()

int init_context ( struct app_config app_config,
struct supervisor_context ctx 
)

Initialises the app context structure.

Parameters
app_configThe app config structure
ctxThe app context structure
Returns
0 on success, -1 otherwise

◆ run_ctl()

int run_ctl ( struct app_config app_config,
struct eloop_data *  eloop 
)

Executes the edgesec WiFi networking engine. Creates subnets and starts the supervisor, radius servers and hostapd service.

Parameters
app_configThe app configuration structures, setting WiFi network config params.
eloopThe eloop structure, if NULL initialises a new one
Returns
0 if succes, -1 if a service fails to start.