diff options
author | Thomas Haller <thaller@redhat.com> | 2022-12-01 18:58:00 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2022-12-09 09:15:54 +0100 |
commit | 4ae5f7f76b87d645bbdf771b6b96de456e734281 (patch) | |
tree | 84ccdd811f37bf492abad30c1d79b94ff22033b3 | |
parent | 977c1e76a85abdbf93372ac07c9e3663e2390b7f (diff) |
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.
-rw-r--r-- | src/libnm-platform/nm-platform.h | 6 | ||||
-rw-r--r-- | 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 36df3db94f..2d72149995 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 d33abef241..9dcde75595 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; \ ; |