33 #ifndef SERVICE_TABLE_H 34 #define SERVICE_TABLE_H 53 #define SID_SIZE (size_t)41 55 #ifdef INCLUDE_DEVICE_APIS 75 int TotalSubscriptions;
166 const char *serviceId,
195 const char *controlURLPath);
320 const char *DefaultURLBase);
333 const char *DefaultURLBase);
358 const char *element_name,
Definition: service_table.h:57
Definition: service_table.h:67
int copy_subscription(subscription *in, subscription *out)
Makes a copy of the subscription.
Definition: service_table.c:62
subscription * GetFirstSubscription(service_info *service)
Gets pointer to the first subscription node in the service table.
Definition: service_table.c:192
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:452
void freeSubscriptionList(subscription *head)
Free's memory allocated for all the subscriptions in the service table.
Definition: service_table.c:227
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:395
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
Represents a list of URLs as in the "callback" header of SUBSCRIBE message in GENA. "char *" URLs holds dynamic memory.
Definition: uri.h:149
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:511
DOMString getElementValue(IXML_Node *node)
Returns the clone of the element value.
Definition: service_table.c:644
void freeSubscription(subscription *sub)
Free's the memory allocated for storing the URL of the subscription.
Definition: service_table.c:206
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:347
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:580
void freeServiceTable(service_table *table)
Free's dynamic memory in table (does not free table, only memory within the structure).
Definition: service_table.c:622
Definition: service_table.h:80
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:537
Data structure common to all types of nodes.
Definition: ixml.h:165
int addServiceTable(IXML_Node *node, service_table *in, const char *DefaultURLBase)
Add Service to the table.
Definition: service_table.c:991
subscription * GetNextSubscription(service_info *service, subscription *current)
Get current and valid subscription from the service table.
Definition: service_table.c:159
void RemoveSubscriptionSID(Upnp_SID sid, service_info *service)
Definition: service_table.c:98
#define DOMString
The type of DOM strings.
Definition: ixml.h:59
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:916
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:677
int getServiceTable(IXML_Node *node, service_table *out, const char *DefaultURLBase)
Retrieve service from the table.
Definition: service_table.c:1044
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:258
char Upnp_SID[44]
Holds the subscription identifier for a subscription between a client and a device.
Definition: upnp.h:555
#define UPNP_INLINE
Declares an inline function.
Definition: UpnpGlobal.h:93
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:295