1.1 --- a/libfsclient/include/fsclient/file.h Sat May 15 23:38:39 2021 +0200
1.2 +++ b/libfsclient/include/fsclient/file.h Tue May 18 00:55:20 2021 +0200
1.3 @@ -37,6 +37,10 @@
1.4
1.5 l4_cap_idx_t ref;
1.6
1.7 + /* Notification IRQ reference. */
1.8 +
1.9 + l4_cap_idx_t irq;
1.10 +
1.11 /* Mapped memory accessing a file region. */
1.12
1.13 char *memory;
1.14 @@ -59,6 +63,10 @@
1.15
1.16 int has_size;
1.17
1.18 + /* Blocking accesses. */
1.19 +
1.20 + int can_block;
1.21 +
1.22 } file_t;
1.23
1.24
1.25 @@ -103,6 +111,12 @@
1.26 void file_data_read(file_t *file, char *buf, offset_t to_transfer);
1.27 void file_data_write(file_t *file, char *buf, offset_t to_transfer);
1.28
1.29 +/* Notification functions. */
1.30 +
1.31 +long file_notify_subscribe(file_t *file, flags_t flags);
1.32 +long file_notify_unsubscribe(file_t *file);
1.33 +long file_notify_wait(file_t *file);
1.34 +
1.35
1.36
1.37 /* Pipe operations. */
1.38 @@ -115,6 +129,8 @@
1.39 long pipe_next(file_t *pipe);
1.40 long pipe_written(file_t *pipe, offset_t size);
1.41
1.42 +
1.43 +
1.44 EXTERN_C_END
1.45
1.46 // vim: tabstop=2 expandtab shiftwidth=2