diff options
Diffstat (limited to 'src/inc')
| -rw-r--r-- | src/inc/varlink.htm | 8 | ||||
| -rw-r--r-- | src/inc/varlink.md | 5 |
2 files changed, 7 insertions, 6 deletions
diff --git a/src/inc/varlink.htm b/src/inc/varlink.htm index 7de95de..aa1811d 100644 --- a/src/inc/varlink.htm +++ b/src/inc/varlink.htm @@ -5,9 +5,9 @@ properties of DBUS, like the introspection capabilities, and combines them with simple standard tools/technologies in the form of unix sockets and JSON.</p> <p>For C, there is a library by <a href="https://emersion.fr" -target="_blank">emersion</a> called vali, which does pretty much all you -need to get going: <a -href="https://emersion.fr/blog/2025/announcing-vali/" class="uri" +target="_blank">emersion</a> called vali, which does pretty much +everything all you need to get going:<br /> +<a href="https://emersion.fr/blog/2025/announcing-vali/" class="uri" target="_blank">https://emersion.fr/blog/2025/announcing-vali/</a></p> <p>When you have written your service, here is how to interact with it just using standard utils, socat and jq:</p> @@ -26,7 +26,7 @@ just using standard utils, socat and jq:</p> <span id="cb2-6"><a href="#cb2-6" aria-hidden="true" tabindex="-1"></a><span class="st"> }</span></span> <span id="cb2-7"><a href="#cb2-7" aria-hidden="true" tabindex="-1"></a><span class="st"> }</span></span> <span id="cb2-8"><a href="#cb2-8" aria-hidden="true" tabindex="-1"></a><span class="op">EOF</span></span></code></pre></div> -<p>This will return the service interface (if the service listening at +<p>This will return the service interface, if the service listening at the socket actually implements it.</p> <p>Note the use of <code>jq --raw-output0</code>. It is possible to omit the jq invocations, the input JSON data should be followed by a NUL diff --git a/src/inc/varlink.md b/src/inc/varlink.md index bb65dea..9465efe 100644 --- a/src/inc/varlink.md +++ b/src/inc/varlink.md @@ -4,7 +4,8 @@ combines them with simple standard tools/technologies in the form of unix sockets and JSON. For C, there is a library by [emersion][2] called vali, which does pretty much -all you need to get going: https://emersion.fr/blog/2025/announcing-vali/ +everything all you need to get going: +https://emersion.fr/blog/2025/announcing-vali/ When you have written your service, here is how to interact with it just using standard utils, socat and jq: @@ -31,7 +32,7 @@ cat <<-EOF | jq --raw-output0 | socat STDIO UNIX-CONNECT:"$SOCKET" | jq EOF ``` -This will return the service interface (if the service listening at the socket +This will return the service interface, if the service listening at the socket actually implements it. Note the use of `jq --raw-output0`. It is possible to omit the jq invocations, |