James Kuszmaul | 4a42b18 | 2021-01-17 11:32:46 -0800 | [diff] [blame^] | 1 | #include <rawrtc/ice_gatherer.h> |
| 2 | |
| 3 | /* |
| 4 | * Get the corresponding name for an ICE gatherer state. |
| 5 | */ |
| 6 | char const* rawrtc_ice_gatherer_state_to_name(enum rawrtc_ice_gatherer_state const state) { |
| 7 | switch (state) { |
| 8 | case RAWRTC_ICE_GATHERER_STATE_NEW: |
| 9 | return "new"; |
| 10 | case RAWRTC_ICE_GATHERER_STATE_GATHERING: |
| 11 | return "gathering"; |
| 12 | case RAWRTC_ICE_GATHERER_STATE_COMPLETE: |
| 13 | return "complete"; |
| 14 | case RAWRTC_ICE_GATHERER_STATE_CLOSED: |
| 15 | return "closed"; |
| 16 | default: |
| 17 | return "???"; |
| 18 | } |
| 19 | } |