make getLocalPrefix a static GetLocalPrefix function
diff --git a/ccnx/sync-app-socket.cc b/ccnx/sync-app-socket.cc
index e0b76de..22d51b9 100644
--- a/ccnx/sync-app-socket.cc
+++ b/ccnx/sync-app-socket.cc
@@ -42,6 +42,14 @@
CcnxWrapper::Destroy ();
}
+std::string
+SyncAppSocket::GetLocalPrefix()
+{
+ // this handle is supposed to be short lived
+ CcnxWrapperPtr handle = CcnxWrapper::Create();
+ return handle->getLocalPrefix();
+}
+
bool
SyncAppSocket::publishString (const string &prefix, uint32_t session, const string &dataBuffer, int freshness)
{