1 /* 2 ** Copyright 2003-2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved. 3 ** Distributed under the terms of the OpenBeOS License. 4 */ 5 #ifndef _KERNEL_IMAGE_H 6 #define _KERNEL_IMAGE_H 7 8 9 #include <image.h> 10 11 12 struct team; 13 14 extern image_id register_image(struct team *team, image_info *info, size_t size); 15 extern status_t unregister_image(struct team *team, image_id id); 16 extern int32 count_images(struct team *team); 17 extern status_t remove_images(struct team *team); 18 extern status_t image_init(void); 19 20 // user-space exported calls 21 extern status_t _user_unregister_image(image_id id); 22 extern image_id _user_register_image(image_info *userInfo, size_t size); 23 extern void _user_image_relocated(image_id id); 24 extern void _user_loading_app_failed(status_t error); 25 extern status_t _user_get_next_image_info(team_id team, int32 *_cookie, 26 image_info *userInfo, size_t size); 27 extern status_t _user_get_image_info(image_id id, image_info *userInfo, size_t size); 28 29 #endif /* _KRENEL_IMAGE_H */ 30