mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-01 06:48:00 +02:00
platform/trivial: add OBJECT_TYPE_MAX enum value
This commit is contained in:
parent
4c9a836774
commit
ee64b8585b
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
|
||||
|
|
@ -1439,7 +1440,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