extern "C" {
#endif
+struct gpiod_chip;
+struct gpiod_line;
+struct gpiod_chip_iter;
+
/**
* @defgroup __common__ Common helper macros
* @{
*/
#define GPIOD_REQUEST_MAX_LINES 64
-/**
- * @brief Opaque structure representing a single GPIO line.
- */
-struct gpiod_line;
-
/**
* @brief Helper structure for storing a set of GPIO line objects.
*
*/
struct gpiod_line * gpiod_line_find_by_name(const char *name) GPIOD_API;
+/**
+ * @brief Get the handle to the GPIO chip controlling this line.
+ * @param line The GPIO line object.
+ * @return Pointer to the GPIO chip handle controlling this line.
+ */
+struct gpiod_chip * gpiod_line_get_chip(struct gpiod_line *line) GPIOD_API;
+
/**
* @defgroup __line_events__ Line event operations
* @{
* Functions and data structures dealing with GPIO chips.
*/
-/**
- * @brief Opaque structure representing a single GPIO line.
- */
-struct gpiod_chip;
-
/**
* @brief Open a gpiochip by path.
* @param path Path to the gpiochip device file.
/* FIXME This shouldn't be needed. Make it private maybe? */
int gpiod_chip_get_fd(struct gpiod_chip *chip) GPIOD_API;
-/**
- * @brief Get the handle to the GPIO chip controlling this line.
- * @param line The GPIO line object.
- * @return Pointer to the GPIO chip handle controlling this line.
- */
-struct gpiod_chip * gpiod_line_get_chip(struct gpiod_line *line) GPIOD_API;
-
/**
* @}
*
* chips and lines.
*/
-/**
- * @brief Opaque structure representing a chip iterator.
- */
-struct gpiod_chip_iter;
-
/**
* @brief Create a new gpiochip iterator.
* @return Pointer to a new chip iterator object or NULL if an error occurred.