33 #ifndef SERVICE_TABLE_H
34 #define SERVICE_TABLE_H
61 #ifdef INCLUDE_DEVICE_APIS
83 int TotalSubscriptions;
184 const char *serviceId,
215 const char *controlURLPath);
234 Dbg_Module module) {}
254 Dbg_Module module) {}
274 Dbg_Module module) {}
330 const char *DefaultURLBase);
344 const char *DefaultURLBase);
372 const char *element_name,
Definition: service_table.h:64
Definition: service_table.h:75
int copy_subscription(subscription *in, subscription *out)
Makes a copy of the subscription.
Definition: service_table.c:60
subscription * GetFirstSubscription(service_info *service)
Gets pointer to the first subscription node in the service table.
Definition: service_table.c:190
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:446
void freeSubscriptionList(subscription *head)
Free's memory allocated for all the subscriptions in the service table.
Definition: service_table.c:225
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:389
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:121
Represents a list of URLs as in the "callback" header of SUBSCRIBE message in GENA. "char *" URLs holds dynamic memory.
Definition: uri.h:162
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:505
DOMString getElementValue(IXML_Node *node)
Returns the clone of the element value.
Definition: service_table.c:637
void freeSubscription(subscription *sub)
Free's the memory allocated for storing the URL of the subscription.
Definition: service_table.c:204
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:342
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:573
void freeServiceTable(service_table *table)
Free's dynamic memory in table (does not free table, only memory within the structure).
Definition: service_table.c:615
Definition: service_table.h:89
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:530
Data structure common to all types of nodes.
Definition: ixml.h:161
int addServiceTable(IXML_Node *node, service_table *in, const char *DefaultURLBase)
Add Service to the table.
Definition: service_table.c:1027
subscription * GetNextSubscription(service_info *service, subscription *current)
Get current and valid subscription from the service table.
Definition: service_table.c:157
void RemoveSubscriptionSID(Upnp_SID sid, service_info *service)
Definition: service_table.c:96
#define DOMString
The type of DOM strings.
Definition: ixml.h:55
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:952
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:670
int getServiceTable(IXML_Node *node, service_table *out, const char *DefaultURLBase)
Retrieve service from the table.
Definition: service_table.c:1080
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:256
char Upnp_SID[44]
Holds the subscription identifier for a subscription between a client and a device.
Definition: upnp.h:590
#define UPNP_INLINE
Declares an inline function.
Definition: UpnpGlobal.h:91
service_info * FindServiceEventURLPath(service_table *table, char *eventURLPath)
Traverses the service table and finds the node whose event URL Path matches a know value...
Definition: service_table.c:293