entry.h 506 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef ENTRY_H
  2. #define ENTRY_H
  3. #define JSON_STUB "/home/ptitcois/Programmation/wemlinux/ressources/app/stub.json"
  4. #include <json-c/json.h>
  5. typedef struct os_entry_t os_entry_t;
  6. struct os_entry_t
  7. {
  8. char base[128];
  9. char name[32];
  10. char location[64];
  11. char rootfs[64];
  12. char kernel[64];
  13. char initrd[64];
  14. char append[64];
  15. };
  16. typedef struct
  17. {
  18. os_entry_t entries[16];
  19. int n;
  20. } os_entries_t;
  21. void os_entries_init(os_entries_t* os);
  22. int os_entries_parse(os_entries_t* os, const char* file);
  23. #endif