blob: 0f10dba6ee853776fddf79e1e826279ce19f9810 (
plain)
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
|
#ifndef ARDOP_LINK_H
#define ARDOP_LINK_H
#include "hybbx/plugin.h"
#include "hybbx/types.h"
#ifdef __cplusplus
extern "C" {
#endif
struct hybbx_service;
typedef hybbx_result_t (*ardop_link_config_fn)(const char *config,
void *config_out);
typedef struct ardop_link_plugin {
const char *name;
hybbx_transport_kind_t kind;
const char *default_link_id;
const char *modem_hint;
ardop_link_config_fn parse_config;
void (*config_free)(void *config_out);
size_t config_size;
} ardop_link_plugin_t;
hybbx_result_t ardop_link_init(struct hybbx_service *service,
const ardop_link_plugin_t *plugin);
void ardop_link_shutdown(const ardop_link_plugin_t *plugin);
hybbx_result_t ardop_link_start(const ardop_link_plugin_t *plugin,
const char *config);
hybbx_result_t ardop_link_stop(const ardop_link_plugin_t *plugin);
#ifdef __cplusplus
}
#endif
#endif /* ARDOP_LINK_H */
|