33#ifndef SERVICE_TABLE_H
34#define SERVICE_TABLE_H
54#define SID_SIZE (size_t)41
80 int TotalSubscriptions;
85#ifdef INCLUDE_DEVICE_APIS
87extern void freeSubscriptionQueuedEvents(
subscription *sub);
177 const char *serviceId,
193 const char *eventURLPath);
206 const char *controlURLPath);
221 #define printService(service, level, module) \
239 #define printServiceList(service, level, module) \
258 #define printServiceTable(table, level, module) \
311 const char *DefaultURLBase);
325 const char *DefaultURLBase);
350 const char *element_name,
char Upnp_SID[44]
Holds the subscription identifier for a subscription between a client and a device.
Definition upnp.h:448
#define DOMString
The type of DOM strings.
Definition ixml.h:48
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:325
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:371
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:538
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:699
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:181
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:117
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:566
int copy_subscription(subscription *in, subscription *out)
Makes a copy of the subscription.
Definition service_table.c:60
void freeServiceTable(service_table *table)
Free's dynamic memory in table (does not free table, only memory within the structure).
Definition service_table.c:649
int addServiceTable(IXML_Node *node, service_table *in, const char *DefaultURLBase)
Add Service to the table.
Definition service_table.c:1030
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:608
void freeSubscription(subscription *sub)
Free's the memory allocated for storing the URL of the subscription.
Definition service_table.c:194
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:944
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:278
void RemoveSubscriptionSID(Upnp_SID sid, service_info *service)
Definition service_table.c:94
int getServiceTable(IXML_Node *node, service_table *out, const char *DefaultURLBase)
Retrieve service from the table.
Definition service_table.c:1078
void freeSubscriptionList(subscription *head)
Free's memory allocated for all the subscriptions in the service table.
Definition service_table.c:215
subscription * GetNextSubscription(service_info *service, subscription *current)
Get current and valid subscription from the service table.
Definition service_table.c:150
DOMString getElementValue(IXML_Node *node)
Returns the clone of the element value.
Definition service_table.c:669
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:243
Definition LinkedList.h:84
Definition service_table.h:72
Definition service_table.h:90
Definition service_table.h:57
Represents a list of URLs as in the "callback" header of SUBSCRIBE message in GENA....
Definition uri.h:148
Data structure common to all types of nodes.
Definition ixml.h:136