Lines Matching refs:event
39 static void lldp_rx_callback(sd_lldp_rx *lldp_rx, sd_lldp_rx_event_t event, sd_lldp_neighbor *n) { in lldp_rx_callback() argument
41 assert(event >= 0 && event < _SD_LLDP_RX_EVENT_MAX); in lldp_rx_callback()
44 … return (void) log_lldp_rx(lldp_rx, "Received '%s' event.", lldp_rx_event_to_string(event)); in lldp_rx_callback()
46 log_lldp_rx(lldp_rx, "Invoking callback for '%s' event.", lldp_rx_event_to_string(event)); in lldp_rx_callback()
47 lldp_rx->callback(lldp_rx, event, n, lldp_rx->userdata); in lldp_rx_callback()
259 assert_return(lldp_rx->event, -EINVAL); in sd_lldp_rx_start()
271 …r = sd_event_add_io(lldp_rx->event, &lldp_rx->io_event_source, lldp_rx->fd, EPOLLIN, lldp_rx_recei… in sd_lldp_rx_start()
301 int sd_lldp_rx_attach_event(sd_lldp_rx *lldp_rx, sd_event *event, int64_t priority) { in sd_lldp_rx_attach_event() argument
306 assert_return(!lldp_rx->event, -EBUSY); in sd_lldp_rx_attach_event()
308 if (event) in sd_lldp_rx_attach_event()
309 lldp_rx->event = sd_event_ref(event); in sd_lldp_rx_attach_event()
311 r = sd_event_default(&lldp_rx->event); in sd_lldp_rx_attach_event()
327 lldp_rx->event = sd_event_unref(lldp_rx->event); in sd_lldp_rx_detach_event()
334 return lldp_rx->event; in sd_lldp_rx_get_event()
441 assert(lldp_rx->event); in lldp_rx_start_timer()
450 return event_reset_time(lldp_rx->event, &lldp_rx->timer_event_source, in lldp_rx_start_timer()