NetworkManager/libnm-util
Thomas Haller e0ca2bdb63 build: extract version macros from "nm-version.h" to new header file "nm-version-macros.h"
For libnm library, "nm-dbus-interface.h" contains defines like the D-Bus
paths of NetworkManager. It is desirable to have this header usable without
having a dependency on "glib.h", for example for a QT application. For that,
commit c0852964a8 removed that dependancy.

For libnm-glib library, the analog to "nm-dbus-interface.h" is
"NetworkManager.h", and the same applies there. Commit
159e827a72 removed that include.
However, that broke build on PackageKit [1] which expected to get the
version macros by including "NetworkManager.h". So at least for libnm-glib,
we need to preserve old behavior so that a user including
"NetworkManager.h" gets the version macros, but not "glib.h".

Extract the version macros to a new header file "nm-version-macros.h".
This header doesn't include "glib.h" and can be included from
"NetworkManager.h". This gives as previous behavior and a glib-free
include.

For libnm we still don't include "nm-version-macros.h" to "nm-dbus-interface.h".
Very few users will actually need the version macros, but not using
libnm.
Users that use libnm, should just include (libnm's) "NetworkManager.h" to
get all headers.
As a special case, a user who doesn't want to use glib/libnm, but still
needs both "nm-dbus-interface.h" and "nm-version-macros.h", can include
them both separately.

[1] https://github.com/hughsie/PackageKit/issues/85

Fixes: 4545a7fe96
(cherry picked from commit 7bf10a75db)
2015-09-30 23:35:52 +02:00
..
tests build: extract version macros from "nm-version.h" to new header file "nm-version-macros.h" 2015-09-30 23:35:52 +02:00
COPYING
crypto.c libnm*: fix library gettext usage 2014-11-13 17:18:42 -05:00
crypto.h libnm-util: Note that nm_utils_deinit() is a no-op 2014-12-04 08:39:54 -05:00
crypto_gnutls.c libnm-util: Note that nm_utils_deinit() is a no-op 2014-12-04 08:39:54 -05:00
crypto_nss.c libnm-util: Note that nm_utils_deinit() is a no-op 2014-12-04 08:39:54 -05:00
libnm-util.pc.in
libnm-util.ver libnm: add function nm_utils_file_search_in_paths() 2014-12-05 11:07:42 +01:00
Makefile.am build: extract version macros from "nm-version.h" to new header file "nm-version-macros.h" 2015-09-30 23:35:52 +02:00
NetworkManager.h build: extract version macros from "nm-version.h" to new header file "nm-version-macros.h" 2015-09-30 23:35:52 +02:00
NetworkManagerVPN.h vpn: allow plugins to indicate 'can-persist' capability 2014-11-06 21:17:34 -06:00
nm-connection.c libnm-util: only unref and don't destroy hash in nm_connection_to_hash() 2015-03-13 11:50:03 +01:00
nm-connection.h
nm-param-spec-specialized.c all: consistently include config.h 2014-11-13 17:18:42 -05:00
nm-param-spec-specialized.h
nm-setting-8021x.c libnm: only call strlen() once in NMSetting8021x:path_to_scheme_value() 2015-07-03 09:24:00 +02:00
nm-setting-8021x.h docs: misc small fixes 2014-12-18 13:46:11 -05:00
nm-setting-adsl.c libnm-core/libnm-util: fix an assertion in adsl setting 2015-09-21 15:48:44 +02:00
nm-setting-adsl.h
nm-setting-bluetooth.c docs: misc small fixes 2014-12-18 13:46:11 -05:00
nm-setting-bluetooth.h
nm-setting-bond.c libnm, libnm-util: move settings doc generation to libnm-core 2014-11-19 09:24:09 -05:00
nm-setting-bond.h libnm: add bonding option "lacp_rate" to NMSettingBond 2014-10-02 16:36:03 +02:00
nm-setting-bridge-port.c libnm, libnm-util: move settings doc generation to libnm-core 2014-11-19 09:24:09 -05:00
nm-setting-bridge-port.h
nm-setting-bridge.c libnm, libnm-util: move settings doc generation to libnm-core 2014-11-19 09:24:09 -05:00
nm-setting-bridge.h
nm-setting-cdma.c libnm: don't check for valid passwords in NMSetting:verify() 2015-03-20 13:07:10 +01:00
nm-setting-cdma.h
nm-setting-connection.c translations: avoid preprocessor strings inside translation macro 2015-02-24 14:32:49 +01:00
nm-setting-connection.h
nm-setting-dcb.c libnm: fix memleak for app_fcoe_mode in NMSettingDcb 2015-03-13 11:50:03 +01:00
nm-setting-dcb.h
nm-setting-generic.c
nm-setting-generic.h
nm-setting-gsm.c libnm: don't check for valid passwords in NMSetting:verify() 2015-03-20 13:07:10 +01:00
nm-setting-gsm.h
nm-setting-infiniband.c libnm, libnm-util: move settings doc generation to libnm-core 2014-11-19 09:24:09 -05:00
nm-setting-infiniband.h
nm-setting-ip4-config.c libnm-util: allow 0.0.0.0/1 route in verify() (rh #1203904) 2015-03-24 12:27:02 +01:00
nm-setting-ip4-config.h libnm: add NMSettingIPConfig:route-metric 2014-11-07 15:19:06 +01:00
nm-setting-ip6-config.c libnm-core/libnm-util: fix an erroneous error message 2015-09-25 16:15:38 +02:00
nm-setting-ip6-config.h libnm: add NMSettingIPConfig:route-metric 2014-11-07 15:19:06 +01:00
nm-setting-olpc-mesh.c libnm*: fix library gettext usage 2014-11-13 17:18:42 -05:00
nm-setting-olpc-mesh.h
nm-setting-ppp.c libnm*: fix library gettext usage 2014-11-13 17:18:42 -05:00
nm-setting-ppp.h
nm-setting-pppoe.c libnm*: fix library gettext usage 2014-11-13 17:18:42 -05:00
nm-setting-pppoe.h
nm-setting-private.h libnm-util: add _nm_setting_get_property() function 2014-10-12 21:17:17 +02:00
nm-setting-serial.c libnm, libnm-util: move settings doc generation to libnm-core 2014-11-19 09:24:09 -05:00
nm-setting-serial.h
nm-setting-team-port.c libnm: fix memleak for config in NMSettingTeamPort 2015-03-13 11:50:03 +01:00
nm-setting-team-port.h
nm-setting-team.c libnm, libnm-util: move settings doc generation to libnm-core 2014-11-19 09:24:09 -05:00
nm-setting-team.h
nm-setting-template.c all: consistently include config.h 2014-11-13 17:18:42 -05:00
nm-setting-template.h
nm-setting-vlan.c libnm-core: mute coverity for RESOURCE_LEAK (CWE-772) in g_return_val_if_fail() 2014-12-16 21:47:01 +01:00
nm-setting-vlan.h
nm-setting-vpn.c libnm, libnm-util: move settings doc generation to libnm-core 2014-11-19 09:24:09 -05:00
nm-setting-vpn.h libnm/libnm-util: add VPN 'persistent' property 2014-11-06 21:16:57 -06:00
nm-setting-wimax.c libnm*: fix library gettext usage 2014-11-13 17:18:42 -05:00
nm-setting-wimax.h
nm-setting-wired.c libnm: fix memleak in nm_setting_wired_get_s390_option() and refactor 2015-03-13 11:50:03 +01:00
nm-setting-wired.h
nm-setting-wireless-security.c libnm: don't check for valid passwords in NMSetting:verify() 2015-03-20 13:07:10 +01:00
nm-setting-wireless-security.h
nm-setting-wireless.c libnm, libnm-util: move settings doc generation to libnm-core 2014-11-19 09:24:09 -05:00
nm-setting-wireless.h
nm-setting.c libnm-core,libnm-util: avoid calling a constructor 2015-06-18 12:11:37 +02:00
nm-setting.h libnm-util: let nm_setting_diff() be symetric not to return properties that are set to default 2014-10-12 21:17:17 +02:00
nm-utils-private.h libnm-util: remove NM_UTIL_PRIVATE_CALL, NMSettingIP4Config:address-labels 2014-08-01 14:34:05 -04:00
nm-utils.c libnm: handle illegal characters in nm_utils_ssid_to_utf8() (rh #1243078) 2015-07-16 14:24:47 +02:00
nm-utils.h libnm: add function nm_utils_file_search_in_paths() 2014-12-05 11:07:42 +01:00
nm-value-transforms.c
nm-version.h build: extract version macros from "nm-version.h" to new header file "nm-version-macros.h" 2015-09-30 23:35:52 +02:00