FreeCalypso > hg > osmo-playpen
annotate 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 |
rev | line source |
---|---|
20
2230a763713f
ctrl-client: import from osmo-sysmon git repo
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 #pragma once |
2230a763713f
ctrl-client: import from osmo-sysmon git repo
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 |
2230a763713f
ctrl-client: import from osmo-sysmon git repo
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 #include <stdint.h> |
2230a763713f
ctrl-client: import from osmo-sysmon git repo
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 |
2230a763713f
ctrl-client: import from osmo-sysmon git repo
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 struct simple_ctrl_handle; |
2230a763713f
ctrl-client: import from osmo-sysmon git repo
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 |
2230a763713f
ctrl-client: import from osmo-sysmon git repo
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 struct simple_ctrl_handle *simple_ctrl_open(void *ctx, const char *host, uint16_t dport, |
2230a763713f
ctrl-client: import from osmo-sysmon git repo
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 uint32_t tout_msec); |
2230a763713f
ctrl-client: import from osmo-sysmon git repo
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 void simple_ctrl_close(struct simple_ctrl_handle *sch); |
2230a763713f
ctrl-client: import from osmo-sysmon git repo
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 |
2230a763713f
ctrl-client: import from osmo-sysmon git repo
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 void simple_ctrl_set_timeout(struct simple_ctrl_handle *sch, uint32_t tout_msec); |
2230a763713f
ctrl-client: import from osmo-sysmon git repo
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 struct msgb *simple_ctrl_receive(struct simple_ctrl_handle *sch); |
2230a763713f
ctrl-client: import from osmo-sysmon git repo
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 |
2230a763713f
ctrl-client: import from osmo-sysmon git repo
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 char *simple_ctrl_get(struct simple_ctrl_handle *sch, const char *var); |
2230a763713f
ctrl-client: import from osmo-sysmon git repo
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 int simple_ctrl_set(struct simple_ctrl_handle *sch, const char *var, const char *val); |
2230a763713f
ctrl-client: import from osmo-sysmon git repo
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 |