#ifndef __VOLUMES_MBR_H #define __VOLUMES_MBR_H #include "volumes.h" /* * Codes de retour */ enum mbr_err { MBR_SUCCESS, MBR_FAILURE }; /* * Detrompeur */ #define MBR_MAGIC 0xdefaced /* * MBR */ struct mbr_desc_t { uint32_t magic_key; char name[VOLUME_NAME_LENGTH]; unsigned int vol_count; struct vol_desc_t volume[MAX_VOLUMES]; }; int load_mbr(struct mbr_desc_t *mbr); int save_mbr(struct mbr_desc_t *mbr); void dump_mbr(struct mbr_desc_t *mbr); #endif /* __VOLUMES_MBR_H */