kolibrios/kernel/trunk/umka/vdisk.h
Magomed Kostoev (mkostoevr) d718f1b0de [KERNEL][UMKA] Prepare to make it work on Windows
* Remove FS and network tests
* Remove some unix-only dependencies



git-svn-id: svn://kolibrios.org@9337 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-11-27 19:12:33 +00:00

29 lines
637 B
C

#ifndef VDISK_H_INCLUDED
#define VDISK_H_INCLUDED
#include <stdio.h>
#include "umka.h"
void *vdisk_init(const char *fname, int adjust_cache_size, size_t cache_size);
STDCALL void
vdisk_close(void *userdata);
STDCALL int
vdisk_read(void *userdata, void *buffer, off_t startsector, size_t *numsectors);
STDCALL int
vdisk_write(void *userdata, void *buffer, off_t startsector,
size_t *numsectors);
STDCALL int
vdisk_querymedia(void *userdata, diskmediainfo_t *minfo);
STDCALL unsigned int
vdisk_adjust_cache_size(void *userdata, unsigned suggested_size);
extern diskfunc_t vdisk_functions;
#endif // VDISK_H_INCLUDED