libnm: add code comment about preserving ABI for libnm GObject structs

(cherry picked from commit f3abf2491a)
This commit is contained in:
Thomas Haller 2021-06-14 09:26:25 +02:00
parent c4257c1c7f
commit 1c6b50f6ea
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728
33 changed files with 35 additions and 42 deletions

View file

@ -187,11 +187,11 @@ typedef struct {
*/ */
struct _NMSetting8021x { struct _NMSetting8021x {
NMSetting parent; NMSetting parent;
/* In the past, this struct was public API. Preserve ABI! */
}; };
struct _NMSetting8021xClass { struct _NMSetting8021xClass {
NMSettingClass parent; NMSettingClass parent;
/* In the past, this struct was public API. Preserve ABI! */ /* In the past, this struct was public API. Preserve ABI! */
gpointer padding[4]; gpointer padding[4];
}; };

View file

@ -47,11 +47,11 @@ typedef struct {
*/ */
struct _NMSettingAdsl { struct _NMSettingAdsl {
NMSetting parent; NMSetting parent;
/* In the past, this struct was public API. Preserve ABI! */
}; };
struct _NMSettingAdslClass { struct _NMSettingAdslClass {
NMSettingClass parent; NMSettingClass parent;
/* In the past, this struct was public API. Preserve ABI! */ /* In the past, this struct was public API. Preserve ABI! */
gpointer padding[4]; gpointer padding[4];
}; };

View file

@ -43,11 +43,11 @@ typedef struct {
*/ */
struct _NMSettingBluetooth { struct _NMSettingBluetooth {
NMSetting parent; NMSetting parent;
/* In the past, this struct was public API. Preserve ABI! */
}; };
struct _NMSettingBluetoothClass { struct _NMSettingBluetoothClass {
NMSettingClass parent; NMSettingClass parent;
/* In the past, this struct was public API. Preserve ABI! */ /* In the past, this struct was public API. Preserve ABI! */
gpointer padding[4]; gpointer padding[4];
}; };

View file

@ -45,11 +45,11 @@ typedef struct {
*/ */
struct _NMSettingBond { struct _NMSettingBond {
NMSetting parent; NMSetting parent;
/* In the past, this struct was public API. Preserve ABI! */
}; };
struct _NMSettingBondClass { struct _NMSettingBondClass {
NMSettingClass parent; NMSettingClass parent;
/* In the past, this struct was public API. Preserve ABI! */ /* In the past, this struct was public API. Preserve ABI! */
gpointer padding[4]; gpointer padding[4];
}; };

View file

@ -46,11 +46,11 @@ typedef struct {
*/ */
struct _NMSettingBridgePort { struct _NMSettingBridgePort {
NMSetting parent; NMSetting parent;
/* In the past, this struct was public API. Preserve ABI! */
}; };
struct _NMSettingBridgePortClass { struct _NMSettingBridgePortClass {
NMSettingClass parent; NMSettingClass parent;
/* In the past, this struct was public API. Preserve ABI! */ /* In the past, this struct was public API. Preserve ABI! */
gpointer padding[4]; gpointer padding[4];
}; };

View file

@ -43,11 +43,11 @@ typedef struct {
*/ */
struct _NMSettingCdma { struct _NMSettingCdma {
NMSetting parent; NMSetting parent;
/* In the past, this struct was public API. Preserve ABI! */
}; };
struct _NMSettingCdmaClass { struct _NMSettingCdmaClass {
NMSettingClass parent; NMSettingClass parent;
/* In the past, this struct was public API. Preserve ABI! */ /* In the past, this struct was public API. Preserve ABI! */
gpointer padding[4]; gpointer padding[4];
}; };

View file

@ -104,11 +104,11 @@ typedef struct {
*/ */
struct _NMSettingConnection { struct _NMSettingConnection {
NMSetting parent; NMSetting parent;
/* In the past, this struct was public API. Preserve ABI! */
}; };
struct _NMSettingConnectionClass { struct _NMSettingConnectionClass {
NMSettingClass parent; NMSettingClass parent;
/* In the past, this struct was public API. Preserve ABI! */ /* In the past, this struct was public API. Preserve ABI! */
gpointer padding[4]; gpointer padding[4];
}; };

View file

@ -72,11 +72,11 @@ typedef struct {
*/ */
struct _NMSettingDcb { struct _NMSettingDcb {
NMSetting parent; NMSetting parent;
/* In the past, this struct was public API. Preserve ABI! */
}; };
struct _NMSettingDcbClass { struct _NMSettingDcbClass {
NMSettingClass parent; NMSettingClass parent;
/* In the past, this struct was public API. Preserve ABI! */ /* In the past, this struct was public API. Preserve ABI! */
gpointer padding[4]; gpointer padding[4];
}; };

View file

@ -28,11 +28,11 @@
*/ */
struct _NMSettingDummy { struct _NMSettingDummy {
NMSetting parent; NMSetting parent;
/* In the past, this struct was public API. Preserve ABI! */
}; };
struct _NMSettingDummyClass { struct _NMSettingDummyClass {
NMSettingClass parent; NMSettingClass parent;
/* In the past, this struct was public API. Preserve ABI! */ /* In the past, this struct was public API. Preserve ABI! */
gpointer padding[4]; gpointer padding[4];
}; };

View file

@ -34,11 +34,11 @@ typedef struct {
*/ */
struct _NMSettingGeneric { struct _NMSettingGeneric {
NMSetting parent; NMSetting parent;
/* In the past, this struct was public API. Preserve ABI! */
}; };
struct _NMSettingGenericClass { struct _NMSettingGenericClass {
NMSettingClass parent; NMSettingClass parent;
/* In the past, this struct was public API. Preserve ABI! */ /* In the past, this struct was public API. Preserve ABI! */
gpointer padding[4]; gpointer padding[4];
}; };

View file

@ -62,11 +62,11 @@ typedef struct {
*/ */
struct _NMSettingGsm { struct _NMSettingGsm {
NMSetting parent; NMSetting parent;
/* In the past, this struct was public API. Preserve ABI! */
}; };
struct _NMSettingGsmClass { struct _NMSettingGsmClass {
NMSettingClass parent; NMSettingClass parent;
/* In the past, this struct was public API. Preserve ABI! */ /* In the past, this struct was public API. Preserve ABI! */
gpointer padding[4]; gpointer padding[4];
}; };

View file

@ -47,11 +47,11 @@ typedef struct {
*/ */
struct _NMSettingInfiniband { struct _NMSettingInfiniband {
NMSetting parent; NMSetting parent;
/* In the past, this struct was public API. Preserve ABI! */
}; };
struct _NMSettingInfinibandClass { struct _NMSettingInfinibandClass {
NMSettingClass parent; NMSettingClass parent;
/* In the past, this struct was public API. Preserve ABI! */ /* In the past, this struct was public API. Preserve ABI! */
gpointer padding[4]; gpointer padding[4];
}; };

View file

@ -54,11 +54,11 @@ typedef struct {
*/ */
struct _NMSettingIPTunnel { struct _NMSettingIPTunnel {
NMSetting parent; NMSetting parent;
/* In the past, this struct was public API. Preserve ABI! */
}; };
struct _NMSettingIPTunnelClass { struct _NMSettingIPTunnelClass {
NMSettingClass parent; NMSettingClass parent;
/* In the past, this struct was public API. Preserve ABI! */ /* In the past, this struct was public API. Preserve ABI! */
gpointer padding[4]; gpointer padding[4];
}; };

View file

@ -52,11 +52,11 @@ typedef struct {
*/ */
struct _NMSettingIP4Config { struct _NMSettingIP4Config {
NMSettingIPConfig parent; NMSettingIPConfig parent;
/* In the past, this struct was public API. Preserve ABI! */
}; };
struct _NMSettingIP4ConfigClass { struct _NMSettingIP4ConfigClass {
NMSettingIPConfigClass parent; NMSettingIPConfigClass parent;
/* In the past, this struct was public API. Preserve ABI! */ /* In the past, this struct was public API. Preserve ABI! */
gpointer padding[4]; gpointer padding[4];
}; };

View file

@ -59,11 +59,11 @@ typedef struct {
*/ */
struct _NMSettingIP6Config { struct _NMSettingIP6Config {
NMSettingIPConfig parent; NMSettingIPConfig parent;
/* In the past, this struct was public API. Preserve ABI! */
}; };
struct _NMSettingIP6ConfigClass { struct _NMSettingIP6ConfigClass {
NMSettingIPConfigClass parent; NMSettingIPConfigClass parent;
/* In the past, this struct was public API. Preserve ABI! */ /* In the past, this struct was public API. Preserve ABI! */
gpointer padding[4]; gpointer padding[4];
}; };

View file

@ -56,11 +56,11 @@ typedef struct {
*/ */
struct _NMSettingMacsec { struct _NMSettingMacsec {
NMSetting parent; NMSetting parent;
/* In the past, this struct was public API. Preserve ABI! */
}; };
struct _NMSettingMacsecClass { struct _NMSettingMacsecClass {
NMSettingClass parent; NMSettingClass parent;
/* In the past, this struct was public API. Preserve ABI! */ /* In the past, this struct was public API. Preserve ABI! */
gpointer padding[4]; gpointer padding[4];
}; };

View file

@ -41,11 +41,11 @@ typedef struct {
*/ */
struct _NMSettingMacvlan { struct _NMSettingMacvlan {
NMSetting parent; NMSetting parent;
/* In the past, this struct was public API. Preserve ABI! */
}; };
struct _NMSettingMacvlanClass { struct _NMSettingMacvlanClass {
NMSettingClass parent; NMSettingClass parent;
/* In the past, this struct was public API. Preserve ABI! */ /* In the past, this struct was public API. Preserve ABI! */
gpointer padding[4]; gpointer padding[4];
}; };

View file

@ -40,11 +40,11 @@ typedef struct {
*/ */
struct _NMSettingOlpcMesh { struct _NMSettingOlpcMesh {
NMSetting parent; NMSetting parent;
/* In the past, this struct was public API. Preserve ABI! */
}; };
struct _NMSettingOlpcMeshClass { struct _NMSettingOlpcMeshClass {
NMSettingClass parent; NMSettingClass parent;
/* In the past, this struct was public API. Preserve ABI! */ /* In the past, this struct was public API. Preserve ABI! */
gpointer padding[4]; gpointer padding[4];
}; };

View file

@ -69,11 +69,11 @@ typedef struct {
*/ */
struct _NMSettingPpp { struct _NMSettingPpp {
NMSetting parent; NMSetting parent;
/* In the past, this struct was public API. Preserve ABI! */
}; };
struct _NMSettingPppClass { struct _NMSettingPppClass {
NMSettingClass parent; NMSettingClass parent;
/* In the past, this struct was public API. Preserve ABI! */ /* In the past, this struct was public API. Preserve ABI! */
gpointer padding[4]; gpointer padding[4];
}; };

View file

@ -44,11 +44,11 @@ typedef struct {
*/ */
struct _NMSettingPppoe { struct _NMSettingPppoe {
NMSetting parent; NMSetting parent;
/* In the past, this struct was public API. Preserve ABI! */
}; };
struct _NMSettingPppoeClass { struct _NMSettingPppoeClass {
NMSettingClass parent; NMSettingClass parent;
/* In the past, this struct was public API. Preserve ABI! */ /* In the past, this struct was public API. Preserve ABI! */
gpointer padding[4]; gpointer padding[4];
}; };

View file

@ -27,12 +27,14 @@
*/ */
struct _NMSetting { struct _NMSetting {
GObject parent; GObject parent;
/* In the past, this struct was public API. Preserve ABI! */
}; };
struct _NMSettingClass { struct _NMSettingClass {
GObjectClass parent; GObjectClass parent;
/* Virtual functions */ /* In the past, this struct was public API. Preserve ABI! */
int (*verify)(NMSetting *setting, NMConnection *connection, GError **error); int (*verify)(NMSetting *setting, NMConnection *connection, GError **error);
gboolean (*verify_secrets)(NMSetting *setting, NMConnection *connection, GError **error); gboolean (*verify_secrets)(NMSetting *setting, NMConnection *connection, GError **error);
@ -51,7 +53,6 @@ struct _NMSettingClass {
NMSettingSecretFlags flags, NMSettingSecretFlags flags,
GError ** error); GError ** error);
/* In the past, this struct was public API. Preserve ABI! */
gboolean (*clear_secrets)(const struct _NMSettInfoSetting *sett_info, gboolean (*clear_secrets)(const struct _NMSettInfoSetting *sett_info,
guint property_idx, guint property_idx,
NMSetting * setting, NMSetting * setting,
@ -64,7 +65,6 @@ struct _NMSettingClass {
* *
* @other may be %NULL, in which case the function only determines whether * @other may be %NULL, in which case the function only determines whether
* the setting should be compared (TRUE) or not (DEFAULT). */ * the setting should be compared (TRUE) or not (DEFAULT). */
/* In the past, this struct was public API. Preserve ABI! */
NMTernary (*compare_property)(const struct _NMSettInfoSetting *sett_info, NMTernary (*compare_property)(const struct _NMSettInfoSetting *sett_info,
guint property_idx, guint property_idx,
NMConnection * con_a, NMConnection * con_a,
@ -73,21 +73,17 @@ struct _NMSettingClass {
NMSetting * set_b, NMSetting * set_b,
NMSettingCompareFlags flags); NMSettingCompareFlags flags);
/* In the past, this struct was public API. Preserve ABI! */
void (*duplicate_copy_properties)(const struct _NMSettInfoSetting *sett_info, void (*duplicate_copy_properties)(const struct _NMSettInfoSetting *sett_info,
NMSetting * src, NMSetting * src,
NMSetting * dst); NMSetting * dst);
/* In the past, this struct was public API. Preserve ABI! */
void (*enumerate_values)(const struct _NMSettInfoProperty *property_info, void (*enumerate_values)(const struct _NMSettInfoProperty *property_info,
NMSetting * setting, NMSetting * setting,
NMSettingValueIterFn func, NMSettingValueIterFn func,
gpointer user_data); gpointer user_data);
/* In the past, this struct was public API. Preserve ABI! */
gboolean (*aggregate)(NMSetting *setting, int type_i, gpointer arg); gboolean (*aggregate)(NMSetting *setting, int type_i, gpointer arg);
/* In the past, this struct was public API. Preserve ABI! */
void (*for_each_secret)(NMSetting * setting, void (*for_each_secret)(NMSetting * setting,
const char * secret_name, const char * secret_name,
GVariant * val, GVariant * val,
@ -96,7 +92,6 @@ struct _NMSettingClass {
gpointer callback_data, gpointer callback_data,
GVariantBuilder * setting_builder); GVariantBuilder * setting_builder);
/* In the past, this struct was public API. Preserve ABI! */
gboolean (*init_from_dbus)(NMSetting * setting, gboolean (*init_from_dbus)(NMSetting * setting,
GHashTable * keys, GHashTable * keys,
GVariant * setting_dict, GVariant * setting_dict,
@ -104,10 +99,8 @@ struct _NMSettingClass {
guint /* NMSettingParseFlags */ parse_flags, guint /* NMSettingParseFlags */ parse_flags,
GError ** error); GError ** error);
/* In the past, this struct was public API. Preserve ABI! */
gpointer padding[1]; gpointer padding[1];
/* In the past, this struct was public API. Preserve ABI! */
const struct _NMMetaSettingInfo *setting_info; const struct _NMMetaSettingInfo *setting_info;
}; };

View file

@ -43,11 +43,11 @@ typedef struct {
*/ */
struct _NMSettingSerial { struct _NMSettingSerial {
NMSetting parent; NMSetting parent;
/* In the past, this struct was public API. Preserve ABI! */
}; };
struct _NMSettingSerialClass { struct _NMSettingSerialClass {
NMSettingClass parent; NMSettingClass parent;
/* In the past, this struct was public API. Preserve ABI! */ /* In the past, this struct was public API. Preserve ABI! */
gpointer padding[4]; gpointer padding[4];
}; };

View file

@ -42,11 +42,11 @@ typedef struct {
*/ */
struct _NMSettingTeamPort { struct _NMSettingTeamPort {
NMSetting parent; NMSetting parent;
/* In the past, this struct was public API. Preserve ABI! */
}; };
struct _NMSettingTeamPortClass { struct _NMSettingTeamPortClass {
NMSettingClass parent; NMSettingClass parent;
/* In the past, this struct was public API. Preserve ABI! */ /* In the past, this struct was public API. Preserve ABI! */
gpointer padding[4]; gpointer padding[4];
}; };

View file

@ -742,11 +742,11 @@ typedef struct {
*/ */
struct _NMSettingTeam { struct _NMSettingTeam {
NMSetting parent; NMSetting parent;
/* In the past, this struct was public API. Preserve ABI! */
}; };
struct _NMSettingTeamClass { struct _NMSettingTeamClass {
NMSettingClass parent; NMSettingClass parent;
/* In the past, this struct was public API. Preserve ABI! */ /* In the past, this struct was public API. Preserve ABI! */
gpointer padding[4]; gpointer padding[4];
}; };

View file

@ -47,11 +47,11 @@ typedef struct {
*/ */
struct _NMSettingTun { struct _NMSettingTun {
NMSetting parent; NMSetting parent;
/* In the past, this struct was public API. Preserve ABI! */
}; };
struct _NMSettingTunClass { struct _NMSettingTunClass {
NMSettingClass parent; NMSettingClass parent;
/* In the past, this struct was public API. Preserve ABI! */ /* In the past, this struct was public API. Preserve ABI! */
gpointer padding[4]; gpointer padding[4];
}; };

View file

@ -48,11 +48,11 @@ typedef struct {
*/ */
struct _NMSettingVlan { struct _NMSettingVlan {
NMSetting parent; NMSetting parent;
/* In the past, this struct was public API. Preserve ABI! */
}; };
struct _NMSettingVlanClass { struct _NMSettingVlanClass {
NMSettingClass parent; NMSettingClass parent;
/* In the past, this struct was public API. Preserve ABI! */ /* In the past, this struct was public API. Preserve ABI! */
gpointer padding[4]; gpointer padding[4];
}; };

View file

@ -81,11 +81,11 @@ typedef struct {
*/ */
struct _NMSettingVpn { struct _NMSettingVpn {
NMSetting parent; NMSetting parent;
/* In the past, this struct was public API. Preserve ABI! */
}; };
struct _NMSettingVpnClass { struct _NMSettingVpnClass {
NMSettingClass parent; NMSettingClass parent;
/* In the past, this struct was public API. Preserve ABI! */ /* In the past, this struct was public API. Preserve ABI! */
gpointer padding[4]; gpointer padding[4];
}; };

View file

@ -67,11 +67,11 @@ typedef struct {
*/ */
struct _NMSettingVxlan { struct _NMSettingVxlan {
NMSetting parent; NMSetting parent;
/* In the past, this struct was public API. Preserve ABI! */
}; };
struct _NMSettingVxlanClass { struct _NMSettingVxlanClass {
NMSettingClass parent; NMSettingClass parent;
/* In the past, this struct was public API. Preserve ABI! */ /* In the past, this struct was public API. Preserve ABI! */
gpointer padding[4]; gpointer padding[4];
}; };

View file

@ -42,11 +42,11 @@ typedef struct {
*/ */
struct _NMSettingWimax { struct _NMSettingWimax {
NMSetting parent; NMSetting parent;
/* In the past, this struct was public API. Preserve ABI! */
}; };
struct _NMSettingWimaxClass { struct _NMSettingWimaxClass {
NMSettingClass parent; NMSettingClass parent;
/* In the past, this struct was public API. Preserve ABI! */ /* In the past, this struct was public API. Preserve ABI! */
gpointer padding[4]; gpointer padding[4];
}; };

View file

@ -76,11 +76,11 @@ typedef struct {
*/ */
struct _NMSettingWired { struct _NMSettingWired {
NMSetting parent; NMSetting parent;
/* In the past, this struct was public API. Preserve ABI! */
}; };
struct _NMSettingWiredClass { struct _NMSettingWiredClass {
NMSettingClass parent; NMSettingClass parent;
/* In the past, this struct was public API. Preserve ABI! */ /* In the past, this struct was public API. Preserve ABI! */
gpointer padding[4]; gpointer padding[4];
}; };

View file

@ -91,11 +91,11 @@ typedef struct {
*/ */
struct _NMSettingWirelessSecurity { struct _NMSettingWirelessSecurity {
NMSetting parent; NMSetting parent;
/* In the past, this struct was public API. Preserve ABI! */
}; };
struct _NMSettingWirelessSecurityClass { struct _NMSettingWirelessSecurityClass {
NMSettingClass parent; NMSettingClass parent;
/* In the past, this struct was public API. Preserve ABI! */ /* In the past, this struct was public API. Preserve ABI! */
gpointer padding[4]; gpointer padding[4];
}; };

View file

@ -73,11 +73,11 @@ typedef struct {
*/ */
struct _NMSettingWireless { struct _NMSettingWireless {
NMSetting parent; NMSetting parent;
/* In the past, this struct was public API. Preserve ABI! */
}; };
struct _NMSettingWirelessClass { struct _NMSettingWirelessClass {
NMSettingClass parent; NMSettingClass parent;
/* In the past, this struct was public API. Preserve ABI! */ /* In the past, this struct was public API. Preserve ABI! */
gpointer padding[4]; gpointer padding[4];
}; };

View file

@ -25,11 +25,11 @@
*/ */
struct _NMSimpleConnection { struct _NMSimpleConnection {
GObject parent; GObject parent;
/* In the past, this struct was public API. Preserve ABI! */
}; };
struct _NMSimpleConnectionClass { struct _NMSimpleConnectionClass {
GObjectClass parent; GObjectClass parent;
/* In the past, this struct was public API. Preserve ABI! */ /* In the past, this struct was public API. Preserve ABI! */
gpointer padding[4]; gpointer padding[4];
}; };