Conviva Client Library
Data Structures | Macros | Typedefs | Enumerations
ccl_platform_if

Abstraction for system/platform utilities. More...

Data Structures

struct  ccl_platform_metadata
 Encapsulates platform-specific metadata to be reported to Conviva. More...
 
struct  ccl_crypto_t
 Encapsulates function pointers for cryptographic functionalities like hashing, base64, etc. More...
 
struct  ccl_platform_t
 Encapsulates function pointers for system utilities like logging, timers, locks, etc. More...
 

Macros

#define CCL_MAX_PLATFORM_METADATA_LENGTH   128
 

Typedefs

typedef struct ccl_platform_metadata ccl_platform_metadata_t
 Encapsulates platform-specific metadata to be reported to Conviva. More...
 
typedef void(* ccl_timer_callback) (void *timer_data)
 Callback function for use with timers. More...
 
typedef void(* ccl_http_callback) (int status, void *http_data, const char *response, unsigned int response_length)
 Callback function to communicate HTTP responses back to Conviva. More...
 
typedef void(* ccl_load_callback) (int status, const char *data, unsigned int length)
 Callback function to notify a local data to the ccl library. More...
 
typedef void(* ccl_save_callback) (int status, const char *error, unsigned int length)
 Callback function to notify a status of saving operation to the ccl library. More...
 

Enumerations

enum  ccl_device_type_t {
  CCL_DEVICE_TYPE_UNKNOWN = 0, CCL_DEVICE_TYPE_DESKTOP, CCL_DEVICE_TYPE_CONSOLE, CCL_DEVICE_TYPE_SETTOP,
  CCL_DEVICE_TYPE_MOBILE, CCL_DEVICE_TYPE_TABLET, CCL_DEVICE_TYPE_SMARTTV
}
 Constants for valid device types. More...
 
enum  ccl_hash_algo_t { CCL_HASH_SHA1 }
 Constants for Hash algos. More...
 

Detailed Description

Abstraction for system/platform utilities.

This structure has pointers to functions implemented at the platform/OS abstraction layer to perform various low-level duties.
These functions will be called by the Conviva library when needed.

Macro Definition Documentation

◆ CCL_MAX_PLATFORM_METADATA_LENGTH

#define CCL_MAX_PLATFORM_METADATA_LENGTH   128

Typedef Documentation

◆ ccl_http_callback

typedef void(* ccl_http_callback) (int status, void *http_data, const char *response, unsigned int response_length)

Callback function to communicate HTTP responses back to Conviva.

Parameters
http_dataOpaque HTTP context to pass along.
statusCCL_SUCCESS or CCL_ERROR.
responseThe HTTP response string.
response_lengthThe length of the HTTP response string.

◆ ccl_load_callback

typedef void(* ccl_load_callback) (int status, const char *data, unsigned int length)

Callback function to notify a local data to the ccl library.

Parameters
statusCCL_SUCCESS or CCL_ERROR.
dataa client id string on CCL_SUCCESS, or an error string on CCL_ERROR.
lengththe length of the data or the error string.

◆ ccl_platform_metadata_t

Encapsulates platform-specific metadata to be reported to Conviva.

◆ ccl_save_callback

typedef void(* ccl_save_callback) (int status, const char *error, unsigned int length)

Callback function to notify a status of saving operation to the ccl library.

Parameters
statusCCL_SUCCESS or CCL_ERROR.
erroran error string on CCL_ERROR, NULL on CCL_SUCCESS.
lengththe length of the error string on CCL_ERROR, 0 on CCL_SUCCESS.

◆ ccl_timer_callback

typedef void(* ccl_timer_callback) (void *timer_data)

Callback function for use with timers.

Enumeration Type Documentation

◆ ccl_device_type_t

Constants for valid device types.

Enumerator
CCL_DEVICE_TYPE_UNKNOWN 

The device type is not known or does not fit any other category.

CCL_DEVICE_TYPE_DESKTOP 

The device is a desktop/laptop computer.

CCL_DEVICE_TYPE_CONSOLE 

The device is a gaming console.

CCL_DEVICE_TYPE_SETTOP 

The device is a set-top box.

CCL_DEVICE_TYPE_MOBILE 

The device is a mobile phone.

CCL_DEVICE_TYPE_TABLET 

The device is a tablet.

CCL_DEVICE_TYPE_SMARTTV 

The device is a smart TV.

◆ ccl_hash_algo_t

Constants for Hash algos.

Enumerator
CCL_HASH_SHA1 

SHA1 hash algo.