Debian Codegraph @

upstream/debian-trixie/man3/sd-varlink.3

raw
1 '\" t
2 .TH "SD\-VARLINK" "3" "" "systemd 257.13" "sd-varlink"
3 .\" -----------------------------------------------------------------
4 .\" * Define some portability stuff
5 .\" -----------------------------------------------------------------
6 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7 .\" http://bugs.debian.org/507673
8 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
9 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10 .ie \n(.g .ds Aq \(aq
11 .el .ds Aq '
12 .\" -----------------------------------------------------------------
13 .\" * set default formatting
14 .\" -----------------------------------------------------------------
15 .\" disable hyphenation
16 .nh
17 .\" disable justification (adjust text to left margin only)
18 .ad l
19 .\" -----------------------------------------------------------------
20 .\" * MAIN CONTENT STARTS HERE *
21 .\" -----------------------------------------------------------------
22 .SH "NAME"
23 sd-varlink \- APIs for Varlink IPC
24 .SH "SYNOPSIS"
25 .sp
26 .ft B
27 .nf
28 #include <systemd/sd\-varlink\&.h>
29 .fi
30 .ft
31 .HP \w'\fBpkg\-config\ \-\-cflags\ \-\-libs\ libsystemd\fR\ 'u
32 \fBpkg\-config \-\-cflags \-\-libs libsystemd\fR
33 .SH "DESCRIPTION"
34 .PP
35 sd\-varlink\&.h
36 is part of
37 \fBlibsystemd\fR(3)
38 and provides APIs for implementing Varlink IPC clients and services\&. See
39 \m[blue]\fB\%https://varlink.org/\fR\m[]
40 for more information about Varlink IPC\&.
41 .PP
42 Varlink IPC uses
43 \m[blue]\fBJSON\fR\m[]\&\s-2\u[1]\d\s+2
44 as marshalling format\&. The sd\-varlink API relies on the
45 \fBsd-json\fR(3)
46 API for JSON serialization, deserialization and manipulation\&.
47 .PP
48 The
49 \fBvarlinkctl\fR(1)
50 tool makes the functionality implemented by sd\-varlink available from the command line\&.
51 .SH "NOTES"
52 .PP
53 Functions described here are available as a shared library, which can be compiled against and linked to with the
54 \fBlibsystemd\fR\ \&\fBpkg-config\fR(1)
55 file\&.
56 .PP
57 The code described here uses
58 \fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call
59 \fBsetenv\fR(3)
60 from a parallel thread\&. It is recommended to only do calls to
61 \fBsetenv()\fR
62 from an early phase of the program when no other threads have been started\&.
63 .SH "SEE ALSO"
64 .PP
65 \fBsystemd\fR(1), \fBsd-event\fR(3), \fBsd-json\fR(3), \fBvarlinkctl\fR(1), \fBsd-bus\fR(3), \fBpkg-config\fR(1)
66 .SH "NOTES"
67 .IP " 1." 4
68 JSON
69 .RS 4
70 \%https://json.org/
71 .RE