mirror of https://gerrit.osmocom.org/osmo-sysmon
ctrl: separate config structure
Moving configuration data from anonymous struct into shared header as a preparation for ctrl logging improvements in follow-up patches. Change-Id: I3520e14ca6e1b8e270dbd4b1bf2378fe486991ce Related: SYS#2655
This commit is contained in:
parent
f41973eeb2
commit
18428bb4cf
|
@ -38,14 +38,7 @@
|
|||
struct ctrl_client {
|
||||
/* links to osysmon.ctrl_clients */
|
||||
struct llist_head list;
|
||||
struct {
|
||||
/* name of this CTRL client */
|
||||
const char *name;
|
||||
/* remote host/IP */
|
||||
const char *remote_host;
|
||||
/* remote CTRL port */
|
||||
uint16_t remote_port;
|
||||
} cfg;
|
||||
struct ctrl_cfg cfg;
|
||||
struct simple_ctrl_handle *sch;
|
||||
/* list of ctrl_client_get_var objects */
|
||||
struct llist_head get_vars;
|
||||
|
|
|
@ -2,6 +2,16 @@
|
|||
|
||||
#include <stdint.h>
|
||||
|
||||
/* a CTRL client config */
|
||||
struct ctrl_cfg {
|
||||
/* name of this CTRL client */
|
||||
const char *name;
|
||||
/* remote host/IP */
|
||||
const char *remote_host;
|
||||
/* remote CTRL port */
|
||||
uint16_t remote_port;
|
||||
};
|
||||
|
||||
struct simple_ctrl_handle;
|
||||
|
||||
struct simple_ctrl_handle *simple_ctrl_open(void *ctx, const char *host, uint16_t dport,
|
||||
|
|
Loading…
Reference in New Issue