]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blobdiff - src/hwinfo/doc/example2.c
Hwinfo-Hardwareerkennung entfernt.
[people/teissler/ipfire-2.x.git] / src / hwinfo / doc / example2.c
diff --git a/src/hwinfo/doc/example2.c b/src/hwinfo/doc/example2.c
deleted file mode 100644 (file)
index cc2a9db..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-#include <stdio.h>
-#include <stdlib.h>
-
-#include <hd.h>
-
-int main(int argc, char **argv)
-{
-  hd_data_t *hd_data;
-  hd_t *hd;
-  unsigned display_idx;
-
-  hd_data = calloc(1, sizeof *hd_data);
-
-  hd = hd_list(hd_data, hw_display, 1, NULL);
-  display_idx = hd_display_adapter(hd_data);
-
-  hd_dump_entry(hd_data, hd_get_device_by_idx(hd_data, display_idx), stdout)
-
-  hd_free_hd_list(hd);
-  hd_free_hd_data(hd_data);
-
-  free(hd_data);
-
-  return 0;
-}
-