]>
Commit | Line | Data |
---|---|---|
a6316ce4 MT |
1 | #include <stdio.h> |
2 | #include <stdlib.h> | |
3 | ||
4 | #include <hd.h> | |
5 | ||
6 | int main(int argc, char **argv) | |
7 | { | |
8 | hd_data_t *hd_data; | |
9 | hd_t *hd; | |
10 | unsigned display_idx; | |
11 | ||
12 | hd_data = calloc(1, sizeof *hd_data); | |
13 | ||
14 | hd = hd_list(hd_data, hw_display, 1, NULL); | |
15 | display_idx = hd_display_adapter(hd_data); | |
16 | ||
17 | hd_dump_entry(hd_data, hd_get_device_by_idx(hd_data, display_idx), stdout) | |
18 | ||
19 | hd_free_hd_list(hd); | |
20 | hd_free_hd_data(hd_data); | |
21 | ||
22 | free(hd_data); | |
23 | ||
24 | return 0; | |
25 | } | |
26 |