#include <cybergarage/upnp/cdevice.h>
#include <cybergarage/upnp/cupnp.h>
#include <cybergarage/http/chttp.h>
#include <cybergarage/net/curl.h>
#include <cybergarage/upnp/control/ccontrol.h>
#include <cybergarage/upnp/event/cevent.h>
#include <cybergarage/util/clog.h>
#define cg_upnp_device_invalidactioncontrolrecieved | ( | actionReq | ) | cg_upnp_device_invalidcontrolrecieved(cg_upnp_control_action_request_getsoaprequest(actionReq), CG_UPNP_STATUS_INVALID_ACTION) |
#define cg_upnp_device_invalidquerycontrolrecieved | ( | queryReq | ) | cg_upnp_device_invalidcontrolrecieved(cg_upnp_control_query_request_getsoaprequest(queryReq), CG_UPNP_STATUS_INVALID_VAR) |
static void cg_upnp_device_actioncontrolrequestrecieved | ( | CgUpnpService * | service, | |
CgUpnpActionRequest * | actionReq | |||
) | [static] |
static void cg_upnp_device_badsoapactionrecieved | ( | CgHttpRequest * | httpReq | ) | [static] |
static void cg_upnp_device_badsubscriptionrecieved | ( | CgUpnpSubscriptionRequest * | subReq, | |
int | code | |||
) | [static] |
static void cg_upnp_device_controlrequestrecieved | ( | CgUpnpService * | service, | |
CgSoapRequest * | soapReq | |||
) | [static] |
static char* cg_upnp_device_getdescription | ( | CgUpnpDevice * | dev, | |
char * | ifAddr, | |||
CgString * | descStr | |||
) | [static] |
static void cg_upnp_device_getrequestrecieved | ( | CgUpnpDevice * | dev, | |
CgHttpRequest * | httpReq | |||
) | [static] |
void cg_upnp_device_httprequestrecieved | ( | CgHttpRequest * | httpReq | ) |
Handler function for a received HTTP request. Delegates GET and POST requests to their respective handlers, or treats as a BAD REQUEST, when appropriate.
httpReq | Received HTTP request |
static void cg_upnp_device_invalidcontrolrecieved | ( | CgSoapRequest * | soapReq, | |
int | code | |||
) | [static] |
static void cg_upnp_device_newsubscriptionrecieved | ( | CgUpnpService * | service, | |
CgUpnpSubscriptionRequest * | subReq | |||
) | [static] |
static void cg_upnp_device_postrequestrecieved | ( | CgUpnpDevice * | dev, | |
CgHttpRequest * | httpReq | |||
) | [static] |
static void cg_upnp_device_querycontrolrequestrecieved | ( | CgUpnpService * | service, | |
CgUpnpQueryRequest * | queryReq | |||
) | [static] |
static void cg_upnp_device_renewsubscriptionrecieved | ( | CgUpnpService * | service, | |
CgUpnpSubscriptionRequest * | subReq | |||
) | [static] |
void cg_upnp_device_seturlbase | ( | CgUpnpDevice * | dev, | |
char * | value | |||
) |
Modify the device's URL base The base URL is the root for all relative URLs.
dev | Device in question | |
value | The URL base |
static void cg_upnp_device_soapactionrecieved | ( | CgUpnpDevice * | dev, | |
CgSoapRequest * | soapReq | |||
) | [static] |
static void cg_upnp_device_subscriptionrecieved | ( | CgUpnpDevice * | dev, | |
CgUpnpSubscriptionRequest * | subReq | |||
) | [static] |
static void cg_upnp_device_unsubscriptionrecieved | ( | CgUpnpService * | service, | |
CgUpnpSubscriptionRequest * | subReq | |||
) | [static] |
static void cg_upnp_device_updateurlbase | ( | CgUpnpDevice * | dev, | |
char * | host | |||
) | [static] |