Is there anyone out there familiar with libgpiod who could answer this question:
Are there any draw backs to using ctxless function rather than calling individual function to manipulate chip lines (or in general)? For example, to turn on a line, I might write something like:
struct gpiod_chip* chip = gpiod_chip_open_by_name("gpiochip2");
struct gpiod_line* line = gpiod_chip_get_line(chip, 10);
gpiod_line_request_output(line, "foo", 0);
gpiod_chip_close(chip);
or I could simply use a single call:
gpiod_ctxless_set_value("gpiochip2", 10, 1, false, "foo", NULL, NULL);
When would you use one over the other?