cli: refactor indirection to legacy signatures (2)

This commit is contained in:
Thomas Haller
2017-03-27 17:38:27 +02:00
parent 24434be5a1
commit 8e74837f14
2 changed files with 534 additions and 902 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -74,31 +74,20 @@ struct _NmcPropertyType {
struct _NmcPropertyTypData { struct _NmcPropertyTypData {
union { union {
struct { struct {
union { gboolean (*fcn) (NMSetting *setting);
char *(*get_fcn) (NMSetting *setting, NmcPropertyGetType get_type); } get_with_default;
gboolean (*get_fcn_with_default) (NMSetting *setting);
};
gboolean (*set_fcn) (NMSetting *setting, const char *property_name, const char *value, GError **error);
gboolean (*remove_fcn) (NMSetting *setting, const char *property_name, const char *option, guint32 idx, GError **error);
union {
union {
struct { struct {
GType (*get_gtype) (void); GType (*get_gtype) (void);
bool has_minmax:1;
int min; int min;
int max; int max;
} gobject_enum; } gobject_enum;
} values_data;
const char *const* (*values_fcn) (NMSetting *setting, const char *prop);
};
} nmc;
struct { struct {
guint32 (*get_fcn) (NMSetting *setting); guint32 (*get_fcn) (NMSetting *setting);
} mtu; } mtu;
struct { struct {
NmcPropertyTypeMacMode mode; NmcPropertyTypeMacMode mode;
} mac; } mac;
}; } subtype;
const char *const*values_static; const char *const*values_static;
}; };