libUPnP
1.6.17
|
#include "service_table.h"
#include "upnp.h"
#include "UpnpString.h"
#include "upnp_timeout.h"
#include "uri.h"
#include "TimerThread.h"
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
Go to the source code of this file.
Typedefs | |
typedef struct s_ClientSubscription | ClientSubscription |
Functions | |
ClientSubscription * | UpnpClientSubscription_new () |
Constructor. | |
void | UpnpClientSubscription_delete (ClientSubscription *p) |
Destructor. | |
ClientSubscription * | UpnpClientSubscription_dup (const ClientSubscription *p) |
Copy Constructor. | |
void | UpnpClientSubscription_assign (ClientSubscription *q, const ClientSubscription *p) |
Assignment operator. | |
int | UpnpClientSubscription_get_RenewEventId (const ClientSubscription *p) |
void | UpnpClientSubscription_set_RenewEventId (ClientSubscription *p, int n) |
const UpnpString * | UpnpClientSubscription_get_SID (const ClientSubscription *p) |
void | UpnpClientSubscription_set_SID (ClientSubscription *p, const UpnpString *s) |
void | UpnpClientSubscription_strcpy_SID (ClientSubscription *p, const char *s) |
const UpnpString * | UpnpClientSubscription_get_ActualSID (const ClientSubscription *p) |
void | UpnpClientSubscription_set_ActualSID (ClientSubscription *p, const UpnpString *s) |
void | UpnpClientSubscription_strcpy_ActualSID (ClientSubscription *p, const char *s) |
const UpnpString * | UpnpClientSubscription_get_EventURL (const ClientSubscription *p) |
void | UpnpClientSubscription_set_EventURL (ClientSubscription *p, const UpnpString *s) |
void | UpnpClientSubscription_strcpy_EventURL (ClientSubscription *p, const char *s) |
ClientSubscription * | UpnpClientSubscription_get_Next (const ClientSubscription *p) |
void | UpnpClientSubscription_set_Next (ClientSubscription *p, ClientSubscription *q) |
void | free_client_subscription (ClientSubscription *sub) |
Free memory allocated for client subscription data. | |
void | freeClientSubList (ClientSubscription *list) |
Free the client subscription table. | |
void | RemoveClientSubClientSID (ClientSubscription **head, const UpnpString *sid) |
Remove the client subscription matching the subscritpion id represented by the const Upnp_SID sid parameter from the table and update the table. | |
ClientSubscription * | GetClientSubClientSID (ClientSubscription *head, const UpnpString *sid) |
Return the client subscription from the client table that matches const Upnp_SID sid subscrition id value. | |
ClientSubscription * | GetClientSubActualSID (ClientSubscription *head, token *sid) |
Returns the client subscription from the client subscription table that has the matching token *sid buffer value. | |
Variables | |
TimerThread | gTimerThread |
void free_client_subscription | ( | ClientSubscription * | sub | ) |
Free memory allocated for client subscription data.
Remove timer thread associated with this subscription event.
[in] | sub | Client subscription to be freed. |
References free_upnp_timeout(), gTimerThread, and TimerThreadRemove().
void freeClientSubList | ( | ClientSubscription * | list | ) |
Free the client subscription table.
[in] | list | Client subscription list to be freed. |
ClientSubscription* GetClientSubActualSID | ( | ClientSubscription * | head, |
token * | sid | ||
) |
Returns the client subscription from the client subscription table that has the matching token *sid buffer value.
[in] | head | Head of the subscription list. |
[in] | sid | Subscription ID to be mactched. |
ClientSubscription* GetClientSubClientSID | ( | ClientSubscription * | head, |
const UpnpString * | sid | ||
) |
Return the client subscription from the client table that matches const Upnp_SID sid subscrition id value.
[in] | head | Head of the subscription list. |
[in] | sid | Subscription ID to be mactched. |
References UpnpString_get_String().
void RemoveClientSubClientSID | ( | ClientSubscription ** | head, |
const UpnpString * | sid | ||
) |
Remove the client subscription matching the subscritpion id represented by the const Upnp_SID sid parameter from the table and update the table.
[in] | head | Head of the subscription list. |
[in] | sid | Subscription ID to be mactched. |
References UpnpString_get_String().
void UpnpClientSubscription_assign | ( | ClientSubscription * | q, |
const ClientSubscription * | p | ||
) |
Assignment operator.
Assignment operator
[in] | q | The this pointer. |
void UpnpClientSubscription_delete | ( | ClientSubscription * | p | ) |
ClientSubscription* UpnpClientSubscription_dup | ( | const ClientSubscription * | p | ) |
Copy Constructor.
Copy Constructor
[in] | p | The this pointer. |
const UpnpString* UpnpClientSubscription_get_ActualSID | ( | const ClientSubscription * | p | ) |
[in] | p | The this pointer. |
const UpnpString* UpnpClientSubscription_get_EventURL | ( | const ClientSubscription * | p | ) |
[in] | p | The this pointer. |
ClientSubscription* UpnpClientSubscription_get_Next | ( | const ClientSubscription * | p | ) |
[in] | p | The this pointer. |
int UpnpClientSubscription_get_RenewEventId | ( | const ClientSubscription * | p | ) |
[in] | p | The this pointer. |
const UpnpString* UpnpClientSubscription_get_SID | ( | const ClientSubscription * | p | ) |
[in] | p | The this pointer. |
ClientSubscription* UpnpClientSubscription_new | ( | ) |
void UpnpClientSubscription_set_ActualSID | ( | ClientSubscription * | p, |
const UpnpString * | s | ||
) |
[in] | p | The this pointer. |
References UpnpString_delete(), and UpnpString_dup().
void UpnpClientSubscription_set_EventURL | ( | ClientSubscription * | p, |
const UpnpString * | s | ||
) |
[in] | p | The this pointer. |
References UpnpString_delete(), and UpnpString_dup().
void UpnpClientSubscription_set_Next | ( | ClientSubscription * | p, |
ClientSubscription * | q | ||
) |
[in] | p | The this pointer. |
void UpnpClientSubscription_set_RenewEventId | ( | ClientSubscription * | p, |
int | n | ||
) |
[in] | p | The this pointer. |
[in] | n | . |
void UpnpClientSubscription_set_SID | ( | ClientSubscription * | p, |
const UpnpString * | s | ||
) |
[in] | p | The this pointer. |
References UpnpString_delete(), and UpnpString_dup().
void UpnpClientSubscription_strcpy_ActualSID | ( | ClientSubscription * | p, |
const char * | s | ||
) |
[in] | p | The this pointer. |
References UpnpString_delete(), UpnpString_new(), and UpnpString_set_String().
void UpnpClientSubscription_strcpy_EventURL | ( | ClientSubscription * | p, |
const char * | s | ||
) |
[in] | p | The this pointer. |
References UpnpString_delete(), UpnpString_new(), and UpnpString_set_String().
void UpnpClientSubscription_strcpy_SID | ( | ClientSubscription * | p, |
const char * | s | ||
) |
[in] | p | The this pointer. |
References UpnpString_delete(), UpnpString_new(), and UpnpString_set_String().