diff options
author | Donald Sharp <sharpd@nvidia.com> | 2023-03-07 20:14:41 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2023-03-24 13:32:17 +0100 |
commit | cd9d0537411d0a74cd19ae36f6d3716c8ccbb4c1 (patch) | |
tree | f97009b8971d71b4c05cbc0d00b98608efd40e44 /ldpd | |
parent | *: Convert thread_master_XXX functions to event_master_XXX (diff) | |
download | frr-cd9d0537411d0a74cd19ae36f6d3716c8ccbb4c1.tar.xz frr-cd9d0537411d0a74cd19ae36f6d3716c8ccbb4c1.zip |
*: Convert `struct event_master` to `struct event_loop`
Let's find a better name for it.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'ldpd')
-rw-r--r-- | ldpd/ldp_snmp.c | 4 | ||||
-rw-r--r-- | ldpd/ldp_zebra.c | 2 | ||||
-rw-r--r-- | ldpd/ldpd.c | 4 | ||||
-rw-r--r-- | ldpd/ldpd.h | 6 |
4 files changed, 8 insertions, 8 deletions
diff --git a/ldpd/ldp_snmp.c b/ldpd/ldp_snmp.c index 7ddd7bc88..ed391ac60 100644 --- a/ldpd/ldp_snmp.c +++ b/ldpd/ldp_snmp.c @@ -1173,7 +1173,7 @@ static int ldp_snmp_nbr_state_change(struct nbr * nbr, int old_state) return 0; } -static int ldp_snmp_init(struct event_master *tm) +static int ldp_snmp_init(struct event_loop *tm) { hook_register(agentx_enabled, ldp_snmp_agentx_enabled); @@ -1182,7 +1182,7 @@ static int ldp_snmp_init(struct event_master *tm) return 0; } -static int ldp_snmp_register_mib(struct event_master *tm) +static int ldp_snmp_register_mib(struct event_loop *tm) { static int registered = 0; diff --git a/ldpd/ldp_zebra.c b/ldpd/ldp_zebra.c index 1773d9c11..02cd1678e 100644 --- a/ldpd/ldp_zebra.c +++ b/ldpd/ldp_zebra.c @@ -690,7 +690,7 @@ static zclient_handler *const ldp_handlers[] = { [ZEBRA_OPAQUE_MESSAGE] = ldp_zebra_opaque_msg_handler, }; -void ldp_zebra_init(struct event_master *master) +void ldp_zebra_init(struct event_loop *master) { if_zapi_callbacks(ldp_ifp_create, ldp_ifp_up, ldp_ifp_down, ldp_ifp_destroy); diff --git a/ldpd/ldpd.c b/ldpd/ldpd.c index 8d173c608..3c616d4a8 100644 --- a/ldpd/ldpd.c +++ b/ldpd/ldpd.c @@ -77,7 +77,7 @@ static pid_t lde_pid; static struct frr_daemon_info ldpd_di; -DEFINE_HOOK(ldp_register_mib, (struct event_master * tm), (tm)); +DEFINE_HOOK(ldp_register_mib, (struct event_loop * tm), (tm)); static void ldp_load_module(const char *name) { @@ -104,7 +104,7 @@ enum ldpd_process ldpd_process; #define LDP_VTY_PORT 2612 /* Master of threads. */ -struct event_master *master; +struct event_loop *master; /* ldpd privileges */ static zebra_capabilities_t _caps_p [] = diff --git a/ldpd/ldpd.h b/ldpd/ldpd.h index 3d0615cc0..9de3ea4a5 100644 --- a/ldpd/ldpd.h +++ b/ldpd/ldpd.h @@ -883,11 +883,11 @@ const char *pw_type_name(uint16_t); const char *pw_error_code(uint8_t); /* quagga */ -extern struct event_master *master; +extern struct event_loop *master; extern char ctl_sock_path[MAXPATHLEN]; /* ldp_zebra.c */ -void ldp_zebra_init(struct event_master *m); +void ldp_zebra_init(struct event_loop *m); void ldp_zebra_destroy(void); int ldp_sync_zebra_send_state_update(struct ldp_igp_sync_if_state *); int ldp_zebra_send_rlfa_labels(struct zapi_rlfa_response * @@ -904,7 +904,7 @@ void ldp_zebra_regdereg_zebra_info(bool want_register); (__IPV6_ADDR_MC_SCOPE(a) == __IPV6_ADDR_SCOPE_INTFACELOCAL)) #endif -DECLARE_HOOK(ldp_register_mib, (struct event_master * tm), (tm)); +DECLARE_HOOK(ldp_register_mib, (struct event_loop * tm), (tm)); extern void ldp_agentx_enabled(void); |