mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-17 05:30:35 +01:00
platform/trivial: add OBJECT_TYPE_MAX enum value
(cherry picked from commit ee64b8585b)
This commit is contained in:
parent
87b49c088e
commit
7518d9a1ce
1 changed files with 2 additions and 1 deletions
|
|
@ -327,6 +327,7 @@ typedef enum {
|
|||
OBJECT_TYPE_IP4_ROUTE,
|
||||
OBJECT_TYPE_IP6_ROUTE,
|
||||
__OBJECT_TYPE_LAST,
|
||||
OBJECT_TYPE_MAX = __OBJECT_TYPE_LAST - 1,
|
||||
} ObjectType;
|
||||
|
||||
static ObjectType
|
||||
|
|
@ -1437,7 +1438,7 @@ to_string_object (NMPlatform *platform, struct nl_object *obj)
|
|||
|
||||
/* Object and cache manipulation */
|
||||
|
||||
static const char *signal_by_type_and_status[__OBJECT_TYPE_LAST] = {
|
||||
static const char *signal_by_type_and_status[OBJECT_TYPE_MAX + 1] = {
|
||||
[OBJECT_TYPE_LINK] = NM_PLATFORM_SIGNAL_LINK_CHANGED,
|
||||
[OBJECT_TYPE_IP4_ADDRESS] = NM_PLATFORM_SIGNAL_IP4_ADDRESS_CHANGED,
|
||||
[OBJECT_TYPE_IP6_ADDRESS] = NM_PLATFORM_SIGNAL_IP6_ADDRESS_CHANGED,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue