#ifndef _KERNEL_RD_RD_H
#define _KERNEL_RD_RD_H

#include <aux/compiler.h>
#include <libk/std.h>

struct tar_hdr {
  char filename[100];
  uint8_t mode[8];
  uint8_t uid[8];
  uint8_t gid[8];
  uint8_t size[12];
  uint8_t mtime[12];
  uint8_t checksum[8];
  uint8_t type_flag;
} PACKED;

struct rd_file {
  struct tar_hdr* hdr;
  uint8_t* content;
  size_t size;
};

struct rd_file* rd_get_file (char* filename);
void rd_init (void);

#endif // _KERNEL_RD_RD_H
