1 <?xml version='
1.0'
?> <!--*-nxml-*-->
2 <!DOCTYPE refentry PUBLIC
"-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
4 <!-- SPDX-License-Identifier: LGPL-2.1-or-later -->
6 <refentry id=
"libsystemd"
7 xmlns:
xi=
"http://www.w3.org/2001/XInclude">
10 <title>libsystemd
</title>
11 <productname>systemd
</productname>
15 <refentrytitle>libsystemd
</refentrytitle>
16 <manvolnum>3</manvolnum>
20 <refname>libsystemd
</refname>
21 <refpurpose>Functions for implementing services and interacting with systemd
</refpurpose>
26 #include
<systemd/sd-bus.h
>
27 #include
<systemd/sd-bus-vtable.h
>
28 #include
<systemd/sd-bus-protocol.h
>
29 #include
<systemd/sd-daemon.h
>
30 #include
<systemd/sd-device.h
>
31 #include
<systemd/sd-event.h
>
32 #include
<systemd/sd-gpt.h
>
33 #include
<systemd/sd-hwdb.h
>
34 #include
<systemd/sd-id128.h
>
35 #include
<systemd/sd-journal.h
>
36 #include
<systemd/sd-login.h
>
37 #include
<systemd/sd-messages.h
>
38 #include
<systemd/sd-path.h
>
42 <command>pkg-config --cflags --libs libsystemd
</command>
47 <title>Description
</title>
49 <para>The
<filename>libsystemd
</filename> library provides functions that allow interacting with various
50 interfaces provided by the
51 <citerefentry><refentrytitle>systemd
</refentrytitle><manvolnum>1</manvolnum></citerefentry> service
52 manager, as well as various other functions and constants useful for implementing services in
56 <citerefentry><refentrytitle>sd-bus
</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
57 <citerefentry><refentrytitle>sd-bus-errors
</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
58 <citerefentry><refentrytitle>sd-daemon
</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
59 <citerefentry><refentrytitle>sd-device
</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
60 <citerefentry><refentrytitle>sd-event
</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
61 <citerefentry><refentrytitle>sd-hwdb
</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
62 <citerefentry><refentrytitle>sd-id128
</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
63 <citerefentry><refentrytitle>sd-journal
</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
65 <citerefentry><refentrytitle>sd-login
</refentrytitle><manvolnum>3</manvolnum></citerefentry>
66 for information about different parts of the library interface.
</para>
70 <title>Interface stability
</title>
72 <para>Strict backwards-compatibility is maintained for the API (application programming interface) and
73 ABI (application binary interface). Symbol versioning is used, with symbols only added and never removed.
77 <xi:include href=
"libsystemd-pkgconfig.xml" />
80 <title>See Also
</title>
81 <para><simplelist type=
"inline">
82 <member><citerefentry><refentrytitle>systemd
</refentrytitle><manvolnum>1</manvolnum></citerefentry></member>
83 <member><citerefentry><refentrytitle>libudev
</refentrytitle><manvolnum>1</manvolnum></citerefentry></member>
84 <member><citerefentry project='die-net'
><refentrytitle>pkg-config
</refentrytitle><manvolnum>1</manvolnum></citerefentry></member>
85 <member><ulink url=
"https://systemd.io/PORTABILITY_AND_STABILITY/">Interface Portability and Stability Promise
</ulink></member>