summaryrefslogtreecommitdiffabout
path: root/include/opkele/discovery.h
authorMichael Krelin <hacker@klever.net>2007-12-13 18:33:20 (UTC)
committer Michael Krelin <hacker@klever.net>2007-12-13 18:37:33 (UTC)
commit58383f07af80dfd5b5c18e5158291c3d8caefbe7 (patch) (unidiff)
treefe7b9bc8da74bce0dcc6d8a033b8a8073f81ad14 /include/opkele/discovery.h
parent54f9cf0424f47ef6384bc55904097dc4ecb5fc78 (diff)
downloadlibopkele-58383f07af80dfd5b5c18e5158291c3d8caefbe7.zip
libopkele-58383f07af80dfd5b5c18e5158291c3d8caefbe7.tar.gz
libopkele-58383f07af80dfd5b5c18e5158291c3d8caefbe7.tar.bz2
keep track of whether the identity being discovered is XRI
Signed-off-by: Michael Krelin <hacker@klever.net>
Diffstat (limited to 'include/opkele/discovery.h') (more/less context) (ignore whitespace changes)
-rw-r--r--include/opkele/discovery.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/opkele/discovery.h b/include/opkele/discovery.h
index 5d7129b..7865fb2 100644
--- a/include/opkele/discovery.h
+++ b/include/opkele/discovery.h
@@ -1,30 +1,31 @@
1#ifndef __OPKELE_DISCOVERY_H 1#ifndef __OPKELE_DISCOVERY_H
2#define __OPKELE_DISCOVERY_H 2#define __OPKELE_DISCOVERY_H
3 3
4#include <string> 4#include <string>
5#include <opkele/types.h> 5#include <opkele/types.h>
6 6
7namespace opkele { 7namespace opkele {
8 using std::string; 8 using std::string;
9 9
10 struct idiscovery_t; 10 struct idiscovery_t;
11 11
12 void idiscover(idiscovery_t& result,const string& identity); 12 void idiscover(idiscovery_t& result,const string& identity);
13 13
14 struct idiscovery_t { 14 struct idiscovery_t {
15 bool xri_identity;
15 string normalized_id; 16 string normalized_id;
16 string canonicalized_id; 17 string canonicalized_id;
17 xrd::XRD_t xrd; 18 xrd::XRD_t xrd;
18 19
19 idiscovery_t(const string& i) { 20 idiscovery_t(const string& i) {
20 idiscover(*this,i); 21 idiscover(*this,i);
21 } 22 }
22 idiscovery_t(const char *i) { 23 idiscovery_t(const char *i) {
23 idiscover(*this,i); 24 idiscover(*this,i);
24 } 25 }
25 26
26 void clear() { 27 void clear() {
27 normalized_id.clear(); canonicalized_id.clear(); 28 normalized_id.clear(); canonicalized_id.clear();
28 xrd.clear(); 29 xrd.clear();
29 } 30 }
30 }; 31 };