event_list_get_first()

Updated: October 26, 2022

Return the first item in an event list

Synopsis:

#include <gestures/event_list.h>
event_list_item_t* event_list_get_first(struct event_list *list)

Arguments:

list
A pointer to an event list.

Library:

libgestures

Description:

This function gets the first element in an event list. Use the macro STAILQ_NEXT(element, field) to walk the list, where element is a pointer to an event list item, and field is the link member of the event list item.

Returns:

A pointer to the first item in the event list.