33#ifndef SERVICE_TABLE_H
34#define SERVICE_TABLE_H
54#define SID_SIZE (size_t)41
56#ifdef INCLUDE_DEVICE_APIS
72extern void freeSubscriptionQueuedEvents(
subscription *sub);
82 int TotalSubscriptions;
173 const char *serviceId,
189 const char *eventURLPath);
202 const char *controlURLPath);
327 const char *DefaultURLBase);
340 const char *DefaultURLBase);
365 const char *element_name,
#define UPNP_INLINE
Declares an inline function.
Definition: UpnpGlobal.h:99
char Upnp_SID[44]
Holds the subscription identifier for a subscription between a client and a device.
Definition: upnp.h:445
#define DOMString
The type of DOM strings.
Definition: ixml.h:59
service_info * FindServiceControlURLPath(service_table *table, const char *controlURLPath)
Traverses the service table and finds the node whose control URL Path matches a know value.
Definition: service_table.c:348
void printService(service_info *service, Upnp_LogLevel level, Dbg_Module module)
For debugging purposes prints information from the service passed into the function.
Definition: service_table.c:396
void printServiceTable(service_table *table, Upnp_LogLevel level, Dbg_Module module)
For debugging purposes prints the URL base of the table and information of each service from the serv...
Definition: service_table.c:512
int getSubElement(const char *element_name, IXML_Node *node, IXML_Node **out)
Traverses through a list of XML nodes to find the node with the known element name.
Definition: service_table.c:678
void printServiceList(service_info *service, Upnp_LogLevel level, Dbg_Module module)
For debugging purposes prints information of each service from the service table passed into the func...
Definition: service_table.c:453
subscription * GetFirstSubscription(service_info *service)
Gets pointer to the first subscription node in the service table.
Definition: service_table.c:192
subscription * GetSubscriptionSID(const Upnp_SID sid, service_info *service)
Return the subscription from the service table that matches const Upnp_SID sid value.
Definition: service_table.c:123
void freeService(service_info *in)
Free's memory allocated for the various components of the service entry in the service table.
Definition: service_table.c:538
int copy_subscription(subscription *in, subscription *out)
Makes a copy of the subscription.
Definition: service_table.c:62
void freeServiceTable(service_table *table)
Free's dynamic memory in table (does not free table, only memory within the structure).
Definition: service_table.c:623
int addServiceTable(IXML_Node *node, service_table *in, const char *DefaultURLBase)
Add Service to the table.
Definition: service_table.c:992
void freeServiceList(service_info *head)
Free's memory allocated for the various components of each service entry in the service table.
Definition: service_table.c:581
void freeSubscription(subscription *sub)
Free's the memory allocated for storing the URL of the subscription.
Definition: service_table.c:206
int removeServiceTable(IXML_Node *node, service_table *in)
This function assumes that services for a particular root device are placed linearly in the service t...
Definition: service_table.c:917
service_info * FindServiceEventURLPath(service_table *table, const char *eventURLPath)
Traverses the service table and finds the node whose event URL Path matches a know value.
Definition: service_table.c:296
void RemoveSubscriptionSID(Upnp_SID sid, service_info *service)
Definition: service_table.c:98
int getServiceTable(IXML_Node *node, service_table *out, const char *DefaultURLBase)
Retrieve service from the table.
Definition: service_table.c:1045
void freeSubscriptionList(subscription *head)
Free's memory allocated for all the subscriptions in the service table.
Definition: service_table.c:228
subscription * GetNextSubscription(service_info *service, subscription *current)
Get current and valid subscription from the service table.
Definition: service_table.c:159
DOMString getElementValue(IXML_Node *node)
Returns the clone of the element value.
Definition: service_table.c:645
service_info * FindServiceId(service_table *table, const char *serviceId, const char *UDN)
Traverses through the service table and returns a pointer to the service node that matches a known se...
Definition: service_table.c:259
Definition: LinkedList.h:84
Definition: service_table.h:74
Definition: service_table.h:87
Definition: service_table.h:58
Represents a list of URLs as in the "callback" header of SUBSCRIBE message in GENA....
Definition: uri.h:149
Data structure common to all types of nodes.
Definition: ixml.h:173