diff options
Diffstat (limited to '')
| -rw-r--r-- | site/index.html | 2 | ||||
| -rw-r--r-- | site/notes.html | 2 | ||||
| -rw-r--r-- | site/varlink.html | 10 | ||||
| -rw-r--r-- | src/inc/varlink.htm | 8 | ||||
| -rw-r--r-- | src/inc/varlink.md | 5 |
5 files changed, 14 insertions, 13 deletions
diff --git a/site/index.html b/site/index.html index 582fed3..cefc6b3 100644 --- a/site/index.html +++ b/site/index.html @@ -61,7 +61,7 @@ </ul> </main> <footer> -Edited on 2025-06-09 <a href="https://git.sr.ht/~robertgzr/site/tree/master/src/inc/index.htm" target="_blank">[src]</a> +Edited on 2025-10-23 <a href="https://git.sr.ht/~robertgzr/site/tree/master/src/inc/index.htm" target="_blank">[src]</a> <a href="mailto:~robertgzr/public-inbox@lists.sr.ht">[comments]</a> <br> <b>robertgzr</b> diff --git a/site/notes.html b/site/notes.html index 625e636..7ac90b8 100644 --- a/site/notes.html +++ b/site/notes.html @@ -43,7 +43,7 @@ </ul> </main> <footer> -Edited on 2025-10-06 <a href="https://git.sr.ht/~robertgzr/site/tree/master/src/inc/notes.htm" target="_blank">[src]</a> +Edited on 2025-10-23 <a href="https://git.sr.ht/~robertgzr/site/tree/master/src/inc/notes.htm" target="_blank">[src]</a> <a href="mailto:~robertgzr/public-inbox@lists.sr.ht">[comments]</a> <br> <b>robertgzr</b> diff --git a/site/varlink.html b/site/varlink.html index 184fdb3..985025e 100644 --- a/site/varlink.html +++ b/site/varlink.html @@ -39,9 +39,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> @@ -60,14 +60,14 @@ 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 byte.</p> </main> <footer> -Edited on 1970-01-01 <a href="https://git.sr.ht/~robertgzr/site/tree/master/src/inc/varlink.htm" target="_blank">[src]</a> +Edited on 2025-10-23 <a href="https://git.sr.ht/~robertgzr/site/tree/master/src/inc/varlink.htm" target="_blank">[src]</a> <a href="mailto:~robertgzr/public-inbox@lists.sr.ht">[comments]</a> <br> <b>robertgzr</b> 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, |