Merge of trunk.
git-svn-id: https://pupnp.svn.sourceforge.net/svnroot/pupnp/branches/branch-1.4.x@133 119443c7-1b9e-41f8-b6fc-b9c35fce742c
This commit is contained in:
parent
4bcb9dd5e1
commit
aec58e6c9e
@ -3713,8 +3713,6 @@ FreeHandle( int Upnp_Handle )
|
|||||||
|
|
||||||
} /****************** End of FreeHandle *********************/
|
} /****************** End of FreeHandle *********************/
|
||||||
|
|
||||||
// **DBG****************************************************
|
|
||||||
//DBGONLY(
|
|
||||||
|
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
* Function: PrintHandleInfo
|
* Function: PrintHandleInfo
|
||||||
@ -3728,56 +3726,61 @@ FreeHandle( int Upnp_Handle )
|
|||||||
* Return Values: int
|
* Return Values: int
|
||||||
* UPNP_E_SUCCESS if successful else return appropriate error
|
* UPNP_E_SUCCESS if successful else return appropriate error
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
int PrintHandleInfo( IN UpnpClient_Handle Hnd ) {
|
int PrintHandleInfo( IN UpnpClient_Handle Hnd )
|
||||||
struct Handle_Info * HndInfo; if( HandleTable[Hnd] != NULL ) {
|
{
|
||||||
HndInfo = HandleTable[Hnd];
|
struct Handle_Info * HndInfo;
|
||||||
DBGONLY( UpnpPrintf( UPNP_ALL, API, __FILE__, __LINE__,
|
if (HandleTable[Hnd] != NULL) {
|
||||||
"Printing information for Handle_%d\n",
|
HndInfo = HandleTable[Hnd];
|
||||||
Hnd );
|
DBGONLY(
|
||||||
UpnpPrintf( UPNP_ALL, API, __FILE__, __LINE__,
|
UpnpPrintf(UPNP_ALL, API, __FILE__, __LINE__,
|
||||||
"HType_%d\n", HndInfo->HType );
|
"Printing information for Handle_%d\n", Hnd);
|
||||||
DEVICEONLY(
|
UpnpPrintf(UPNP_ALL, API, __FILE__, __LINE__,
|
||||||
if( HndInfo->HType !=
|
"HType_%d\n", HndInfo->HType);
|
||||||
HND_CLIENT ) UpnpPrintf( UPNP_ALL, API, __FILE__,
|
DEVICEONLY(
|
||||||
__LINE__, "DescURL_%s\n",
|
if(HndInfo->HType != HND_CLIENT)
|
||||||
HndInfo->DescURL ); )
|
UpnpPrintf( UPNP_ALL, API, __FILE__, __LINE__,
|
||||||
)
|
"DescURL_%s\n", HndInfo->DescURL );
|
||||||
}
|
)
|
||||||
else
|
)
|
||||||
{
|
} else {
|
||||||
return UPNP_E_INVALID_HANDLE;}
|
return UPNP_E_INVALID_HANDLE;
|
||||||
|
}
|
||||||
|
|
||||||
|
return UPNP_E_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
return UPNP_E_SUCCESS;}
|
|
||||||
/****************** End of PrintHandleInfo *********************/
|
/****************** End of PrintHandleInfo *********************/
|
||||||
|
|
||||||
void printNodes( IXML_Node * tmpRoot, int depth ) {
|
void printNodes( IXML_Node * tmpRoot, int depth )
|
||||||
int i;
|
{
|
||||||
IXML_NodeList * NodeList1;
|
int i;
|
||||||
IXML_Node * ChildNode1;
|
IXML_NodeList *NodeList1;
|
||||||
unsigned short NodeType;
|
IXML_Node *ChildNode1;
|
||||||
const DOMString NodeValue;
|
unsigned short NodeType;
|
||||||
const DOMString NodeName;
|
const DOMString NodeValue;
|
||||||
NodeList1 = ixmlNode_getChildNodes( tmpRoot );
|
const DOMString NodeName;
|
||||||
for( i = 0; i < 100; i++ ) {
|
NodeList1 = ixmlNode_getChildNodes(tmpRoot);
|
||||||
ChildNode1 = ixmlNodeList_item( NodeList1, i );
|
for (i = 0; i < 100; ++i) {
|
||||||
if( ChildNode1 == NULL ) {
|
ChildNode1 = ixmlNodeList_item(NodeList1, i);
|
||||||
break;}
|
if (ChildNode1 == NULL) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
printNodes(ChildNode1, depth+1);
|
||||||
|
NodeType = ixmlNode_getNodeType(ChildNode1);
|
||||||
|
NodeValue = ixmlNode_getNodeValue(ChildNode1);
|
||||||
|
NodeName = ixmlNode_getNodeName(ChildNode1);
|
||||||
|
DBGONLY(
|
||||||
|
UpnpPrintf(UPNP_ALL, API, __FILE__, __LINE__,
|
||||||
|
"DEPTH-%2d-IXML_Node Type %d, "
|
||||||
|
"IXML_Node Name: %s, IXML_Node Value: %s\n",
|
||||||
|
depth, NodeType, NodeName, NodeValue);
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
printNodes( ChildNode1, depth + 1 );
|
|
||||||
NodeType = ixmlNode_getNodeType( ChildNode1 );
|
|
||||||
NodeValue = ixmlNode_getNodeValue( ChildNode1 );
|
|
||||||
NodeName = ixmlNode_getNodeName( ChildNode1 );
|
|
||||||
DBGONLY( UpnpPrintf( UPNP_ALL, API, __FILE__, __LINE__,
|
|
||||||
"DEPTH-%2d-IXML_Node Type %d, "
|
|
||||||
"IXML_Node Name: %s, IXML_Node Value: %s\n",
|
|
||||||
depth, NodeType, NodeName, NodeValue ); )
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
/****************** End of printNodes *********************/
|
/****************** End of printNodes *********************/
|
||||||
|
|
||||||
// ) // dbgonly
|
|
||||||
|
|
||||||
//********************************************************
|
//********************************************************
|
||||||
//* Name: getlocalhostname
|
//* Name: getlocalhostname
|
||||||
//* Description: Function to get local IP address
|
//* Description: Function to get local IP address
|
||||||
|
Loading…
Reference in New Issue
Block a user