#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>
Defines |
| #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) |
Functions |
| static void | cg_upnp_device_getrequestrecieved (CgUpnpDevice *dev, CgHttpRequest *httpReq) |
| static void | cg_upnp_device_postrequestrecieved (CgUpnpDevice *dev, CgHttpRequest *httpReq) |
| static void | cg_upnp_device_soapactionrecieved (CgUpnpDevice *dev, CgSoapRequest *soapReq) |
| static void | cg_upnp_device_controlrequestrecieved (CgUpnpService *service, CgSoapRequest *soapReq) |
| static void | cg_upnp_device_actioncontrolrequestrecieved (CgUpnpService *service, CgUpnpActionRequest *actionReq) |
| static void | cg_upnp_device_querycontrolrequestrecieved (CgUpnpService *service, CgUpnpQueryRequest *queryReq) |
| static void | cg_upnp_device_subscriptionrecieved (CgUpnpDevice *dev, CgUpnpSubscriptionRequest *subReq) |
| static void | cg_upnp_device_newsubscriptionrecieved (CgUpnpService *service, CgUpnpSubscriptionRequest *subReq) |
| static void | cg_upnp_device_renewsubscriptionrecieved (CgUpnpService *service, CgUpnpSubscriptionRequest *subReq) |
| static void | cg_upnp_device_unsubscriptionrecieved (CgUpnpService *service, CgUpnpSubscriptionRequest *subReq) |
| void | cg_upnp_device_httprequestrecieved (CgHttpRequest *httpReq) |
| void | cg_upnp_device_seturlbase (CgUpnpDevice *dev, char *value) |
| static void | cg_upnp_device_updateurlbase (CgUpnpDevice *dev, char *host) |
| static char * | cg_upnp_device_getdescription (CgUpnpDevice *dev, char *ifAddr, CgString *descStr) |
| static void | cg_upnp_device_badsoapactionrecieved (CgHttpRequest *httpReq) |
| static void | cg_upnp_device_invalidcontrolrecieved (CgSoapRequest *soapReq, int code) |
| static void | cg_upnp_device_badsubscriptionrecieved (CgUpnpSubscriptionRequest *subReq, int code) |
Define Documentation
| #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) |
Function Documentation
| static void cg_upnp_device_badsoapactionrecieved |
( |
CgHttpRequest * |
httpReq | ) |
[static] |
| static char* cg_upnp_device_getdescription |
( |
CgUpnpDevice * |
dev, |
|
|
char * |
ifAddr, |
|
|
CgString * |
descStr |
|
) |
| [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.
- Parameters:
-
| httpReq | Received HTTP request |
| static void cg_upnp_device_invalidcontrolrecieved |
( |
CgSoapRequest * |
soapReq, |
|
|
int |
code |
|
) |
| [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.
- Parameters:
-
| dev | Device in question |
| value | The URL base |
| static void cg_upnp_device_updateurlbase |
( |
CgUpnpDevice * |
dev, |
|
|
char * |
host |
|
) |
| [static] |