|
12 | 12 |
|
13 | 13 | typedef void (*TOTP_CLI_DETAILS_HEADER_FORMATTER)();
|
14 | 14 | typedef void (*TOTP_CLI_DETAILS_FOOTER_FORMATTER)();
|
15 |
| -typedef void (*TOTP_CLI_DETAILS_AUTOMATION_FEATURE_ITEM_FORMATTER)(const char* key, const char* feature, bool* header_printed); |
| 15 | +typedef void (*TOTP_CLI_DETAILS_AUTOMATION_FEATURE_ITEM_FORMATTER)( |
| 16 | + const char* key, |
| 17 | + const char* feature, |
| 18 | + bool* header_printed); |
16 | 19 | typedef void (*TOTP_CLI_DETAILS_CSTR_FORMATTER)(const char* key, const char* value);
|
17 | 20 | typedef void (*TOTP_CLI_DETAILS_UINT8T_FORMATTER)(const char* key, uint8_t value);
|
18 | 21 | typedef void (*TOTP_CLI_DETAILS_SIZET_FORMATTER)(const char* key, size_t value);
|
@@ -42,24 +45,30 @@ static const TotpCliDetailsFormatter available_formatters[] = {
|
42 | 45 | .sizet_formatter = &details_output_formatter_print_sizet_tsv},
|
43 | 46 | };
|
44 | 47 |
|
45 |
| -static void print_automation_features(const TokenInfo* token_info, const TotpCliDetailsFormatter* formatter) { |
| 48 | +static void print_automation_features( |
| 49 | + const TokenInfo* token_info, |
| 50 | + const TotpCliDetailsFormatter* formatter) { |
46 | 51 | bool header_printed = false;
|
47 | 52 | const char* AUTOMATION_FEATURES_PRINT_KEY = "Automation features";
|
48 | 53 | if(token_info->automation_features == TokenAutomationFeatureNone) {
|
49 |
| - (*formatter->automation_feature_item_formatter)(AUTOMATION_FEATURES_PRINT_KEY, "None", &header_printed); |
| 54 | + (*formatter->automation_feature_item_formatter)( |
| 55 | + AUTOMATION_FEATURES_PRINT_KEY, "None", &header_printed); |
50 | 56 | return;
|
51 | 57 | }
|
52 |
| - |
| 58 | + |
53 | 59 | if(token_info->automation_features & TokenAutomationFeatureEnterAtTheEnd) {
|
54 |
| - (*formatter->automation_feature_item_formatter)(AUTOMATION_FEATURES_PRINT_KEY, "Type <Enter> key at the end", &header_printed); |
| 60 | + (*formatter->automation_feature_item_formatter)( |
| 61 | + AUTOMATION_FEATURES_PRINT_KEY, "Type <Enter> key at the end", &header_printed); |
55 | 62 | }
|
56 | 63 |
|
57 | 64 | if(token_info->automation_features & TokenAutomationFeatureTabAtTheEnd) {
|
58 |
| - (*formatter->automation_feature_item_formatter)(AUTOMATION_FEATURES_PRINT_KEY, "Type <Tab> key at the end", &header_printed); |
| 65 | + (*formatter->automation_feature_item_formatter)( |
| 66 | + AUTOMATION_FEATURES_PRINT_KEY, "Type <Tab> key at the end", &header_printed); |
59 | 67 | }
|
60 | 68 |
|
61 | 69 | if(token_info->automation_features & TokenAutomationFeatureTypeSlower) {
|
62 |
| - (*formatter->automation_feature_item_formatter)(AUTOMATION_FEATURES_PRINT_KEY, "Type slower", &header_printed); |
| 70 | + (*formatter->automation_feature_item_formatter)( |
| 71 | + AUTOMATION_FEATURES_PRINT_KEY, "Type slower", &header_printed); |
63 | 72 | }
|
64 | 73 | }
|
65 | 74 |
|
|
0 commit comments