summaryrefslogtreecommitdiff
path: root/ucb/source/ucp/webdav-neon/NeonSession.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'ucb/source/ucp/webdav-neon/NeonSession.cxx')
-rw-r--r--ucb/source/ucp/webdav-neon/NeonSession.cxx22
1 files changed, 17 insertions, 5 deletions
diff --git a/ucb/source/ucp/webdav-neon/NeonSession.cxx b/ucb/source/ucp/webdav-neon/NeonSession.cxx
index e17c1f03cfcc..81fa6adca3ad 100644
--- a/ucb/source/ucp/webdav-neon/NeonSession.cxx
+++ b/ucb/source/ucp/webdav-neon/NeonSession.cxx
@@ -199,7 +199,9 @@ struct NeonRequestContext
};
// A simple Neon response_block_reader for use with an XInputStream
-extern "C" int NeonSession_ResponseBlockReader(void * inUserData,
+extern "C" {
+
+static int NeonSession_ResponseBlockReader(void * inUserData,
const char * inBuf,
size_t inLen )
{
@@ -213,7 +215,7 @@ extern "C" int NeonSession_ResponseBlockReader(void * inUserData,
}
// A simple Neon response_block_reader for use with an XOutputStream
-extern "C" int NeonSession_ResponseBlockWriter( void * inUserData,
+static int NeonSession_ResponseBlockWriter( void * inUserData,
const char * inBuf,
size_t inLen )
{
@@ -226,7 +228,7 @@ extern "C" int NeonSession_ResponseBlockWriter( void * inUserData,
return 0;
}
-extern "C" int NeonSession_NeonAuth( void * inUserData,
+static int NeonSession_NeonAuth( void * inUserData,
#if defined NE_FEATURE_SSPI && ! defined SYSTEM_NEON
const char * inAuthProtocol,
#endif
@@ -256,6 +258,8 @@ extern "C" int NeonSession_NeonAuth( void * inUserData,
return theSession->NeonAuth(pAuthProtocol, inRealm, attempt, inoutUserName, inoutPassWord);
}
+}
+
int NeonSession::NeonAuth(const char* inAuthProtocol, const char* inRealm,
int attempt, char* inoutUserName, char * inoutPassWord)
{
@@ -376,7 +380,9 @@ namespace {
}
} // namespace
-extern "C" int NeonSession_CertificationNotify( void *userdata,
+extern "C" {
+
+static int NeonSession_CertificationNotify( void *userdata,
int,
const ne_ssl_certificate *cert )
{
@@ -384,6 +390,8 @@ extern "C" int NeonSession_CertificationNotify( void *userdata,
return pSession->CertificationNotify(cert);
}
+}
+
int NeonSession::CertificationNotify(const ne_ssl_certificate *cert)
{
osl::Guard< osl::Mutex > theGuard( m_aMutex );
@@ -528,7 +536,9 @@ int NeonSession::CertificationNotify(const ne_ssl_certificate *cert)
return 1;
}
-extern "C" void NeonSession_PreSendRequest( ne_request * req,
+extern "C" {
+
+static void NeonSession_PreSendRequest( ne_request * req,
void * userdata,
ne_buffer * headers )
{
@@ -539,6 +549,8 @@ extern "C" void NeonSession_PreSendRequest( ne_request * req,
pSession->PreSendRequest(req, headers);
}
+}
+
void NeonSession::PreSendRequest(ne_request* req, ne_buffer* headers)
{
osl::Guard< osl::Mutex > theGuard( m_aMutex );