#include <wchar.h>
Go to the source code of this file.
|
typedef int(* | LoadFunc )(void *param, double time_left) |
|
#define LDR_CHECK_TIMEOUT |
( |
|
completed_jobs, |
|
|
|
total_jobs |
|
) |
| |
Value:
{\
size_t progress_percent = ((completed_jobs)*100 / (total_jobs));\
\
if(progress_percent == 0)\
ENSURE(0 < progress_percent && progress_percent <= 100);\
return (int)progress_percent;\
}
#define ENSURE(expr)
ensure the expression <expr> evaluates to non-zero.
Definition at line 172 of file Loader.h.
typedef int(* LoadFunc)(void *param, double time_left) |
void LDR_BeginRegistering |
( |
| ) |
|
void LDR_EndRegistering |
( |
| ) |
|
Status LDR_NonprogressiveLoad |
( |
| ) |
|
Status LDR_ProgressiveLoad |
( |
double |
time_budget, |
|
|
wchar_t * |
next_description, |
|
|
size_t |
max_chars, |
|
|
int * |
progress_percent |
|
) |
| |
void LDR_Register |
( |
LoadFunc |
func, |
|
|
void * |
param, |
|
|
const wchar_t * |
description, |
|
|
int |
estimated_duration_ms |
|
) |
| |