コード例 #1
0
ファイル: xml_node_list.c プロジェクト: dwlinux/mupnpc
void mupnp_xml_nodelist_delete(mUpnpXmlNodeList *nodeList)
{
	mupnp_log_debug_l4("Entering...\n");

	mupnp_xml_nodelist_clear(nodeList);
	free(nodeList);

	mupnp_log_debug_l4("Leaving...\n");
}
コード例 #2
0
ファイル: soap_request.c プロジェクト: WilliamRen/mupnpc
void mupnp_soap_request_clear(mUpnpSoapRequest *soapReq)
{
	mupnp_log_debug_l4("Entering...\n");

	mupnp_xml_nodelist_clear(soapReq->rootNodeList);

	if (soapReq->isHttpReqCreated == true)
		mupnp_http_request_delete(soapReq->httpReq);

	soapReq->httpReq = mupnp_http_request_new();
	soapReq->isHttpReqCreated = true;
	mupnp_http_request_setcontenttype(soapReq->httpReq, MUPNP_SOAP_CONTENT_TYPE);
	mupnp_http_request_setmethod(soapReq->httpReq, MUPNP_HTTP_POST);

	mupnp_log_debug_l4("Leaving...\n");
}