rrd_t *rrd);
static int rrd_prefill_data(
rrd_t *rrd,
- const GList * sources_rrd_files,
- mapping_t * mappings,
+ const GList *sources_rrd_files,
+ mapping_t *mappings,
int mappings_cnt);
static int positive_mod(
int a,
int b);
static void init_mapping(
- mapping_t * mapping);
+ mapping_t *mapping);
static void free_mapping(
- mapping_t * mapping);
+ mapping_t *mapping);
static void parseGENERIC_DS(
const char *def,
void *key_hash,
long (*lookup)(void *,
char *),
- mapping_t * mapping,
+ mapping_t *mapping,
const char **require_version)
{
int rc = -1;
} coverage_t;
static inline void set_interval(
- coverage_t * c,
+ coverage_t *c,
int covered,
time_t start,
time_t end)
#ifdef DEBUG_PREFILL
static void dump_coverage_array(
- const coverage_t * current_coverage,
+ const coverage_t *current_coverage,
const int *coverage_array_size)
{
for (int i = 0; i < *coverage_array_size; i++) {
#endif
static coverage_t *add_coverage(
- coverage_t * current_coverage,
+ coverage_t *current_coverage,
int *coverage_array_size,
time_t start,
time_t end,
#if 0
static long total_coverage(
- const coverage_t * coverage,
+ const coverage_t *coverage,
const int *array_size)
{
long total = 0;
}
static int order_candidates(
- candidate_t * a,
- candidate_t * b,
+ candidate_t *a,
+ candidate_t *b,
const candidate_t UNUSED(*target))
{
enum cf_en acf = rrd_cf_conv(a->rra->cf_nam);
}
static void prefill_bin(
- candidate_t * target,
+ candidate_t *target,
int cnt,
- const candidate_t * candidates,
+ const candidate_t *candidates,
int candidate_cnt)
{
unsigned long k;
* because there is generally no way to deduce the input data from an RRA bin.
*/
static void prefill_pdp_prep(
- candidate_t * target,
- const candidate_t * candidates,
+ candidate_t *target,
+ const candidate_t *candidates,
int candidate_cnt)
{
rrd_t *rrd = target->rrd;
}
static void prefill_cdp_prep(
- candidate_t * target,
- candidate_t * candidates,
+ candidate_t *target,
+ candidate_t *candidates,
int candidate_cnt,
long cdp_rra_index)
{
static unsigned long find_ds_match(
const ds_def_t *ds_def,
const rrd_t *src_rrd,
- mapping_t * mapping)
+ mapping_t *mapping)
{
unsigned long source_ds_index;
const char *looked_for_ds_name = ds_def->ds_nam;
static int find_mapping(
const char *ds_nam,
- const mapping_t * mappings,
+ const mapping_t *mappings,
int mappings_cnt)
{
int i;
*/
static candidate_t *find_matching_candidates(
- const candidate_t * target,
- const GList * sources,
+ const candidate_t *target,
+ const GList *sources,
int *candidate_cnt,
- mapping_t * mappings,
+ mapping_t *mappings,
int mappings_cnt,
- candidate_selectfunc_t * select_func,
- compar_ex_t * order_func)
+ candidate_selectfunc_t *select_func,
+ compar_ex_t *order_func)
{
if (select_func == NULL)
return NULL;
static int rrd_prefill_data(
rrd_t *rrd,
- const GList * sources,
- mapping_t * mappings,
+ const GList *sources,
+ mapping_t *mappings,
int mappings_cnt)
{
int rc = -1;
}
static void init_mapping(
- mapping_t * mapping)
+ mapping_t *mapping)
{
if (!mapping)
return;
}
static void free_mapping(
- mapping_t * mapping)
+ mapping_t *mapping)
{
if (!mapping)
return;