libnm: add internal header file "nm-core-types-internal.h"
authorThomas Haller <thaller@redhat.com>
Fri, 30 Oct 2015 10:29:56 +0000 (11:29 +0100)
committerThomas Haller <thaller@redhat.com>
Mon, 2 Nov 2015 12:57:02 +0000 (13:57 +0100)
This shall contain type definitions, with similar use
to "nm-core-internal.h".

However, it should contain a minimal set, so that we can include this
header in other headers under "src/", without including the whole
"nm-core-internal.h" in headers.

docs/libnm/Makefile.am
libnm-core/Makefile.libnm-core
libnm-core/nm-core-internal.h
libnm-core/nm-core-types-internal.h [new file with mode: 0644]

index 23631dd..5b96d5a 100644 (file)
@@ -39,6 +39,7 @@ IGNORE_HFILES= \
        nm-dbus-helpers.h \
        nm-core-internal.h \
        nm-core-types.h \
+       nm-core-types-internal.h \
        nm-device-private.h \
        nm-dhcp4-config.h \
        nm-dhcp6-config.h \
index b5e205a..fb201bd 100644 (file)
@@ -51,6 +51,7 @@ libnm_core_private_headers =                  \
        $(core)/crypto.h                        \
        $(core)/nm-connection-private.h         \
        $(core)/nm-core-internal.h              \
+       $(core)/nm-core-types-internal.h    \
        $(core)/nm-keyfile-internal.h       \
        $(core)/nm-keyfile-utils.h          \
        $(core)/nm-property-compare.h           \
index 09e42d2..b78a996 100644 (file)
@@ -67,6 +67,7 @@
 #include "nm-simple-connection.h"
 #include "nm-utils.h"
 #include "nm-vpn-dbus-interface.h"
+#include "nm-core-types-internal.h"
 
 /* NM_SETTING_COMPARE_FLAG_INFERRABLE: check whether a device-generated
  * connection can be replaced by a already-defined connection. This flag only
diff --git a/libnm-core/nm-core-types-internal.h b/libnm-core/nm-core-types-internal.h
new file mode 100644 (file)
index 0000000..5a6d70e
--- /dev/null
@@ -0,0 +1,25 @@
+/* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+
+/*
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301 USA.
+ *
+ * (C) Copyright 2015 Red Hat, Inc.
+ */
+
+#ifndef NM_CORE_TYPES_INTERNAL_H
+#define NM_CORE_TYPES_INTERNAL_H
+
+#endif /* NM_CORE_TYPES_INTERNAL_H */