| 1779 | } |
| 1780 | |
| 1781 | void Server::ListServices(std::vector<google::protobuf::Service*> *services) { |
| 1782 | if (!services) { |
| 1783 | return; |
| 1784 | } |
| 1785 | services->clear(); |
| 1786 | services->reserve(service_count()); |
| 1787 | for (ServiceMap::const_iterator it = _fullname_service_map.begin(); |
| 1788 | it != _fullname_service_map.end(); ++it) { |
| 1789 | if (it->second.is_user_service()) { |
| 1790 | services->push_back(it->second.service); |
| 1791 | } |
| 1792 | } |
| 1793 | } |
| 1794 | |
| 1795 | void Server::GenerateVersionIfNeeded() { |
| 1796 | if (!_version.empty()) { |