Commit 70d0d533 authored by cRTrn13's avatar cRTrn13
Browse files

file abs layer

parent ab438302
#ifndef FILE_H_
#define FILE_H_
#include <stdint.h>
#include <unistd.h>
#include <stdio.h>
typedef struct file FILE_H;
struct file
void* internal;
void (*close)(FILE_H* file);
int64_t (*seek)(FILE_H* file, int64_t offset, int64_t origin);
int64_t (*tell)(FILE_H* file);
int (*read)(FILE_H* file, uint8_t *buf, int64_t count);
int (*write)(FILE_H* file, uint8_t *buf, int64_t count);
FILE_H* file_open(const char* filename, uint8_t mode);
#endif /* FILE_H_ */
#include "file.h"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment