#ifndef ENTRY_H
#define ENTRY_H

#define JSON_STUB "/home/ptitcois/Programmation/wemlinux/ressources/app/stub.json"
#include <json-c/json.h>
typedef struct os_entry_t os_entry_t;
struct os_entry_t
{
	char base[128];
	char name[32];
	char location[64];
	char rootfs[64];
	char kernel[64];
	char initrd[64];
	char append[64];
};


typedef struct 
{
	os_entry_t entries[16];
	int n;
} os_entries_t;


void os_entries_init(os_entries_t* os);
int os_entries_parse(os_entries_t* os, const char* file);



#endif
