summaryrefslogtreecommitdiff
path: root/lib/zclient.h
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2023-11-23 15:18:44 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2023-11-23 15:20:13 +0100
commitcc90c54b36818a13774edfed8d7ac9a6e36c9373 (patch)
treeeaffcbfa386a03cc25b0e47979c8956f204cb6a4 /lib/zclient.h
parenta13d2933b755e159f78251d6a790eb153c6500fb (diff)
*: add `zclient_options_sync`
... and use it instead of fiddling with the `.synchronous` field. (Make it const while at it.) Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/zclient.h')
-rw-r--r--lib/zclient.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/zclient.h b/lib/zclient.h
index 8332f2a057..c8dff18bb9 100644
--- a/lib/zclient.h
+++ b/lib/zclient.h
@@ -834,7 +834,8 @@ struct zclient_options {
bool synchronous;
};
-extern struct zclient_options zclient_options_default;
+extern const struct zclient_options zclient_options_default;
+extern const struct zclient_options zclient_options_sync;
/* link layer representation for GRE like interfaces
* ip_in is the underlay IP, ip_out is the tunnel dest
@@ -881,7 +882,7 @@ int zclient_neigh_ip_encode(struct stream *s, uint16_t cmd, union sockunion *in,
extern uint32_t zclient_get_nhg_start(uint32_t proto);
extern struct zclient *zclient_new(struct event_loop *m,
- struct zclient_options *opt,
+ const struct zclient_options *opt,
zclient_handler *const *handlers,
size_t n_handlers);