From 4ae5f7f76b87d645bbdf771b6b96de456e734281 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Thu, 1 Dec 2022 18:58:00 +0100 Subject: [PATCH] platform: move "struct _NMPlatformObject" to "nmp-plobj.h" All our platform structs should move there. For now, just move struct _NMPlatformObject because it will be needed there. --- src/libnm-platform/nm-platform.h | 6 ------ src/libnm-platform/nmp-plobj.h | 8 ++++++++ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/libnm-platform/nm-platform.h b/src/libnm-platform/nm-platform.h index 36df3db94..2d7214999 100644 --- a/src/libnm-platform/nm-platform.h +++ b/src/libnm-platform/nm-platform.h @@ -149,12 +149,6 @@ GBytes *nmp_link_address_get_as_bytes(const NMPLinkAddress *addr); #define NM_PLATFORM_LINK_OTHER_NETNS (-1) -struct _NMPlatformObject { - /* the object type has no fields of its own, it is only used to having - * a special pointer type that can be used to indicate "any" type. */ - char _dummy_don_t_use_me; -}; - struct _NMPlatformObjWithIfindex { __NMPlatformObjWithIfindex_COMMON; }; diff --git a/src/libnm-platform/nmp-plobj.h b/src/libnm-platform/nmp-plobj.h index d33abef24..9dcde7559 100644 --- a/src/libnm-platform/nmp-plobj.h +++ b/src/libnm-platform/nmp-plobj.h @@ -12,6 +12,14 @@ /*****************************************************************************/ +struct _NMPlatformObject { + /* the object type has no fields of its own, it is only used to having + * a special pointer type that can be used to indicate "any" type. */ + char _dummy_don_t_use_me; +}; + +/*****************************************************************************/ + #define __NMPlatformObjWithIfindex_COMMON \ int ifindex; \ ;