Add an inline routine allowing to retrieve the number of lines held by
a line bulk object.
Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
return bulk->lines[offset];
}
+/**
+ * @brief Retrieve the number of GPIO lines held by this line bulk object.
+ * @param bulk Line bulk object.
+ * @return Number of lines held by this line bulk.
+ */
+static inline unsigned int
+gpiod_line_bulk_num_lines(struct gpiod_line_bulk *bulk)
+{
+ return bulk->num_lines;
+}
+
/**
* @}
*