Reuse devinfo struct

The devstat API expects us to reuse one devinfo for many invocations of
devstat_getstats. In particular, it allocates and resizes memory
referenced by devinfo.
This commit is contained in:
Dominik Honnef 2016-12-31 07:23:55 +01:00
commit 38c5890428
3 changed files with 12 additions and 5 deletions

View file

@ -38,4 +38,4 @@ typedef struct {
int _get_ndevs();
int _get_stats(Stats **stats);
int _get_stats(struct devinfo *info, Stats **stats);