From 9c12864dfdd0cc6a44b87b0026549566fbd45f45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Sun, 12 Jan 2003 15:59:12 +0000 Subject: [PATCH] Header for the kernel image API. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2414 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/private/kernel/kimage.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 headers/private/kernel/kimage.h diff --git a/headers/private/kernel/kimage.h b/headers/private/kernel/kimage.h new file mode 100644 index 0000000000..aa345bca08 --- /dev/null +++ b/headers/private/kernel/kimage.h @@ -0,0 +1,26 @@ +/* +** Copyright 2003, Axel Dörfler, axeld@pinc-software.de. All rights reserved. +** Distributed under the terms of the OpenBeOS License. +*/ +#ifndef _KERNEL_IMAGE_H +#define _KERNEL_IMAGE_H + + +#include + + +struct team; + +extern image_id register_image(team_id team, image_info *info, size_t size); +extern status_t unregister_image(team_id team, image_id id); +extern int32 count_images(struct team *team); +extern status_t remove_images(struct team *team); + +// user-space exported calls +extern status_t user_unregister_image(image_id id); +extern image_id user_register_image(image_info *userInfo, size_t size); +extern status_t user_get_next_image_info(team_id team, int32 *_cookie, + image_info *userInfo, size_t size); +extern status_t user_get_image_info(image_id id, image_info *userInfo, size_t size); + +#endif /* _KRENEL_IMAGE_H */