blob: 982a5cb33b6ff6cf6320f46498c152bbd6a9d82e [file] [log] [blame]
James Kuszmaul4a42b182021-01-17 11:32:46 -08001#include <rawrtc/ice_gatherer.h>
2
3/*
4 * Get the corresponding name for an ICE gatherer state.
5 */
6char 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}