From 015b81fb25c713454eae16e3a54b74e9af6f15c9 Mon Sep 17 00:00:00 2001 From: Intel A80486DX2-66 Date: Wed, 27 Dec 2023 19:11:00 +0300 Subject: [PATCH] reverse-ramdisk.c: add function prototypes --- c-programming/reverse-ramdisk.c | 5 +++++ 1 file changed, 5 insertions(+) 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); \