shared: expose size of nm_ethtool_data array in header

This commit is contained in:
Thomas Haller 2020-03-06 09:22:36 +01:00
parent a8442c8243
commit d1d50324a4

View file

@ -79,7 +79,7 @@ typedef struct {
NMEthtoolID id;
} NMEthtoolData;
extern const NMEthtoolData *const nm_ethtool_data[/*_NM_ETHTOOL_ID_NUM + NULL-terminated*/];
extern const NMEthtoolData *const nm_ethtool_data[_NM_ETHTOOL_ID_NUM + 1];
const NMEthtoolData *nm_ethtool_data_get_by_optname (const char *optname);