xref: /haiku/headers/private/kernel/kimage.h (revision d29f332ad4210e2e2b5ef42231531dd937ebc52e)
1 /*
2  * Copyright 2003-2005, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3  * Distributed under the terms of the MIT 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 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 extern image_id register_image(struct team *team, image_info *info, size_t size);
19 extern status_t unregister_image(struct team *team, image_id id);
20 extern int32 count_images(struct team *team);
21 extern status_t remove_images(struct team *team);
22 
23 extern status_t image_debug_lookup_user_symbol_address(struct team *team,
24 					addr_t address, addr_t *_baseAddress, const char **_symbolName,
25 					const char **_imageName, bool *_exactMatch);
26 extern status_t image_init(void);
27 
28 // user-space exported calls
29 extern status_t _user_unregister_image(image_id id);
30 extern image_id _user_register_image(image_info *userInfo, size_t size);
31 extern void		_user_image_relocated(image_id id);
32 extern void		_user_loading_app_failed(status_t error);
33 extern status_t _user_get_next_image_info(team_id team, int32 *_cookie,
34 					image_info *userInfo, size_t size);
35 extern status_t _user_get_image_info(image_id id, image_info *userInfo, size_t size);
36 
37 #ifdef __cplusplus
38 }
39 #endif
40 
41 #endif	/* _KRENEL_IMAGE_H */
42