diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-04-27 01:23:38 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-04-27 01:23:38 +0200 |
commit | d775b3388f82b16068111ddbf3f4fe1c0b1cedb3 (patch) | |
tree | 8499e75c6e7f89d2908e1c9e11c4f619fcd99c95 /src/bus.h | |
parent | add nowait option to bus_write (diff) | |
download | bus-d775b3388f82b16068111ddbf3f4fe1c0b1cedb3.tar.gz bus-d775b3388f82b16068111ddbf3f4fe1c0b1cedb3.tar.bz2 bus-d775b3388f82b16068111ddbf3f4fe1c0b1cedb3.tar.xz |
add nowait option to bus_poll
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/bus.h')
-rw-r--r-- | src/bus.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -101,7 +101,8 @@ typedef struct bus /** * Non-zero if and only if `bus_poll` has not been - * called since the last `bus_poll_start` + * called since the last `bus_poll_start`, or + * if `bus_poll` failed during reading */ int first_poll; } bus_t; @@ -190,7 +191,7 @@ int bus_read(const bus_t *bus, int (*callback)(const char *message, void *user_d int bus_poll_start(bus_t *bus); int bus_poll_stop(const bus_t *bus); -const char *bus_poll(bus_t *bus, int falgs); +const char *bus_poll(bus_t *bus, int flags); |