Skip to content

Commit

Permalink
Ensure add_data_to_holder() function is defined prior to where is bei…
Browse files Browse the repository at this point in the history
…ng called.
  • Loading branch information
allinurl committed Sep 21, 2018
1 parent 956c9f4 commit 2789816
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions src/gholder.c
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,25 @@ set_host (GRawDataItem item, GHolder * h, const GPanel * panel, char *data,
h->idx++;
}

/* Set all panel data. This will set data for panels that do not
* contain sub items. A function pointer is used for post data set. */
static void
add_data_to_holder (GRawDataItem item, GHolder * h, GRawDataType type,
const GPanel * panel)
{
char *data = NULL;
int hits = 0;

if (set_data_hits_keys (h->module, item, type, &data, &hits) == 1)
return;

set_data_holder_metrics (item, h, data, hits);
if (panel->holder_callback)
panel->holder_callback (h);

h->idx++;
}

/* Set all panel data. This will set data for panels that do not
* contain sub items. A function pointer is used for post data set. */
static void
Expand Down Expand Up @@ -546,25 +565,6 @@ add_host_to_holder (GRawDataItem item, GHolder * h, GRawDataType type,
}
}

/* Set all panel data. This will set data for panels that do not
* contain sub items. A function pointer is used for post data set. */
static void
add_data_to_holder (GRawDataItem item, GHolder * h, GRawDataType type,
const GPanel * panel)
{
char *data = NULL;
int hits = 0;

if (set_data_hits_keys (h->module, item, type, &data, &hits) == 1)
return;

set_data_holder_metrics (item, h, data, hits);
if (panel->holder_callback)
panel->holder_callback (h);

h->idx++;
}

/* Set all root panel data. This will set the root nodes. */
static int
set_root_metrics (GRawDataItem item, GRawDataType type, GModule module,
Expand Down

0 comments on commit 2789816

Please sign in to comment.