| 562 | |
| 563 | #if ENABLE_BONDING |
| 564 | std::string MemberStatusStr(SRT_MEMBERSTATUS s) |
| 565 | { |
| 566 | if (int(s) < int(SRT_GST_PENDING) || int(s) > int(SRT_GST_BROKEN)) |
| 567 | return "???"; |
| 568 | |
| 569 | static struct AutoMap |
| 570 | { |
| 571 | std::string names[int(SRT_GST_BROKEN)+1]; |
| 572 | |
| 573 | AutoMap() |
| 574 | { |
| 575 | #define SINI(statename) names[SRT_GST_##statename] = #statename |
| 576 | SINI(PENDING); |
| 577 | SINI(IDLE); |
| 578 | SINI(RUNNING); |
| 579 | SINI(BROKEN); |
| 580 | #undef SINI |
| 581 | } |
| 582 | } names; |
| 583 | |
| 584 | return names.names[int(s)]; |
| 585 | } |
| 586 | #endif |
| 587 | |
| 588 |
no outgoing calls