| 841 | } |
| 842 | |
| 843 | static const char *recurrence_time_unit_name(u8 time_unit) |
| 844 | { |
| 845 | /* BOLT-recurrence #12: |
| 846 | * `time_unit` defining 0 (seconds), 1 (days), 2 (months). |
| 847 | */ |
| 848 | switch (time_unit) { |
| 849 | case 0: |
| 850 | return "seconds"; |
| 851 | case 1: |
| 852 | return "days"; |
| 853 | case 2: |
| 854 | return "months"; |
| 855 | } |
| 856 | return NULL; |
| 857 | } |
| 858 | |
| 859 | static bool json_add_utf8(struct json_stream *js, |
| 860 | const char *fieldname, |
no outgoing calls
no test coverage detected