diff --git a/c-programming/reverse-ramdisk.c b/c-programming/reverse-ramdisk.c index 8a2c512..ba78179 100644 --- a/c-programming/reverse-ramdisk.c +++ b/c-programming/reverse-ramdisk.c @@ -28,6 +28,11 @@ typedef struct { TempFile* temp_files = NULL; size_t num_temp_files = 0; +int tf_alloc(size_t n, size_t type_size); +int tf_free(int ID); +int tf_write(int ID, size_t offset, void* data, size_t data_size); +int tf_read(int ID, size_t offset, void* dest, size_t data_size); + #ifdef DEBUG # define line_fail(x) do { \ printf("failed on line %d\n", __LINE__ + x); \