@brief Read next pending event from the GPIO line.
@param line GPIO line object.
@param event Buffer to which the event data will be copied.
@return 0 if the event was read correctly, -1 on error.
@note This function will block if no event was queued for this line.
@brief Read next pending event from the GPIO line. @param line GPIO line object. @param event Buffer to which the event data will be copied. @return 0 if the event was read correctly, -1 on error. @note This function will block if no event was queued for this line.