Skip to content

Commit

Permalink
Use right-aligned API icon for doc link
Browse files Browse the repository at this point in the history
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
  • Loading branch information
troglobit committed Dec 19, 2023
1 parent 1c64698 commit a3d44d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,13 +222,12 @@ make sure the destination directory is writable if you change it. You
can either inspect the file, or use the `watchdogctl` tool.


<a href="https://codedocs.xyz/troglobit/watchdogd/wdog_8h.html"><img
align="right" src="doc/api.png" alt="API" title="API docs"></a>

libwdog API
-----------

<div align="right">
<a href="https://codedocs.xyz/troglobit/watchdogd/wdog_8h.html">🕮 API docs</a>
</div>

To have `watchdogd` supervise a process, it must be instrumented with at
least a "subscribe" and a "kick" API call. Commonly this is achieved by
adding the `wdog_kick()` call to the main event loop.
Expand Down Expand Up @@ -260,9 +259,7 @@ int wdog_kick2 (int id, unsigned int *ack);
int wdog_extend_kick (int id, unsigned int timeout, unsigned int *ack);
```
See [wdog.h](src/wdog.h) or
[codedocs.xyz](https://codedocs.xyz/troglobit/watchdogd/wdog_8h.html)
for detailed API documentation.
See [wdog.h](src/wdog.h) or 🕮 [codedocs.xyz](https://codedocs.xyz/troglobit/watchdogd/wdog_8h.html) for detailed API documentation.
It is highly recommended to use an event loop like libev, [libuev][], or
similar. For such libraries one can simply add a timer callback for the
Expand Down
Binary file added doc/api.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a3d44d2

Please sign in to comment.