xref: /haiku/src/tests/add-ons/kernel/kernelland_emu/device_manager.cpp (revision 21258e2674226d6aa732321b6f8494841895af5f)
1 /*
2  * Copyright 2002-2009, Haiku Inc. All Rights Reserved.
3  * Distributed under the terms of the MIT license.
4  *
5  * Authors:
6  *		Ingo Weinhold, bonefish@cs.tu-berlin.de.
7  *		Axel Dörfler, axeld@pinc-software.de.
8  */
9 
10 #include <stdio.h>
11 
12 #include <fs/devfs.h>
13 
14 
15 extern "C" status_t
16 devfs_unpublish_partition(const char *path)
17 {
18 	printf("unpublish partition: %s\n", path);
19 	return B_OK;
20 }
21 
22 
23 extern "C" status_t
24 devfs_publish_partition(const char *path, const partition_info *info)
25 {
26 	if (info == NULL)
27 		return B_BAD_VALUE;
28 
29 	printf("publish partition: %s (device \"%s\", size %Ld)\n", path, info->device, info->size);
30 	return B_OK;
31 }
32