diff --git a/src/tests/add-ons/kernel/kernelland_emu.cpp b/src/tests/add-ons/kernel/kernelland_emu.cpp index 1bf85d1ba7..c0d29ff183 100644 --- a/src/tests/add-ons/kernel/kernelland_emu.cpp +++ b/src/tests/add-ons/kernel/kernelland_emu.cpp @@ -15,6 +15,8 @@ #include #include +#include + #ifdef TRACE #undef TRACE #endif @@ -662,6 +664,25 @@ spawn_kernel_thread(thread_func func, const char *name, int32 priority, void *da } +extern "C" status_t +devfs_unpublish_partition(const char *path) +{ + printf("unpublish partition: %s\n", path); + return B_OK; +} + + +extern "C" status_t +devfs_publish_partition(const char *path, const partition_info *info) +{ + if (info == NULL) + return B_BAD_VALUE; + + printf("publish partition: %s (device \"%s\", size %Ld)\n", path, info->device, info->size); + return B_OK; +} + + void panic(const char *format, ...) {