Doxygen.
git-svn-id: https://pupnp.svn.sourceforge.net/svnroot/pupnp/trunk@402 119443c7-1b9e-41f8-b6fc-b9c35fce742c
This commit is contained in:
@@ -98,26 +98,33 @@
|
|||||||
/*! This structure is for virtual directory callbacks */
|
/*! This structure is for virtual directory callbacks */
|
||||||
struct VirtualDirCallbacks virtualDirCallback;
|
struct VirtualDirCallbacks virtualDirCallback;
|
||||||
|
|
||||||
/*! */
|
/*! Pointer to the virtual directory list. */
|
||||||
virtualDirList *pVirtualDirList;
|
virtualDirList *pVirtualDirList;
|
||||||
|
|
||||||
#ifdef INCLUDE_CLIENT_APIS
|
#ifdef INCLUDE_CLIENT_APIS
|
||||||
/*! Mutex to synchronize the subscription handling at the client side */
|
/*! Mutex to synchronize the subscription handling at the client side. */
|
||||||
ithread_mutex_t GlobalClientSubscribeMutex;
|
ithread_mutex_t GlobalClientSubscribeMutex;
|
||||||
#endif /* INCLUDE_CLIENT_APIS */
|
#endif /* INCLUDE_CLIENT_APIS */
|
||||||
|
|
||||||
/*! rwlock to synchronize handles (root device or control point handle) */
|
/*! rwlock to synchronize handles (root device or control point handle). */
|
||||||
ithread_rwlock_t GlobalHndRWLock;
|
ithread_rwlock_t GlobalHndRWLock;
|
||||||
|
|
||||||
/*! Mutex to synchronize the uuid creation process */
|
/*! Mutex to synchronize the uuid creation process. */
|
||||||
ithread_mutex_t gUUIDMutex;
|
ithread_mutex_t gUUIDMutex;
|
||||||
|
|
||||||
|
/*! Initialization mutex. */
|
||||||
ithread_mutex_t gSDKInitMutex = PTHREAD_MUTEX_INITIALIZER;
|
ithread_mutex_t gSDKInitMutex = PTHREAD_MUTEX_INITIALIZER;
|
||||||
|
|
||||||
|
/*! Global timer thread. */
|
||||||
TimerThread gTimerThread;
|
TimerThread gTimerThread;
|
||||||
|
|
||||||
|
/*! Send thread pool. */
|
||||||
ThreadPool gSendThreadPool;
|
ThreadPool gSendThreadPool;
|
||||||
|
|
||||||
|
/*! Receive thread pool. */
|
||||||
ThreadPool gRecvThreadPool;
|
ThreadPool gRecvThreadPool;
|
||||||
|
|
||||||
|
/*! Mini server thread pool. */
|
||||||
ThreadPool gMiniServerThreadPool;
|
ThreadPool gMiniServerThreadPool;
|
||||||
|
|
||||||
/*! Flag to indicate the state of web server */
|
/*! Flag to indicate the state of web server */
|
||||||
@@ -135,8 +142,10 @@ char gIF_IPV6[65]/* INET6_ADDRSTRLEN*/ = { '\0' };
|
|||||||
/*! Contains interface index. (extern'ed in upnp.h) */
|
/*! Contains interface index. (extern'ed in upnp.h) */
|
||||||
int gIF_INDEX = -1;
|
int gIF_INDEX = -1;
|
||||||
|
|
||||||
/*! local IPv4 and IPv6 ports for the mini-server */
|
/*! local IPv4 port for the mini-server */
|
||||||
unsigned short LOCAL_PORT_V4;
|
unsigned short LOCAL_PORT_V4;
|
||||||
|
|
||||||
|
/*! local IPv6 port for the mini-server */
|
||||||
unsigned short LOCAL_PORT_V6;
|
unsigned short LOCAL_PORT_V6;
|
||||||
|
|
||||||
/*! UPnP device and control point handle table */
|
/*! UPnP device and control point handle table */
|
||||||
@@ -194,18 +203,18 @@ int UpnpInit(const char *HostIP, unsigned short DestPort)
|
|||||||
{
|
{
|
||||||
int retVal;
|
int retVal;
|
||||||
|
|
||||||
ithread_mutex_lock( &gSDKInitMutex );
|
ithread_mutex_lock(&gSDKInitMutex);
|
||||||
|
|
||||||
// Check if we're already initialized.
|
// Check if we're already initialized.
|
||||||
if( UpnpSdkInit == 1 ) {
|
if( UpnpSdkInit == 1 ) {
|
||||||
ithread_mutex_unlock( &gSDKInitMutex );
|
ithread_mutex_unlock(&gSDKInitMutex);
|
||||||
return UPNP_E_INIT;
|
return UPNP_E_INIT;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Perform initialization preamble.
|
// Perform initialization preamble.
|
||||||
retVal = UpnpInitPreamble();
|
retVal = UpnpInitPreamble();
|
||||||
if( retVal != UPNP_E_SUCCESS ) {
|
if( retVal != UPNP_E_SUCCESS ) {
|
||||||
ithread_mutex_unlock( &gSDKInitMutex );
|
ithread_mutex_unlock(&gSDKInitMutex);
|
||||||
return retVal;
|
return retVal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -48,6 +48,7 @@
|
|||||||
#include "uri.h"
|
#include "uri.h"
|
||||||
|
|
||||||
|
|
||||||
|
/*! Maximum action header buffer length. */
|
||||||
#define HEADER_LENGTH 2000
|
#define HEADER_LENGTH 2000
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user