libnm: add libnm/libnm-core (part 1)

System Internals / NetworkManager - Dan Winship [gnome.org] - 1 August 2014 13:34 UTC

This commit begins creating the new "libnm", which will replace libnm-util and libnm-glib.

The main reason for the libnm-util/libnm-glib split is that the daemon needs to link to libnm-util (to get NMSettings, NMConnection, etc), but can't link to libnm-glib (because it uses many of the same type names as the NetworkManager daemon. eg, NMDevice). So the daemon links to only libnm-util, but basically all clients link to both.

With libnm, there will be only a single client-visible library, and NetworkManager will internally link against a private "libnm-core" containing the parts that used to be in libnm-util.

(The "libnm-core" parts still need to be in their own directory so that the daemon can see those header files without also seeing the ones in libnm/ that conflict with its own headers.)

[This commit just copies the source code from libnm-util/ to libnm-core/, and libnm-glib/ to libnm/:

mkdir -p libnm-core/tests/ mkdir -p libnm/tests/ cp libnm-util/*.[ch] libnm-util/nm-version.h.in libnm-core/ rm -f libnm-core/nm-version.h libnm-core/nm-setting-template.[ch] libnm-core/nm-utils-enum-types.[ch] cp libnm-util/tests/*.[ch] libnm-core/tests/ cp libnm-glib/*.[ch] libnm/ rm -f libnm/libnm_glib.[ch] libnm/libnm-glib-test.c libnm/nm-glib-enum-types.[ch] cp libnm-glib/tests/*.[ch] libnm/tests/

]

d595f78 libnm: add libnm/libnm-core (part 1)
libnm-core/NetworkManager.h | 563 +++++
libnm-core/NetworkManagerVPN.h | 302 +++
libnm-core/crypto.c | 749 ++++++
libnm-core/crypto.h | 145 ++
libnm-core/crypto_gnutls.c | 493 ++++
libnm-core/crypto_nss.c | 562 +++++
libnm-core/nm-connection.c | 2189 +++++++++++++++++
libnm-core/nm-connection.h | 256 ++
libnm-core/nm-param-spec-specialized.c | 972 ++++++++
libnm-core/nm-param-spec-specialized.h | 43 +
libnm-core/nm-setting-8021x.c | 3706 +++++++++++++++++++++++++++++
libnm-core/nm-setting-8021x.h | 297 +++
libnm-core/nm-setting-adsl.c | 465 ++++
libnm-core/nm-setting-adsl.h | 96 +
libnm-core/nm-setting-bluetooth.c | 297 +++
libnm-core/nm-setting-bluetooth.h | 100 +
libnm-core/nm-setting-bond.c | 804 +++++++
libnm-core/nm-setting-bond.h | 117 +
libnm-core/nm-setting-bridge-port.c | 304 +++
libnm-core/nm-setting-bridge-port.h | 86 +
libnm-core/nm-setting-bridge.c | 576 +++++
libnm-core/nm-setting-bridge.h | 102 +
libnm-core/nm-setting-cdma.c | 356 +++
libnm-core/nm-setting-cdma.h | 87 +
libnm-core/nm-setting-connection.c | 1333 +++++++++++
libnm-core/nm-setting-connection.h | 151 ++
libnm-core/nm-setting-dcb.c | 1207 ++++++++++
libnm-core/nm-setting-dcb.h | 187 ++
libnm-core/nm-setting-generic.c | 100 +
libnm-core/nm-setting-generic.h | 78 +
libnm-core/nm-setting-gsm.c | 723 ++++++
libnm-core/nm-setting-gsm.h | 204 ++
libnm-core/nm-setting-infiniband.c | 472 ++++
libnm-core/nm-setting-infiniband.h | 85 +
libnm-core/nm-setting-ip4-config.c | 1895 +++++++++++++++
libnm-core/nm-setting-ip4-config.h | 229 ++
libnm-core/nm-setting-ip6-config.c | 1683 +++++++++++++
libnm-core/nm-setting-ip6-config.h | 256 ++
libnm-core/nm-setting-olpc-mesh.c | 274 +++
libnm-core/nm-setting-olpc-mesh.h | 82 +
libnm-core/nm-setting-ppp.c | 823 +++++++
libnm-core/nm-setting-ppp.h | 115 +
libnm-core/nm-setting-pppoe.c | 342 +++
libnm-core/nm-setting-pppoe.h | 87 +
libnm-core/nm-setting-private.h | 125 +
libnm-core/nm-setting-serial.c | 320 +++
libnm-core/nm-setting-serial.h | 89 +
libnm-core/nm-setting-team-port.c | 184 ++
libnm-core/nm-setting-team-port.h | 79 +
libnm-core/nm-setting-team.c | 254 ++
libnm-core/nm-setting-team.h | 81 +
libnm-core/nm-setting-vlan.c | 841 +++++++
libnm-core/nm-setting-vlan.h | 156 ++
libnm-core/nm-setting-vpn.c | 870 +++++++
libnm-core/nm-setting-vpn.h | 115 +
libnm-core/nm-setting-wimax.c | 262 ++
libnm-core/nm-setting-wimax.h | 73 +
libnm-core/nm-setting-wired.c | 1032 ++++++++
libnm-core/nm-setting-wired.h | 131 +
libnm-core/nm-setting-wireless-security.c | 1603 +++++++++++++
libnm-core/nm-setting-wireless-security.h | 178 ++
libnm-core/nm-setting-wireless.c | 1245 ++++++++++
libnm-core/nm-setting-wireless.h | 174 ++
libnm-core/nm-setting.c | 1445 +++++++++++
libnm-core/nm-setting.h | 317 +++
libnm-core/nm-utils-private.h | 65 +
libnm-core/nm-utils.c | 2531 ++++++++++++++++++++
libnm-core/nm-utils.h | 180 ++
libnm-core/nm-value-transforms.c | 593 +++++
libnm-core/nm-version.h.in | 123 +
libnm-core/tests/test-crypto.c | 384 +++
libnm-core/tests/test-general.c | 2681 +++++++++++++++++++++
libnm-core/tests/test-secrets.c | 754 ++++++
libnm-core/tests/test-setting-8021x.c | 443 ++++
libnm-core/tests/test-setting-dcb.c | 328 +++
libnm-core/tests/test-settings-defaults.c | 134 ++
libnm/nm-access-point.c | 673 ++++++
libnm/nm-access-point.h | 96 +
libnm/nm-active-connection.c | 851 +++++++
libnm/nm-active-connection.h | 105 +
libnm/nm-client.c | 2442 +++++++++++++++++++
libnm/nm-client.h | 255 ++
libnm/nm-dbus-helpers-private.h | 36 +
libnm/nm-dbus-helpers.c | 99 +
libnm/nm-device-adsl.c | 242 ++
libnm/nm-device-adsl.h | 75 +
libnm/nm-device-bond.c | 347 +++
libnm/nm-device-bond.h | 82 +
libnm/nm-device-bridge.c | 359 +++
libnm/nm-device-bridge.h | 84 +
libnm/nm-device-bt.c | 373 +++
libnm/nm-device-bt.h | 90 +
libnm/nm-device-ethernet.c | 392 +++
libnm/nm-device-ethernet.h | 87 +
libnm/nm-device-generic.c | 284 +++
libnm/nm-device-generic.h | 79 +
libnm/nm-device-infiniband.c | 311 +++
libnm/nm-device-infiniband.h | 82 +
libnm/nm-device-modem.c | 291 +++
libnm/nm-device-modem.h | 79 +
libnm/nm-device-olpc-mesh.c | 326 +++
libnm/nm-device-olpc-mesh.h | 81 +
libnm/nm-device-private.h | 26 +
libnm/nm-device-team.c | 353 +++
libnm/nm-device-team.h | 85 +
libnm/nm-device-vlan.c | 353 +++
libnm/nm-device-vlan.h | 86 +
libnm/nm-device-wifi.c | 838 +++++++
libnm/nm-device-wifi.h | 115 +
libnm/nm-device-wimax.c | 755 ++++++
libnm/nm-device-wimax.h | 97 +
libnm/nm-device.c | 2310 ++++++++++++++++++
libnm/nm-device.h | 186 ++
libnm/nm-dhcp4-config.c | 215 ++
libnm/nm-dhcp4-config.h | 66 +
libnm/nm-dhcp6-config.c | 215 ++
libnm/nm-dhcp6-config.h | 66 +
libnm/nm-ip4-config.c | 467 ++++
libnm/nm-ip4-config.h | 79 +
libnm/nm-ip6-config.c | 493 ++++
libnm/nm-ip6-config.h | 81 +
libnm/nm-object-cache.c | 88 +
libnm/nm-object-cache.h | 37 +
libnm/nm-object-private.h | 92 +
libnm/nm-object.c | 1445 +++++++++++
libnm/nm-object.h | 91 +
libnm/nm-remote-connection-private.h | 33 +
libnm/nm-remote-connection.c | 963 ++++++++
libnm/nm-remote-connection.h | 149 ++
libnm/nm-remote-settings.c | 1566 ++++++++++++
libnm/nm-remote-settings.h | 162 ++
libnm/nm-secret-agent.c | 1077 +++++++++
libnm/nm-secret-agent.h | 307 +++
libnm/nm-types-private.h | 37 +
libnm/nm-types.c | 419 ++++
libnm/nm-types.h | 54 +
libnm/nm-vpn-connection.c | 268 +++
libnm/nm-vpn-connection.h | 73 +
libnm/nm-vpn-plugin-ui-interface.c | 247 ++
libnm/nm-vpn-plugin-ui-interface.h | 229 ++
libnm/nm-vpn-plugin-utils.c | 189 ++
libnm/nm-vpn-plugin-utils.h | 39 +
libnm/nm-vpn-plugin.c | 1066 +++++++++
libnm/nm-vpn-plugin.h | 175 ++
libnm/nm-wimax-nsp.c | 334 +++
libnm/nm-wimax-nsp.h | 82 +
libnm/tests/common.c | 119 +
libnm/tests/common.h | 31 +
libnm/tests/test-nm-client.c | 898 +++++++
libnm/tests/test-remote-settings-client.c | 456 ++++
150 files changed, 67616 insertions(+)

Upstream: cgit.freedesktop.org


  • Share