Adapting to TLV-specific ndn-cpp
Change-Id: I5f39f38156221fc978db5048c1ff4a3bbb0c17d9
diff --git a/src/contact-storage.h b/src/contact-storage.h
index 8b7bc6e..dfc06ef 100644
--- a/src/contact-storage.h
+++ b/src/contact-storage.h
@@ -14,20 +14,21 @@
#include <sqlite3.h>
#include "contact-item.h"
#include "endorse-certificate.h"
-#include <ndn-cpp/security/identity/identity-manager.hpp>
class ContactStorage
{
public:
+ struct Error : public std::runtime_error { Error(const std::string &what) : std::runtime_error(what) {} };
+
ContactStorage();
~ContactStorage()
{sqlite3_close(m_db);}
void
- setSelfProfileEntry(const ndn::Name& identity, const std::string& profileType, const ndn::Blob& profileValue);
+ setSelfProfileEntry(const ndn::Name& identity, const std::string& profileType, const ndn::Buffer& profileValue);
ndn::ptr_lib::shared_ptr<Profile>
getSelfProfile(const ndn::Name& identity);
@@ -55,7 +56,7 @@
//SelfEndorse
- ndn::Blob
+ ndn::Block
getSelfEndorseCertificate(const ndn::Name& identity);
void
@@ -66,7 +67,7 @@
//ProfileEndorse
- ndn::Blob
+ ndn::Block
getEndorseCertificate(const ndn::Name& identity);
void
@@ -84,7 +85,7 @@
updateCollectEndorse(const EndorseCertificate& endorseCertificate);
void
- getCollectEndorseList(const ndn::Name& name, std::vector<ndn::Blob>& endorseList);
+ getCollectEndorseList(const ndn::Name& name, std::vector<ndn::Buffer>& endorseList);
private: