void ParfaitWrapperBase::UploadAlog(long start_time, long end_time);
parfait_wrapper_ptr->UploadAlog(1620662400, 1610662400);
void UploadAlogWithCallback(long start_time_s,
const AlogUploadDetailsCallback nullable_callback);
void AlogCallback(bool is_success, int total_file_count, int success_count,
const char* error_msg, void* custom_context) {
if (!is_success && total_file_count == 0) {
printf("Failed to uploaded alog,because there isn't any alog files. \n");
printf("Uploaded %d alog files to apmplus.\n", success_count);
printf("Failed to uploaded %d alog files to apmplus. Success num: %d, error_msg: %s.\n", total_file_count, success_count, error_msg);
printf("This is my context: %s. \n", (char*)custom_context);
char context[100] = "my context";
long timenow_second = static_cast<long>(time(nullptr));
parfait_wrapper_ptr->UploadAlogWithCallback(timenow_second - 30 * 60, timenow_second, context, &AlogCallback);