|
Data Structures |
| struct | _CgUpnpControlPoint |
Defines |
| #define | CG_UPNP_CONTROLPOINT_SSDP_DEFAULT_SEARCH_MX 3 |
| #define | CG_UPNP_CONTROLPOINT_SSDP_MIN_DELAY 20 |
| #define | CG_UPNP_CONTROLPOINT_SSDP_RESPONSE_DEFAULT_PORT 39400 |
| #define | CG_UPNP_CONTROLPOINT_SSDP_RESPONSE_PORT_MAX_TRIES_INDEX 80 |
| #define | CG_UPNP_CONTROLPOINT_HTTP_EVENT_DEFAULT_PORT 39500 |
| #define | CG_UPNP_CONTROLPOINT_HTTP_EVENTSUB_URI "/eventSub" |
| #define | cg_upnp_controlpoint_getssdpserverlist(ctrlPoint) (ctrlPoint->ssdpServerList) |
| #define | cg_upnp_controlpoint_getssdpresponseserverlist(ctrlPoint) (ctrlPoint->ssdpResServerList) |
| #define | cg_upnp_controlpoint_gethttpserverlist(ctrlPoint) (ctrlPoint->httpServerList) |
| #define | cg_upnp_controlpoint_setssdplistener(ctrlPoint, func) (ctrlPoint->ssdpListener = func) |
| #define | cg_upnp_controlpoint_getssdplistener(ctrlPoint) (ctrlPoint->ssdpListener) |
| #define | cg_upnp_controlpoint_setssdpresponselistener(ctrlPoint, func) (ctrlPoint->ssdpResListener = func) |
| #define | cg_upnp_controlpoint_getssdpresponselistener(ctrlPoint) (ctrlPoint->ssdpResListener) |
| #define | cg_upnp_controlpoint_setdevicelistener(ctrlPoint, func) (ctrlPoint->deviceListener = func) |
| #define | cg_upnp_controlpoint_getdevicelistener(ctrlPoint) (ctrlPoint->deviceListener) |
| #define | cg_upnp_controlpoint_addeventlistener(ctrlPoint, listener) (cg_upnp_eventlistenerlist_add(ctrlPoint->eventListeners, listener)) |
| #define | cg_upnp_controlpoint_removeeventlistener(ctrlPoint, listener) (cg_upnp_eventlistenerlist_remove(ctrlPoint->eventListeners, listener)) |
| #define | cg_upnp_controlpoint_seteventlistener(ctrlPoint, evlistener) |
| #define | cg_upnp_controlpoint_geteventlistener(ctrlPoint) (ctrlPoint->eventListeners->next->listener) |
| #define | cg_upnp_controlpoint_geteventlisteners(ctrlPoint) (ctrlPoint->eventListeners) |
| #define | cg_upnp_controlpoint_setssdpresponseport(ctrlPoint, port) (ctrlPoint->ssdpResPort = port) |
| #define | cg_upnp_controlpoint_getssdpresponseport(ctrlPoint) (ctrlPoint->ssdpResPort) |
| #define | cg_upnp_controlpoint_seteventport(ctrlPoint, port) (ctrlPoint->httpEventPort = port) |
| #define | cg_upnp_controlpoint_geteventport(ctrlPoint) (ctrlPoint->httpEventPort) |
| #define | cg_upnp_controlpoint_seteventsuburi(ctrlPoint, uri) cg_string_setvalue(ctrlPoint->httpEventURI, uri) |
| #define | cg_upnp_controlpoint_geteventsuburi(ctrlPoint) cg_string_getvalue(ctrlPoint->httpEventURI) |
| #define | cg_upnp_controlpoint_setssdpsearchmx(ctrlPoint, value) (ctrlPoint->ssdpSearchMx = value) |
| #define | cg_upnp_controlpoint_getssdpsearchmx(ctrlPoint) (ctrlPoint->ssdpSearchMx) |
| #define | cg_upnp_controlpoint_sethttplistener(ctrlPoint, func) (ctrlPoint->httpListener = func) |
| #define | cg_upnp_controlpoint_gethttplistener(ctrlPoint) (ctrlPoint->httpListener) |
| #define | cg_upnp_controlpoint_setuserdata(ctrlPoint, value) (ctrlPoint->userData = value) |
| #define | cg_upnp_controlpoint_getuserdata(dev) (ctrlPoint->userData) |
| #define | cg_upnp_controlpoint_getdevices(ctrlPoint) cg_upnp_devicelist_gets(ctrlPoint->deviceList) |
| #define | cg_upnp_controlpoint_getndevices(ctrlPoint) cg_upnp_devicelist_size(ctrlPoint->deviceList) |
| #define | cg_upnp_controlpoint_adddevice(ctrlPoint, dev) cg_upnp_devicelist_add(ctrlPoint->deviceList, dev) |
Typedefs |
| typedef enum _CgUpnpDeviceStatus | CgUpnpDeviceStatus |
| typedef void(* | CG_UPNP_DEVICE_LISTENER )(char *udn, CgUpnpDeviceStatus status) |
| typedef _CgUpnpControlPoint | CgUpnpControlPoint |
Enumerations |
| enum | _CgUpnpDeviceStatus { CgUpnpDeviceStatusAdded = 0,
CgUpnpDeviceStatusUpdated,
CgUpnpDeviceStatusInvalid,
CgUpnpDeviceStatusRemoved
} |
Functions |
| CgUpnpControlPoint * | cg_upnp_controlpoint_new () |
| void | cg_upnp_controlpoint_delete (CgUpnpControlPoint *ctrlPoint) |
| BOOL | cg_upnp_controlpoint_start (CgUpnpControlPoint *ctrlPoint) |
| BOOL | cg_upnp_controlpoint_stop (CgUpnpControlPoint *ctrlPoint) |
| BOOL | cg_upnp_controlpoint_lock (CgUpnpControlPoint *ctrlPoint) |
| BOOL | cg_upnp_controlpoint_unlock (CgUpnpControlPoint *ctrlPoint) |
| CgUpnpDevice * | cg_upnp_controlpoint_getdevicebyexacttype (CgUpnpControlPoint *ctrlPoint, char *exacttype) |
| CgUpnpDevice * | cg_upnp_controlpoint_getdevicebytype (CgUpnpControlPoint *ctrlPoint, char *type) |
| CgUpnpDevice * | cg_upnp_controlpoint_getdevicebyudn (CgUpnpControlPoint *ctrlPoint, char *udn) |
| BOOL | cg_upnp_controlpoint_search (CgUpnpControlPoint *ctrlPoint, char *target) |
| void | cg_upnp_controlpoint_httprequestreceived (CgHttpRequest *httpReq) |
| void | cg_upnp_controlpoint_updatestatetablefromproperty (CgUpnpService *service, CgUpnpProperty *prop) |
| BOOL | cg_upnp_controlpoint_parsescservicescpd (CgUpnpService *service) |
| BOOL | cg_upnp_controlpoint_parseservicesfordevice (CgUpnpDevice *dev, CgUpnpSSDPPacket *ssdpPkt) |
| void | cg_upnp_controlpoint_adddevicebyssdppacket (CgUpnpControlPoint *ctrlPoint, CgUpnpSSDPPacket *ssdpPkt) |
| void | cg_upnp_controlpoint_removedevicebyssdppacket (CgUpnpControlPoint *ctrlPoint, CgUpnpSSDPPacket *ssdpPkt) |
| BOOL | cg_upnp_controlpoint_subscribe (CgUpnpControlPoint *ctrlPoint, CgUpnpService *service, long timeout) |
| BOOL | cg_upnp_controlpoint_resubscribe (CgUpnpControlPoint *ctrlPoint, CgUpnpService *service, long timeout) |
| BOOL | cg_upnp_controlpoint_unsubscribe (CgUpnpControlPoint *ctrlPoint, CgUpnpService *service) |
| BOOL | cg_upnp_controlpoint_subscribeall (CgUpnpControlPoint *ctrlPoint, CgUpnpDevice *dev, long timeout) |
| BOOL | cg_upnp_controlpoint_resubscribeall (CgUpnpControlPoint *ctrlPoint, CgUpnpDevice *dev, long timeout) |
| BOOL | cg_upnp_controlpoint_unsubscribeall (CgUpnpControlPoint *ctrlPoint, CgUpnpDevice *dev) |
| void | cg_upnp_controlpoint_expirationhandler (CgThread *thread) |
| BOOL | cg_upnp_controlpoint_ipchanged (CgUpnpControlPoint *ctrlpoint) |
| char * | cg_upnp_controlpoint_geteventsubcallbackurl (CgUpnpControlPoint *ctrlPoint, char *ifaddr, char *buf, int bufLen) |