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.
This commit is contained in:
Thomas Haller
2022-12-01 18:58:00 +01:00
parent 977c1e76a8
commit 4ae5f7f76b
2 changed files with 8 additions and 6 deletions

View File

@@ -149,12 +149,6 @@ GBytes *nmp_link_address_get_as_bytes(const NMPLinkAddress *addr);
#define NM_PLATFORM_LINK_OTHER_NETNS (-1) #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 { struct _NMPlatformObjWithIfindex {
__NMPlatformObjWithIfindex_COMMON; __NMPlatformObjWithIfindex_COMMON;
}; };

View File

@@ -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 \ #define __NMPlatformObjWithIfindex_COMMON \
int ifindex; \ int ifindex; \
; ;