1.1 --- a/docs/wiki/Client_Library Sat Dec 09 01:26:55 2023 +0100
1.2 +++ b/docs/wiki/Client_Library Sat Dec 09 01:27:19 2023 +0100
1.3 @@ -228,39 +228,39 @@
1.4 a given resource via a notifier object:
1.5
1.6 {{{
1.7 -long client_subscribe(file_t *file, notify_flags_t flags, file_notifier_t *notifier);
1.8 +long client_subscribe(file_t *file, notify_flags_t flags, notifier_t *notifier);
1.9 }}}
1.10
1.11 A notifier object can be common throughout all threads in a task, being
1.12 obtained using the following function:
1.13
1.14 {{{
1.15 -file_notifier_t *client_notifier_task();
1.16 +notifier_t *client_notifier_task();
1.17 }}}
1.18
1.19 Alternatively, a local notifier can be created for use within a thread:
1.20
1.21 {{{
1.22 -file_notifier_t *client_notifier_local();
1.23 +notifier_t *client_notifier_local();
1.24 }}}
1.25
1.26 Local notifiers must be closed when they are no longer needed:
1.27
1.28 {{{
1.29 -void client_notifier_close(file_notifier_t *notifier);
1.30 +void client_notifier_close(notifier_t *notifier);
1.31 }}}
1.32
1.33 When notifications are no longer needed, an unsubscribe operation can be
1.34 invoked:
1.35
1.36 {{{
1.37 -long client_unsubscribe(file_t *file, file_notifier_t *notifier);
1.38 +long client_unsubscribe(file_t *file, notifier_t *notifier);
1.39 }}}
1.40
1.41 ==== Example ====
1.42
1.43 {{{
1.44 -file_notifier_t *notifier = client_notifier_local();
1.45 +notifier_t *notifier = client_notifier_local();
1.46 file_t *directory = client_open(filename, O_DIRECTORY);
1.47
1.48 if (client_opened(directory))