mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[common,settings] add comments for compat entries
This commit is contained in:
@@ -104,6 +104,7 @@ def write_getter_body(f, values, ret, keys, isPointer, compat_values, typestr, e
|
||||
for i in range(len(compat_values)):
|
||||
val = compat_values[i]
|
||||
cast = '(' + entry_type + ')'
|
||||
f.write('\t\t// API Compatibility section, remove with FreeRDP 4.x\n')
|
||||
write_getter_case(f, val, cast, typestr)
|
||||
f.write('\t\tdefault:\n')
|
||||
f.write('\t\t\tWLog_ERR(TAG, "Invalid key index %" PRIuz " [%s|%s]", id, freerdp_settings_get_name_for_key(id), freerdp_settings_get_type_name_for_key(id));\n')
|
||||
@@ -218,6 +219,7 @@ def write_setter(f, entry_dict, entry_type, entry_name, postfix, compat_dict):
|
||||
if compat_values:
|
||||
for val in compat_values:
|
||||
cast = '(int32_t)'
|
||||
f.write('\t\t// API Compatibility section, remove with FreeRDP 4.x\n')
|
||||
write_setter_case(f, val, postfix, isPointer, cast)
|
||||
f.write('\t\tdefault:\n')
|
||||
f.write('\t\t\tWLog_ERR(TAG, "Invalid key index %" PRIuz " [%s|%s]", id, freerdp_settings_get_name_for_key(id), freerdp_settings_get_type_name_for_key(id));\n')
|
||||
|
||||
Reference in New Issue
Block a user