2018-06-04 02:26:20 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
struct simple_ctrl_handle;
|
|
|
|
|
2018-06-04 09:52:39 +00:00
|
|
|
struct simple_ctrl_handle *simple_ctrl_open(void *ctx, const char *host, uint16_t dport,
|
|
|
|
uint32_t tout_msec);
|
2018-06-04 02:26:20 +00:00
|
|
|
void simple_ctrl_close(struct simple_ctrl_handle *sch);
|
|
|
|
|
2018-06-04 10:04:38 +00:00
|
|
|
void simple_ctrl_set_timeout(struct simple_ctrl_handle *sch, uint32_t tout_msec);
|
|
|
|
struct msgb *simple_ctrl_receive(struct simple_ctrl_handle *sch);
|
|
|
|
|
2018-06-04 02:26:20 +00:00
|
|
|
char *simple_ctrl_get(struct simple_ctrl_handle *sch, const char *var);
|
|
|
|
int simple_ctrl_set(struct simple_ctrl_handle *sch, const char *var, const char *val);
|
|
|
|
|