diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-09-01 23:10:46 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-09-01 23:10:46 +0200 |
commit | 12e2ddf54f6bfa77f6e65151b04199ac98361c9a (patch) | |
tree | f7a1d863e1297abf7928be8d8bfb7ce88bffa3a4 /src/bus.c | |
parent | update dist (diff) | |
download | bus-12e2ddf54f6bfa77f6e65151b04199ac98361c9a.tar.gz bus-12e2ddf54f6bfa77f6e65151b04199ac98361c9a.tar.bz2 bus-12e2ddf54f6bfa77f6e65151b04199ac98361c9a.tar.xz |
improve header file
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/bus.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -540,7 +540,7 @@ absolute_time_to_delta_time(struct timespec *delta, const struct timespec *absol * @return 0 on success, -1 on error */ int -bus_create(const char *file, int flags, char **out_file) +bus_create(const char *restrict file, int flags, char **restrict out_file) { int fd = -1, saved_errno; bus_t bus; @@ -679,7 +679,7 @@ fail: * @return 0 on success, -1 on error */ int -bus_open(bus_t *bus, const char *file, int flags) +bus_open(bus_t *restrict bus, const char *restrict file, int flags) { int saved_errno; char *line = NULL; @@ -830,7 +830,6 @@ fail: release_semaphore(bus, X, SEM_UNDO); errno = saved_errno; return -1; - } @@ -858,7 +857,7 @@ fail: * @return 0 on success, -1 on error */ int -bus_read(const bus_t *bus, int (*callback)(const char *message, void *user_data), void *user_data) +bus_read(const bus_t *restrict bus, int (*callback)(const char *message, void *user_data), void *user_data) { int r, state = 0, saved_errno; if (release_semaphore(bus, S, SEM_UNDO) == -1) @@ -924,7 +923,7 @@ done: * it most be a predictable clock * @return 0 on success, -1 on error */ -int bus_read_timed(const bus_t *bus, int (*callback)(const char *message, void *user_data), +int bus_read_timed(const bus_t *restrict bus, int (*callback)(const char *message, void *user_data), void *user_data, const struct timespec *timeout, clockid_t clockid) { int r, state = 0, saved_errno; |