cli: use macro for list of argument for NmcMetaGenericInfo.get_fcn()
The reasons are: - I want to locate all implmenetations of the get_fcn() handler. By consistently using this macro, you can just grep for the macro and find them all. - all implementations should follow the same style. This macro enforces the same names for arguments and avoids copy&paste. - if we are going to add or change an argument, it becomes easier. That's because we can easily identify all implementation and can change arguments in one place.
This commit is contained in:
@@ -93,7 +93,8 @@ _meta_type_nmc_generic_info_get_fcn (const NMMetaAbstractInfo *abstract_info,
|
||||
nm_assert (out_to_free || NM_IN_SET (get_type, NM_META_ACCESSOR_GET_TYPE_COLOR));
|
||||
|
||||
if (info->get_fcn) {
|
||||
return info->get_fcn (environment, environment_user_data,
|
||||
return info->get_fcn (environment,
|
||||
environment_user_data,
|
||||
info, target,
|
||||
get_type,
|
||||
get_flags,
|
||||
|
Reference in New Issue
Block a user