-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathagent_loader.h
More file actions
44 lines (35 loc) · 922 Bytes
/
Copy pathagent_loader.h
File metadata and controls
44 lines (35 loc) · 922 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/**
* @file agent_loader.h
* @brief Agent loader module header
* @version 1.0.0
* @license MIT
*/
#ifndef AGENT_LOADER_H
#define AGENT_LOADER_H
#include "edgeplug_runtime.h"
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Load agent from CBOR-encoded data
*/
edgeplug_status_t agent_loader_load(const uint8_t* cbor_data, size_t data_size,
const edgeplug_manifest_t* manifest);
/**
* @brief Hot-swap to a new agent
*/
edgeplug_status_t agent_loader_hotswap(const uint8_t* new_agent_cbor, size_t new_agent_size,
const edgeplug_manifest_t* new_manifest);
/**
* @brief Get active agent data
*/
const uint8_t* agent_loader_get_active_agent(size_t* size);
/**
* @brief Get current manifest
*/
const edgeplug_manifest_t* agent_loader_get_manifest(void);
#ifdef __cplusplus
}
#endif
#endif /* AGENT_LOADER_H */