summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--include/opkele/types.h4
-rw-r--r--lib/discovery.cc6
2 files changed, 10 insertions, 0 deletions
diff --git a/include/opkele/types.h b/include/opkele/types.h
index d959021..4e1415f 100644
--- a/include/opkele/types.h
+++ b/include/opkele/types.h
@@ -207,2 +207,3 @@ namespace opkele {
local_ids_t local_ids;
+ string provider_id;
@@ -211,2 +212,3 @@ namespace opkele {
uris.clear(); local_ids.clear();
+ provider_id.clear();
}
@@ -222,2 +224,3 @@ namespace opkele {
services_t services;
+ string provider_id;
@@ -227,2 +230,3 @@ namespace opkele {
services.clear();
+ provider_id.clear();
}
diff --git a/lib/discovery.cc b/lib/discovery.cc
index bc7d6fb..81727c0 100644
--- a/lib/discovery.cc
+++ b/lib/discovery.cc
@@ -238,2 +238,5 @@ namespace opkele {
cdata = &(xrd->local_ids.add(element_priority(a),string()));
+ }else if(is_qelement(n,NSURI_XRD "\tProviderID")) {
+ assert(xrd);
+ cdata = &(xrd->provider_id);
}else if(is_qelement(n,NSURI_XRD "\tService")) {
@@ -275,2 +278,5 @@ namespace opkele {
cdata = &(xrd_service->local_ids.add(element_priority(a),string()));
+ }else if(is_qelement(n,NSURI_XRD "\tProviderID")) {
+ assert(xrd); assert(xrd_service);
+ cdata = &(xrd_service->provider_id);
}else{