|
libUPnP
1.8.0
|
#include "ClientSubscription.h"#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.
Functions | |
| void | free_client_subscription (ClientSubscription *sub) |
| Free memory allocated for client subscription data. More... | |
| void | freeClientSubList (ClientSubscription *list) |
| Free the client subscription table. More... | |
| 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. More... | |
| ClientSubscription * | GetClientSubClientSID (ClientSubscription *head, const UpnpString *sid) |
| Return the client subscription from the client table that matches const Upnp_SID sid subscrition id value. More... | |
| ClientSubscription * | GetClientSubActualSID (ClientSubscription *head, token *sid) |
| Returns the client subscription from the client subscription table that has the matching token *sid buffer value. More... | |
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(), GenlibClientSubscription_get_RenewEventId(), GenlibClientSubscription_set_RenewEventId(), GenlibClientSubscription_strcpy_ActualSID(), GenlibClientSubscription_strcpy_EventURL(), gTimerThread, and TimerThreadRemove().
Referenced by freeClientSubList(), genaRenewSubscription(), genaUnregisterClient(), and genaUnSubscribe().
| void freeClientSubList | ( | ClientSubscription * | list | ) |
Free the client subscription table.
| [in] | list | Client subscription list to be freed. |
References free_client_subscription(), GenlibClientSubscription_delete(), and GenlibClientSubscription_get_Next().
Referenced by genaUnregisterClient(), and RemoveClientSubClientSID().
| 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. |
References GenlibClientSubscription_get_ActualSID_cstr(), and GenlibClientSubscription_get_Next().
Referenced by gena_process_notification_event().
| 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 GenlibClientSubscription_get_Next(), GenlibClientSubscription_get_SID_cstr(), and UpnpString_get_String().
Referenced by genaRenewSubscription(), and genaUnSubscribe().
| 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 freeClientSubList(), GenlibClientSubscription_get_Next(), GenlibClientSubscription_get_SID_cstr(), GenlibClientSubscription_set_Next(), and UpnpString_get_String().
Referenced by genaRenewSubscription(), genaUnregisterClient(), and genaUnSubscribe().
| TimerThread gTimerThread |
Global timer thread.
1.8.6