21 #ifndef _WSB_RIGHTS_ENABLER_H_ 22 #define _WSB_RIGHTS_ENABLER_H_ 40 #if defined(__cplusplus) 50 #define WSB_RIGHTSENABLER_OPTION_FLAG_DISABLE_SLA 0x00000001 51 #define WSB_RIGHTSENABLER_OPTION_FLAG_DISABLE_LINK_RENEWAL 0x00000002 52 #define WSB_RIGHTSENABLER_OPTION_FLAG_DISABLE_STORING_LICENSE_IN_FILE 0x00000004 93 WSB_RightsEnabler_EventType
type;
218 const char** content_ids,
220 const void* license_data,
263 const char* content_id,
265 const void* license_data,
278 #if defined(__cplusplus) WSB_EXPORT WSB_Result WSB_RightsEnabler_SetOptions(WSB_RightsEnabler *rights_enabler, WSB_UInt32 option_flags)
Sets the options flags (WSB_RIGHTSENABLER_OPTION_FLAG*).
WSB_EXPORT WSB_Result WSB_RightsEnabler_Destroy(WSB_RightsEnabler *rights_enabler)
Releases an instance of a WSB_RightsEnabler object.
This struct pairs a listener instance value with a function pointer for receiving events...
Definition: WsbRightsEnabler.h:148
void * instance
Definition: WsbRightsEnabler.h:149
WSB_RightsEnabler_Event base
Definition: WsbRightsEnabler.h:139
Event data for reporting that a service transaction has been initiated in an attempt to obtain rights...
Definition: WsbRightsEnabler.h:138
Definition: WsbRightsEnabler.h:71
WSB_RightsEnabler_TransactionType transaction_type
Definition: WsbRightsEnabler.h:140
WSB_Boolean
Boolean type used for variables that can be true (WSB_TRUE) or false (WSB_FALSE). ...
Definition: WsbTypes.h:71
Definition: WsbRightsEnabler.h:62
Definition: WsbRightsEnabler.h:61
const void * license_data
Definition: WsbRightsEnabler.h:124
Definition: WsbRightsEnabler.h:81
WSB_Result processing_result
Definition: WsbRightsEnabler.h:123
Definition: WsbRightsEnabler.h:72
const char * url
Definition: WsbRightsEnabler.h:107
WSB_RightsEnabler_TransactionType
Identifiers for transactions.
Definition: WsbRightsEnabler.h:70
WSB_RightsEnabler_ContinuationType
Constants used by listener to direct Rights Enabler on whether or not to continue to search for licen...
Definition: WsbRightsEnabler.h:79
WSB_RightsEnabler_EventType type
Definition: WsbRightsEnabler.h:93
WSB_EXPORT WSB_Result WSB_RightsEnabler_EnableMediaFile(WSB_RightsEnabler *rights_enabler, WSB_MediaFile *file, const char **content_ids, WSB_Cardinal content_ids_count, const void *license_data, WSB_Size license_data_size)
Tries all available avenues to obtain a working license for the content with the specified content ID...
struct WSB_RightsEnabler WSB_RightsEnabler
A WSB_RightsEnabler object can be used to do everything possible to obtain a valid license for conten...
Definition: WsbRightsEnabler.h:38
WSB_Size license_data_size
Definition: WsbRightsEnabler.h:125
WSB_UInt32 WSB_Cardinal
An unsigned integer used to represent a quantity that can be counted (such as a number of elements in...
Definition: WsbTypes.h:121
SHI_ActionResult * action_result
Definition: WsbRightsEnabler.h:127
int WSB_Result
Signed integer value representing a function or method result (return value).
Definition: WsbTypes.h:83
WSB_RightsEnabler_Event base
Definition: WsbRightsEnabler.h:122
WSB_Boolean is_granted
Definition: WsbRightsEnabler.h:126
Definition: WsbRightsEnabler.h:80
WSB_RightsEnabler_Event base
Definition: WsbRightsEnabler.h:106
unsigned int WSB_UInt32
32-bit (or more) unsigned integer
Definition: WsbTypes.h:36
Event data for reporting a license that was found and evaluated.
Definition: WsbRightsEnabler.h:121
Definition: WsbRightsEnabler.h:60
Structure used as the base for all event structures.
Definition: WsbRightsEnabler.h:92
struct SHI_ActionResult SHI_ActionResult
A SHI_ActionResult object represents the result returned by several different SHI_Action methods...
Definition: ShiAction.h:444
WSB_EXPORT WSB_Result WSB_RightsEnabler_Create(WSB_RightsEnabler_EventListener listener, WSB_RightsEnabler **rights_enabler)
Creates an instance of a WSB_RightsEnabler object.
WSB_RightsEnabler_EventType
Identifiers for event types.
Definition: WsbRightsEnabler.h:59
Event data for reporting that the Rights Enabler has been directed to a service for obtaining needed ...
Definition: WsbRightsEnabler.h:105
WSB_EXPORT WSB_Result WSB_RightsEnabler_EnableContentId(WSB_RightsEnabler *rights_enabler, const char *content_id, const char *sla_url, const void *license_data, WSB_Size license_data_size)
Tries all available avenues to obtain a working license for the content with the specified content ID...
WSB_UInt32 WSB_Size
An unsigned integer used to represent a measurable quantity (e.g., the size of a file).
Definition: WsbTypes.h:104