core: Add NMUtilsIPv6IfaceId to nm-types.h
We'd like to use it in nm-platform.h, but it's included by NetworkManagerUtils.h before the declaration occurs.
This commit is contained in:
@@ -186,12 +186,12 @@ gboolean nm_utils_is_specific_hostname (const char *name);
|
|||||||
* and should not normally be treated as a %guint64, but this is done for
|
* and should not normally be treated as a %guint64, but this is done for
|
||||||
* convenience of validity checking and initialization.
|
* convenience of validity checking and initialization.
|
||||||
*/
|
*/
|
||||||
typedef struct {
|
struct _NMUtilsIPv6IfaceId {
|
||||||
union {
|
union {
|
||||||
guint64 id;
|
guint64 id;
|
||||||
guint8 id_u8[8];
|
guint8 id_u8[8];
|
||||||
};
|
};
|
||||||
} NMUtilsIPv6IfaceId;
|
};
|
||||||
|
|
||||||
#define NM_UTILS_IPV6_IFACE_ID_INIT { .id = 0 }
|
#define NM_UTILS_IPV6_IFACE_ID_INIT { .id = 0 }
|
||||||
|
|
||||||
|
@@ -111,4 +111,7 @@ typedef struct _NMSecretAgent NMSecretAgent;
|
|||||||
typedef struct _NMSettings NMSettings;
|
typedef struct _NMSettings NMSettings;
|
||||||
typedef struct _NMSettingsConnection NMSettingsConnection;
|
typedef struct _NMSettingsConnection NMSettingsConnection;
|
||||||
|
|
||||||
|
/* utils */
|
||||||
|
typedef struct _NMUtilsIPv6IfaceId NMUtilsIPv6IfaceId;
|
||||||
|
|
||||||
#endif /* NM_TYPES_H */
|
#endif /* NM_TYPES_H */
|
||||||
|
Reference in New Issue
Block a user