Vali, a C library for Varlink
Source
Published
TL;DR
AI GeneratedVali is a new C library for Varlink, a simple Remote Procedure Call (RPC) protocol. The library aims to simplify the process of calling methods exposed by services and handling responses. Vali supports code generation from specification files, reducing manual encoding/decoding boilerplate and ensuring type safety. The article explains how to use Vali for both client and service sides, showcasing examples of connecting, calling methods, and handling replies. The library also enables asynchronous handling on the service side to prevent blocking other clients during calls. Vali's design decisions prioritize clarity, consistency, and ease of use for developers implementing Varlink services.