probe.h 839 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Copyright (C) 2016 Jo-Philipp Wich <jo@mein.io>
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU Lesser General Public License version 2.1
  6. * as published by the Free Software Foundation
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. */
  13. #ifndef _PROBE_H
  14. #define _PROBE_H
  15. #include <libubox/list.h>
  16. struct probe_info {
  17. struct list_head list;
  18. char *type;
  19. char *dev;
  20. char *uuid;
  21. char *label;
  22. char *version;
  23. };
  24. struct probe_info * probe_path(const char *path);
  25. struct probe_info * probe_path_libblkid(const char *path);
  26. int make_devs(void);
  27. #endif /* _PROBE_H */