|
Conviva Client Library
2.188.0.0
|
|
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);
288 void (*http_post_request) (
const char *url,
const char *content_type,
289 const char *request,
unsigned int request_length,
290 unsigned int timeout,
296 void (*console_log) (
const char *message);
301 uint64_t (*epoch_time_ms) (void);
317 unsigned int initial_time,
unsigned int interval);
322 void (*destroy_timer) (
void *timer_handle);
332 void * (*mutex_init) (void);
337 void (*mutex_lock) (
void *lock);
342 void (*mutex_unlock) (
void *lock);
347 void (*mutex_destroy) (
void *lock);
352 void * (*rwlock_init) (void);
357 void (*rwlock_rdlock) (
void *rwlock);
362 void (*rwlock_wrlock) (
void *rwlock);
367 void (*rwlock_unlock) (
void *rwlock);
372 void (*rwlock_destroy) (
void *rwlock);
379 void * (*mem_alloc) (
size_t mem_size);
384 void (*mem_free) (
void *memory);
396 int (*base64_encode) (
const unsigned char *input_msg,
397 const int input_msg_len,
unsigned char *output_msg,
const int output_msg_max_len);
411 char *(*generate_uuid)(void);
int data_len
Definition: ccl_platform_if.h:238
Request type contains all the details for the http post.
Definition: ccl_platform_if.h:234
int header_count
Definition: ccl_platform_if.h:241
char * url
Definition: ccl_platform_if.h:235
ccl_http_callback cbk_func
Definition: ccl_platform_if.h:243
void * data
Definition: ccl_platform_if.h:237
char * content_type
Definition: ccl_platform_if.h:236
int timeout_secs
Definition: ccl_platform_if.h:242
char ** header_keys
Definition: ccl_platform_if.h:239
Encapsulates function pointers for cryptographic functionalities like hashing, base64,...
Definition: ccl_platform_if.h:208
char ** header_values
Definition: ccl_platform_if.h:240