Crinit -- Configurable Rootfs Init
elosio.h File Reference

(2023-08-28, commit: d6a6eec)

Header related to elos connection. More...

#include <stdbool.h>
Include dependency graph for elosio.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CRINIT_ELOSIO_FEATURE_NAME   "elos"
 

Functions

int crinitElosioTaskAdded (struct crinitTask_t *task)
 
int crinitElosioActivate (struct crinitTaskDB_t *taskDb, bool sl)
 

Detailed Description

Header related to elos connection.

Macro Definition Documentation

◆ CRINIT_ELOSIO_FEATURE_NAME

#define CRINIT_ELOSIO_FEATURE_NAME   "elos"

Function Documentation

◆ crinitElosioActivate()

int crinitElosioActivate ( struct crinitTaskDB_t taskDb,
bool  sl 
)

Specify if Elos should be used.

By default, Crinit will not connect to elos. If this is set to true, however, Crinit will connect to the elos daemon.

Parameters
taskDbTask database to be informed if event occurs.
sltrue if elos should be used, false otherwise.
Returns
Returns 0 on success, -1 otherwise.

◆ crinitElosioTaskAdded()

int crinitElosioTaskAdded ( struct crinitTask_t task)

Hook which will be invoked if a new task has been added and will register the elos filters for this task.

Parameters
taskTask that has been added to elos.
Returns
Returns 0 on success, -1 otherwise.