FreeCalypso > hg > osmo-playpen
view ctrl-client/simple_ctrl.h @ 22:7bfe3e21eaae default tip
top Makefile: add ctrl-client
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 17 Dec 2023 08:53:35 +0000 |
parents | 2230a763713f |
children |
line wrap: on
line source
#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);