FreeCalypso > hg > osmo-playpen
diff ctrl-client/simple_ctrl.h @ 20:2230a763713f
ctrl-client: import from osmo-sysmon git repo
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 17 Dec 2023 08:43:13 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ctrl-client/simple_ctrl.h Sun Dec 17 08:43:13 2023 +0000 @@ -0,0 +1,16 @@ +#pragma once + +#include <stdint.h> + +struct simple_ctrl_handle; + +struct simple_ctrl_handle *simple_ctrl_open(void *ctx, const char *host, uint16_t dport, + uint32_t tout_msec); +void simple_ctrl_close(struct simple_ctrl_handle *sch); + +void simple_ctrl_set_timeout(struct simple_ctrl_handle *sch, uint32_t tout_msec); +struct msgb *simple_ctrl_receive(struct simple_ctrl_handle *sch); + +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); +