cli: refactor indirection to legacy signatures (2)
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -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);
|
struct {
|
||||||
};
|
GType (*get_gtype) (void);
|
||||||
gboolean (*set_fcn) (NMSetting *setting, const char *property_name, const char *value, GError **error);
|
int min;
|
||||||
gboolean (*remove_fcn) (NMSetting *setting, const char *property_name, const char *option, guint32 idx, GError **error);
|
int max;
|
||||||
union {
|
} gobject_enum;
|
||||||
union {
|
|
||||||
struct {
|
|
||||||
GType (*get_gtype) (void);
|
|
||||||
bool has_minmax:1;
|
|
||||||
int min;
|
|
||||||
int max;
|
|
||||||
} 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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user