platform: make NMPlatformVTableAddress struct smaller and pack NMPObjectType

(cherry picked from commit 7c92663f8d)
This commit is contained in:
Thomas Haller 2022-03-29 18:21:49 +02:00 committed by Fernando Fernandez Mancera
parent 9e40474c71
commit 3a98ecfa0e
2 changed files with 4 additions and 4 deletions

View file

@ -776,10 +776,10 @@ typedef struct {
#undef __NMPlatformObjWithIfindex_COMMON
typedef struct {
gboolean is_ip4;
bool is_ip4;
gint8 addr_family;
guint8 sizeof_route;
NMPObjectType obj_type;
int addr_family;
gsize sizeof_route;
int (*route_cmp)(const NMPlatformIPXRoute *a,
const NMPlatformIPXRoute *b,
NMPlatformIPRouteCmpType cmp_type);

View file

@ -110,7 +110,7 @@ typedef struct _NMPlatformIP6Route NMPlatformIP6Route;
typedef struct _NMPlatformLink NMPlatformLink;
typedef struct _NMPObject NMPObject;
typedef enum {
typedef enum _nm_packed {
NMP_OBJECT_TYPE_UNKNOWN,
NMP_OBJECT_TYPE_LINK,