]>
git.ipfire.org Git - people/trikolon/ipfire-2.x.git/blob - src/hwinfo/doc/example2.c
6 int main(int argc
, char **argv
)
12 hd_data
= calloc(1, sizeof *hd_data
);
14 hd
= hd_list(hd_data
, hw_display
, 1, NULL
);
15 display_idx
= hd_display_adapter(hd_data
);
17 hd_dump_entry(hd_data
, hd_get_device_by_idx(hd_data
, display_idx
), stdout
)
20 hd_free_hd_data(hd_data
);