| 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 --> |
| 5 |
|
| 6 |
<refentry id="libsystemd" |
| 7 |
xmlns:xi="http://www.w3.org/2001/XInclude"> |
| 8 |
|
| 9 |
<refentryinfo> |
| 10 |
<title>libsystemd</title> |
| 11 |
<productname>systemd</productname> |
| 12 |
</refentryinfo> |
| 13 |
|
| 14 |
<refmeta> |
| 15 |
<refentrytitle>libsystemd</refentrytitle> |
| 16 |
<manvolnum>3</manvolnum> |
| 17 |
</refmeta> |
| 18 |
|
| 19 |
<refnamediv> |
| 20 |
<refname>libsystemd</refname> |
| 21 |
<refpurpose>Functions for implementing services and interacting with systemd</refpurpose> |
| 22 |
</refnamediv> |
| 23 |
|
| 24 |
<refsynopsisdiv> |
| 25 |
<programlisting> |
| 26 |
#include <systemd/sd-bus.h> |
| 27 |
#include <systemd/sd-daemon.h> |
| 28 |
#include <systemd/sd-device.h> |
| 29 |
#include <systemd/sd-event.h> |
| 30 |
#include <systemd/sd-gpt.h> |
| 31 |
#include <systemd/sd-hwdb.h> |
| 32 |
#include <systemd/sd-id128.h> |
| 33 |
#include <systemd/sd-journal.h> |
| 34 |
#include <systemd/sd-json.h> |
| 35 |
#include <systemd/sd-login.h> |
| 36 |
#include <systemd/sd-messages.h> |
| 37 |
#include <systemd/sd-path.h> |
| 38 |
#include <systemd/sd-varlink.h> |
| 39 |
</programlisting> |
| 40 |
|
| 41 |
<cmdsynopsis> |
| 42 |
<command>pkg-config --cflags --libs libsystemd</command> |
| 43 |
</cmdsynopsis> |
| 44 |
</refsynopsisdiv> |
| 45 |
|
| 46 |
<refsect1> |
| 47 |
<title>Description</title> |
| 48 |
|
| 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 |
| 53 |
general.</para> |
| 54 |
|
| 55 |
<para>See |
| 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>, |
| 64 |
<citerefentry><refentrytitle>sd-json</refentrytitle><manvolnum>3</manvolnum></citerefentry>, |
| 65 |
<citerefentry><refentrytitle>sd-login</refentrytitle><manvolnum>3</manvolnum></citerefentry>, |
| 66 |
<citerefentry><refentrytitle>sd-path</refentrytitle><manvolnum>3</manvolnum></citerefentry>, |
| 67 |
and |
| 68 |
<citerefentry><refentrytitle>sd-varlink</refentrytitle><manvolnum>3</manvolnum></citerefentry> |
| 69 |
for information about different parts of the library interface.</para> |
| 70 |
</refsect1> |
| 71 |
|
| 72 |
<refsect1> |
| 73 |
<title>Interface stability</title> |
| 74 |
|
| 75 |
<para>Strict backwards-compatibility is maintained for the API (application programming interface) and |
| 76 |
ABI (application binary interface). Symbol versioning is used, with symbols only added and never removed. |
| 77 |
</para> |
| 78 |
</refsect1> |
| 79 |
|
| 80 |
<xi:include href="libsystemd-pkgconfig.xml" /> |
| 81 |
|
| 82 |
<refsect1> |
| 83 |
<title>See Also</title> |
| 84 |
<para><simplelist type="inline"> |
| 85 |
<member><citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry></member> |
| 86 |
<member><citerefentry><refentrytitle>libudev</refentrytitle><manvolnum>3</manvolnum></citerefentry></member> |
| 87 |
<member><citerefentry project='die-net'><refentrytitle>pkg-config</refentrytitle><manvolnum>1</manvolnum></citerefentry></member> |
| 88 |
<member><ulink url="https://systemd.io/PORTABILITY_AND_STABILITY/">Interface Portability and Stability Promise</ulink></member> |
| 89 |
</simplelist></para> |
| 90 |
</refsect1> |
| 91 |
|
| 92 |
</refentry> |