StreamLinkforC  7.0.3-308369
sl_credentialsprovider_s Struct Reference

Definition of the interface that StreamLink uses to obtain credentials information. More...

#include <sl4c.h>

Data Fields

void(* dealloc )(sl_credentialsprovider *provider)
 Deallocate the entire sl_credentialsprovider structure. More...
 
sl_credentials *(* get_credentials )(streamlink *client, sl_credentialsprovider *provider)
 Get the credentials to login to the Liberator. More...
 
void(* free_credentials )(sl_credentialsprovider *provider, sl_credentials *credentials)
 Deallocate the returned credentials. More...
 
void * context
 User context.
 

Detailed Description

Definition of the interface that StreamLink uses to obtain credentials information.

If your StreamLink application does not use one of the credentials providers supplied with StreamLink then you must implement this interface within your program

Field Documentation

void(* sl_credentialsprovider_s::dealloc) (sl_credentialsprovider *provider)

Deallocate the entire sl_credentialsprovider structure.

Parameters
provider- The provider instance to deallocate
void(* sl_credentialsprovider_s::free_credentials) (sl_credentialsprovider *provider, sl_credentials *credentials)

Deallocate the returned credentials.

Parameters
provider
credentials- Credentials to deallocate
sl_credentials*(* sl_credentialsprovider_s::get_credentials) (streamlink *client, sl_credentialsprovider *provider)

Get the credentials to login to the Liberator.

Parameters
provider
Returns
An sl_credentials object or NULL
Note
This is a blocking call

The documentation for this struct was generated from the following file:

Generated on Tue Oct 16 2018 12:25:43 for StreamLinkforC