make: Global change: Move all public headers to include folder. Change source to including public headers using #include <ndn-cpp/*>. Split some header files to minimize exposing C .h files.
diff --git a/ndn-cpp/name.cpp b/ndn-cpp/name.cpp
index d74142e..4e619cc 100644
--- a/ndn-cpp/name.cpp
+++ b/ndn-cpp/name.cpp
@@ -1,3 +1,4 @@
+/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
/**
* Copyright (C) 2013 Regents of the University of California.
* @author: Jeff Thompson <jefft0@remap.ucla.edu>
@@ -6,7 +7,8 @@
#include <stdexcept>
#include <algorithm>
-#include "name.hpp"
+#include <ndn-cpp/name.hpp>
+#include "c/name.h"
using namespace std;
using namespace ndn::ptr_lib;
@@ -162,6 +164,20 @@
}
void
+Name::Component::get(struct ndn_NameComponent& componentStruct) const
+{
+ value_.get(componentStruct.value);
+}
+
+uint64_t
+Name::Component::toNumber() const
+{
+ struct ndn_NameComponent componentStruct;
+ get(componentStruct);
+ return ndn_NameComponent_toNumber(&componentStruct);
+}
+
+void
Name::set(const char *uri_cstr)
{
components_.clear();