1.1 --- a/libfsclient/include/fsclient/file.h Sat Aug 14 18:41:57 2021 +0200
1.2 +++ b/libfsclient/include/fsclient/file.h Tue Aug 17 23:44:36 2021 +0200
1.3 @@ -38,10 +38,6 @@
1.4
1.5 l4_cap_idx_t ref;
1.6
1.7 - /* Notification endpoint reference. */
1.8 -
1.9 - l4_cap_idx_t notifier;
1.10 -
1.11 /* Mapped memory accessing a file region. */
1.12
1.13 char *memory;
1.14 @@ -72,6 +68,17 @@
1.15
1.16
1.17
1.18 +/* Notifier types. */
1.19 +
1.20 +typedef enum
1.21 +{
1.22 + NOTIFIER_TASK = 0,
1.23 + NOTIFIER_THREAD = 1,
1.24 +
1.25 +} notifier_t;
1.26 +
1.27 +
1.28 +
1.29 /* Filesystem operations. */
1.30
1.31 long file_open_for_user(user_t user, l4_cap_idx_t server, l4_cap_idx_t *opener);
1.32 @@ -118,8 +125,8 @@
1.33
1.34 /* Notification functions. */
1.35
1.36 -long file_notify_subscribe(file_t *file, notify_flags_t flags);
1.37 -long file_notify_unsubscribe(file_t *file);
1.38 +long file_notify_subscribe(file_t *file, notify_flags_t flags, notifier_t notifier_type);
1.39 +long file_notify_unsubscribe(file_t *file, notifier_t notifier_type);
1.40 long file_notify_wait_file(file_t *file);
1.41 long file_notify_wait_files(file_t **file);
1.42