-rw-r--r-- | include/opkele/discovery.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/opkele/discovery.h b/include/opkele/discovery.h index ab4b9d9..677d7bb 100644 --- a/include/opkele/discovery.h +++ b/include/opkele/discovery.h @@ -30,17 +30,25 @@ namespace opkele { if(i->second==d) return true; return false; } }; typedef priority_map<string> canonical_ids_t; typedef priority_map<string> local_ids_t; typedef set<string> types_t; - typedef priority_map<string> uris_t; + struct uri_t { + string uri; + string append; + + uri_t() { } + uri_t(const string& u) : uri(u) { } + uri_t(const string& u,const string& a) : uri(u), append(a) { } + }; + typedef priority_map<uri_t> uris_t; class service_t { public: types_t types; uris_t uris; local_ids_t local_ids; string provider_id; |