summaryrefslogtreecommitdiff
path: root/src/systemd/nm-sd.h
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2016-03-11 10:25:40 +0100
committerThomas Haller <thaller@redhat.com>2016-03-11 11:02:12 +0100
commitaed3c810b3681fa38000487f519660a338bc063e (patch)
tree080613a6399809f22c40f07dff09e0ae1dadc81c /src/systemd/nm-sd.h
parente1e428b21e56cad3c50419e3fe2806dbbb21c976 (diff)
downloadNetworkManager-aed3c810b3681fa38000487f519660a338bc063e.tar.gz
systemd: split "nm-sd.h" out of "nm-sd-adapt.h"
Now we have: "nm-sd.h" is a header file of NetworkManager with utilities related to systemd. It can be used anywhere freely. Also, systemd headers that are considered public API (like "sd-event.h") can be used without restrictions. When compiling the systemd sources, we always must include "nm-sd-adapt.h" as first. Similarly, systemd headers must not include "nm-sd-adapt.h", because they are either public (in which case the adapter is not needed) or they are internal (in which case they are themself included via a systemd source). Sometimes, we must internal API (like "dhcp-lease-internal.h"). In this case, we also must include "nm-sd-adapt.h".
Diffstat (limited to 'src/systemd/nm-sd.h')
-rw-r--r--src/systemd/nm-sd.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/systemd/nm-sd.h b/src/systemd/nm-sd.h
new file mode 100644
index 0000000000..888d44ab0c
--- /dev/null
+++ b/src/systemd/nm-sd.h
@@ -0,0 +1,25 @@
+/* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+/* This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2, or (at your option)
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Copyright (C) 2014 - 2016 Red Hat, Inc.
+ */
+
+#ifndef __NM_SD_H__
+#define __NM_SD_H__
+
+guint nm_sd_event_attach_default (void);
+
+#endif /* __NM_SD_H__ */
+