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:
@@ -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;
|
||||||
};
|
};
|
||||||
|
@@ -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; \
|
||||||
;
|
;
|
||||||
|
Reference in New Issue
Block a user