diff options
| author | Michael Biebl <biebl@debian.org> | 2024-05-05 00:07:30 +0200 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2024-05-05 00:07:30 +0200 |
| commit | 34bb501be08aa2b313d88e67d6e0a7e0a3f9cfa6 (patch) | |
| tree | 4e6220877828be4c6f261de09ec0cb2d80e32389 /src/libnm-base | |
| parent | bba2e4b4de668db525cbfdfc35292e5a0b51671a (diff) | |
New upstream version 1.47.90 upstream/1.47.90
Diffstat (limited to 'src/libnm-base')
| -rw-r--r-- | src/libnm-base/README.md | 20 | ||||
| -rw-r--r-- | src/libnm-base/nm-base.h | 4 |
2 files changed, 22 insertions, 2 deletions
diff --git a/src/libnm-base/README.md b/src/libnm-base/README.md new file mode 100644 index 00000000..8eb2119a --- /dev/null +++ b/src/libnm-base/README.md @@ -0,0 +1,20 @@ +libnm-base +========== + +A static helper library with network/NetworkManager specific +code. + +Contrary to libnm-glib-aux, this does not contain general purpose +helpers, but code that is more specific about NetworkManager. + +This is the most low-level dependency of this kind. Most NetworkManager +specific code will directly or indirectly link with this. + +As this is a static library, there is no problem with dragging this into your +binary/library, if your application already depends on libnm-glib-aux (and glib). + +Dependencies: + + - glib + - [../libnm-std-aux/](../libnm-std-aux/) + - [../libnm-glib-aux/](../libnm-glib-aux/) diff --git a/src/libnm-base/nm-base.h b/src/libnm-base/nm-base.h index e1cc2733..4b1bff54 100644 --- a/src/libnm-base/nm-base.h +++ b/src/libnm-base/nm-base.h @@ -147,8 +147,8 @@ typedef enum { _NM_ETHTOOL_ID_NUM = (_NM_ETHTOOL_ID_LAST - _NM_ETHTOOL_ID_FIRST + 1), } NMEthtoolID; -#define _NM_ETHTOOL_ID_FEATURE_AS_IDX(ethtool_id) ((ethtool_id) -_NM_ETHTOOL_ID_FEATURE_FIRST) -#define _NM_ETHTOOL_ID_COALESCE_AS_IDX(ethtool_id) ((ethtool_id) -_NM_ETHTOOL_ID_COALESCE_FIRST) +#define _NM_ETHTOOL_ID_FEATURE_AS_IDX(ethtool_id) ((ethtool_id) - _NM_ETHTOOL_ID_FEATURE_FIRST) +#define _NM_ETHTOOL_ID_COALESCE_AS_IDX(ethtool_id) ((ethtool_id) - _NM_ETHTOOL_ID_COALESCE_FIRST) typedef enum { NM_ETHTOOL_TYPE_UNKNOWN, |