|
Conviva Client Library
2.185.0.2
|
|
19 #ifndef CCLPLATFORMIF_H
20 #define CCLPLATFORMIF_H
24 #define CCL_MAX_PLATFORM_METADATA_LENGTH 128
187 typedef void (*
ccl_http_callback) (
int status,
void *http_data,
const char *response,
unsigned int response_length);
220 int (*generate_hash) (
const ccl_hash_algo_t hash_algo_type,
const unsigned char *input_msg,
221 const int input_msg_len,
unsigned char *output_msg,
222 const int output_msg_max_len);
258 void (*http_post_request) (
const char *url,
const char *content_type,
259 const char *request,
unsigned int request_length,
260 unsigned int timeout,
266 void (*console_log) (
const char *message);
271 uint64_t (*epoch_time_ms) (void);
287 unsigned int initial_time,
unsigned int interval);
292 void (*destroy_timer) (
void *timer_handle);
302 void * (*mutex_init) (void);
307 void (*mutex_lock) (
void *lock);
312 void (*mutex_unlock) (
void *lock);
317 void (*mutex_destroy) (
void *lock);
322 void * (*rwlock_init) (void);
327 void (*rwlock_rdlock) (
void *rwlock);
332 void (*rwlock_wrlock) (
void *rwlock);
337 void (*rwlock_unlock) (
void *rwlock);
342 void (*rwlock_destroy) (
void *rwlock);
349 void * (*mem_alloc) (
size_t mem_size);
354 void (*mem_free) (
void *memory);
366 int (*base64_encode) (
const unsigned char *input_msg,
367 const int input_msg_len,
unsigned char *output_msg,
const int output_msg_max_len);
381 char *(*generate_uuid)(void);
Encapsulates function pointers for cryptographic functionalities like hashing, base64,...
Definition: ccl_platform_if.h:208