1.1 --- a/libfsclient/include/fsclient/file.h Thu Feb 16 23:36:52 2023 +0100
1.2 +++ b/libfsclient/include/fsclient/file.h Fri Feb 17 18:39:43 2023 +0100
1.3 @@ -41,7 +41,7 @@
1.4
1.5 EXTERN_C_BEGIN
1.6
1.7 -/* File access abstraction. */
1.8 +/* File access abstraction compatible with notifiable_base_t. */
1.9
1.10 typedef struct
1.11 {
1.12 @@ -71,9 +71,9 @@
1.13
1.14 notify_flags_t can_block;
1.15
1.16 - /* Saved notifications. */
1.17 + /* Notification structure. */
1.18
1.19 - notify_flags_t notifications;
1.20 + notifiable_t notifiable;
1.21
1.22 /* Flags indicated when opening the file. */
1.23
1.24 @@ -148,6 +148,9 @@
1.25
1.26 /* Notification functions. */
1.27
1.28 +notifiable_t *file_notifiable(file_t *file);
1.29 +notify_flags_t file_notifications(file_t *file);
1.30 +
1.31 void file_notify_close(file_notifier_t *notifier);
1.32 file_notifier_t *file_notify_local(void);
1.33 file_notifier_t *file_notify_task(void);