summaryrefslogtreecommitdiff
path: root/man/sd_event_add_inotify.xml
diff options
context:
space:
mode:
Diffstat (limited to 'man/sd_event_add_inotify.xml')
-rw-r--r--man/sd_event_add_inotify.xml10
1 files changed, 10 insertions, 0 deletions
diff --git a/man/sd_event_add_inotify.xml b/man/sd_event_add_inotify.xml
index ded7a53bf..79d866bf6 100644
--- a/man/sd_event_add_inotify.xml
+++ b/man/sd_event_add_inotify.xml
@@ -156,6 +156,16 @@
</refsect1>
<xi:include href="libelogind-pkgconfig.xml" />
+ <refsect1>
+ <title>Examples</title>
+
+ <example>
+ <title>A simple program that uses inotify to monitor one or two directories</title>
+
+ <programlisting><xi:include href="inotify-watch-tmp.c" parse="text" /></programlisting>
+ </example>
+ </refsect1>
+
<refsect1>
<title>See Also</title>