Newer
Older
honey-os / src / userland / usbStorage / main.c
@biosfood biosfood on 28 Oct 2023 378 bytes subStorage: add stub information
#include <storage.h>
#include <hlib.h>

void setup(uint32_t in, uint32_t out, uint32_t serviceName, uint32_t serviceId) {
    StorageDevice *device = malloc(sizeof(StorageDevice));
    device->serviceId = serviceId;
    device->getType = getFunction(serviceId, "type");
    printf("in: %x, out: %x\n", in, out);
}

int32_t main() {
    createFunction("setup", (void *) setup);
}