const char* mupnp_http_header_getvalue(mUpnpHttpHeader* header) { mupnp_log_debug_l4("Entering...\n"); return mupnp_string_getvalue(header->value); mupnp_log_debug_l4("Leaving...\n"); }
void mupnp_http_header_setvalue(mUpnpHttpHeader* header, const char* value) { mupnp_log_debug_l4("Entering...\n"); mupnp_string_setvalue(header->value, value); mupnp_log_debug_l4("Leaving...\n"); }
bool mupnp_controlpoint_lock(mUpnpControlPoint *ctrlPoint) { mupnp_log_debug_l4("Entering...\n"); return mupnp_mutex_lock(ctrlPoint->mutex); mupnp_log_debug_l4("Leaving...\n"); }
static void mupnp_action_initchildnodes(mUpnpAction *action) { mupnp_log_debug_l4("Entering...\n"); mupnp_action_initargumentlist(action); mupnp_log_debug_l4("Leaving...\n"); }
void mupnp_net_interface_setaddress(mUpnpNetworkInterface *netIf, char *value) { mupnp_log_debug_l4("Entering...\n"); mupnp_string_setvalue(netIf->ipaddr, value); mupnp_log_debug_l4("Leaving...\n"); }
int mupnp_ssdp_getannouncecount() { mupnp_log_debug_l4("Entering...\n"); return ssdpAnnounceCount; mupnp_log_debug_l4("Leaving...\n"); }
void mupnp_ssdp_setipv6address(const char *addr) { mupnp_log_debug_l4("Entering...\n"); ssdpIPv6Address = MUPNP_SSDP_IPV6_LINK_LOCAL_ADDRESS; mupnp_log_debug_l4("Leaving...\n"); }
void mupnp_ssdp_setannouncecount(int count) { mupnp_log_debug_l4("Entering...\n"); ssdpAnnounceCount = count; mupnp_log_debug_l4("Leaving...\n"); }
char *mupnp_net_interface_getnetmask(mUpnpNetworkInterface *netIf) { mupnp_log_debug_l4("Entering...\n"); return mupnp_string_getvalue(netIf->netmask); mupnp_log_debug_l4("Leaving...\n"); }
void mupnp_ssdprequest_delete(mUpnpSSDPRequest *ssdpReq) { mupnp_log_debug_l4("Entering...\n"); mupnp_http_request_delete(ssdpReq); mupnp_log_debug_l4("Leaving...\n"); }
void mupnp_net_interface_setname(mUpnpNetworkInterface *netIf, char *name) { mupnp_log_debug_l4("Entering...\n"); mupnp_string_setvalue(netIf->name, name); mupnp_log_debug_l4("Leaving...\n"); }
/** * Delete a event listener list. * * @param eventListenerList The event listener list to delete * */ void mupnp_eventlistenerlist_delete(mUpnpEventListenerList* eventListenerList) { mupnp_log_debug_l4("Entering...\n"); mupnp_eventlistenerlist_clear(eventListenerList); free(eventListenerList); mupnp_log_debug_l4("Leaving...\n"); }
void mupnp_net_setinterface(const char* ifaddr) { mupnp_log_debug_l4("Entering...\n"); mupnp_strcpy(InterfaceAddress, ifaddr); IsInterfaceAddressInitialized = true; mupnp_log_debug_l4("Leaving...\n"); }
void mupnp_action_setactionnode(mUpnpAction *action, mUpnpXmlNode *node) { mupnp_log_debug_l4("Entering...\n"); action->actionNode = node; mupnp_action_initchildnodes(action); mupnp_log_debug_l4("Leaving...\n"); }
void mupnp_actionlist_delete(mUpnpActionList *actionList) { mupnp_log_debug_l4("Entering...\n"); mupnp_list_remove((mUpnpList *)actionList); free(actionList); mupnp_log_debug_l4("Leaving...\n"); }
void mupnp_xml_attributelist_delete(mUpnpXmlAttributeList* attrList) { mupnp_log_debug_l4("Entering...\n"); mupnp_xml_attributelist_clear(attrList); free(attrList); mupnp_log_debug_l4("Leaving...\n"); }
void mupnp_http_headerlist_delete(mUpnpHttpHeaderList *headerList) { mupnp_log_debug_l4("Entering...\n"); mupnp_http_headerlist_clear(headerList); free(headerList); mupnp_log_debug_l4("Leaving...\n"); }
void mupnp_http_persistentconnection_unlock(void) { mupnp_log_debug_l4("Entering...\n"); if (persistent_connection_mutex == NULL) return; mupnp_mutex_unlock(persistent_connection_mutex); mupnp_log_debug_l4("Leaving...\n"); }
void mupnp_iconlist_delete(mUpnpIconList* iconList) { mupnp_log_debug_l4("Entering...\n"); mupnp_list_remove((mUpnpList*)iconList); free(iconList); mupnp_log_debug_l4("Leaving...\n"); }
void mupnp_event_subscription_request_setunsubscription(mUpnpSubscriptionRequest* subReq, mUpnpService* service) { mupnp_log_debug_l4("Entering...\n"); mupnp_http_request_setmethod(subReq, MUPNP_HTTP_UNSUBSCRIBE); mupnp_event_subscription_request_setservice(subReq, service); mupnp_event_subscription_request_setsid(subReq, mupnp_service_getsubscriptionsid(service)); mupnp_log_debug_l4("Leaving...\n"); }
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"); }
void mupnp_devicelist_delete(mUpnpDeviceList* devList) { mupnp_log_debug_l4("Entering...\n"); mupnp_devicelist_clear(devList); free(devList); mupnp_log_debug_l4("Leaving...\n"); }
void mupnp_dictionary_delete(mUpnpDictionary *dictionaryList) { mupnp_log_debug_l4("Entering...\n"); mupnp_dictionary_clear(dictionaryList); free(dictionaryList); mupnp_log_debug_l4("Leaving...\n"); }
void mupnp_xml_node_addchildnode(mUpnpXmlNode *node, mUpnpXmlNode *cnode) { mupnp_log_debug_l4("Entering...\n"); mupnp_xml_nodelist_add(node->nodeList, cnode); mupnp_xml_node_setparentnode(cnode, node); mupnp_log_debug_l4("Leaving...\n"); }
/** * Renew a subscription. Essentially sets subscription time (duration) * to zero and resets notify count (== event key). * * @param sub The event subscriber */ void mupnp_subscriber_renew(mUpnpSubscriber* sub) { mupnp_log_debug_l4("Entering...\n"); //Theo Beisch use clinkc time mupnp_subscriber_setsubscriptiontime(sub, mupnp_getcurrentsystemtime()); mupnp_log_debug_l4("Leaving...\n"); }
void mupnp_filelist_delete(mUpnpFileList *fileList) { mupnp_log_debug_l4("Entering...\n"); mupnp_filelist_clear(fileList); free(fileList); mupnp_log_debug_l4("Leaving...\n"); }
void mupnp_ssdp_packet_clear(mUpnpSSDPPacket *ssdpPkt) { mupnp_log_debug_l4("Entering...\n"); mupnp_socket_datagram_packet_setdata(ssdpPkt->dgmPkt, NULL); mupnp_http_headerlist_clear(ssdpPkt->headerList); mupnp_log_debug_l4("Leaving...\n"); }
const char *mupnp_controlpoint_geteventsubcallbackurl(mUpnpControlPoint *ctrlPoint, char *ifaddr, char *buf, size_t bufLen) { mupnp_log_debug_l4("Entering...\n"); /**** Thanks for Theo Beisch (2005/08/25) ****/ return mupnp_net_getmodifierhosturl(ifaddr, mupnp_controlpoint_geteventport(ctrlPoint), mupnp_controlpoint_geteventsuburi(ctrlPoint), "<", ">", buf, bufLen); mupnp_log_debug_l4("Leaving...\n"); }
void mupnp_http_response_setstatuscode(mUpnpHttpResponse* httpRes, int value) { mupnp_log_debug_l4("Entering...\n"); httpRes->statusCode = value; mupnp_http_response_setreasonphrase(httpRes, (char*)mupnp_http_statuscode2reasonphrase(value)); mupnp_log_debug_l4("Leaving...\n"); }
void mupnp_event_subscription_request_setrenewsubscription(mUpnpSubscriptionRequest* subReq, mUpnpService* service, const char* uuid, mUpnpTime timeout) { mupnp_log_debug_l4("Entering...\n"); mupnp_http_request_setmethod(subReq, MUPNP_HTTP_SUBSCRIBE); mupnp_event_subscription_request_setservice(subReq, service); mupnp_event_subscription_request_setsid(subReq, uuid); mupnp_event_subscription_request_settimeout(subReq, timeout); mupnp_log_debug_l4("Leaving...\n"); }