NetworkManager/shared/nm-base
Thomas Haller 789347e0d6
shared: copy file instead of symlink "nm-ethtool-utils.h"
"nm-ethtool-utils.h" is part of public API in libnm(-core). It is also
used by shared/nm-base, which must have no dependency on libnm-core.

This was previously solved by symlinking the file. I find that error
prone, because the user might edit one file, without realizing that the
other file also changes.

Instead, copy the file and have it twice. Note that we have a unit test
which checks that both files are (and state) the same.

Copy+paste is a valid way of reusing code. By checking that the copy
does not diverge from the original, the downsides of copy+paste are
mitigated.
2021-02-09 12:38:19 +01:00
..
nm-base.h ethtool: add more offload features that kernel supports 2021-02-08 15:11:11 +01:00
nm-ethtool-base.c all: add "nm-glib-aux/nm-default-glib-i18n-lib.h" as replacement for "nm-default.h" 2021-02-09 12:38:17 +01:00
nm-ethtool-base.h libnm,shared: move nm-ethtool helper to "libnm-base" 2021-01-15 11:32:41 +01:00
nm-ethtool-utils-base.h shared: copy file instead of symlink "nm-ethtool-utils.h" 2021-02-09 12:38:19 +01:00