2003-01-12 18:59:12 +03:00
|
|
|
/*
|
2004-05-11 19:04:36 +04:00
|
|
|
** Copyright 2003-2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
|
2003-01-12 18:59:12 +03:00
|
|
|
** Distributed under the terms of the OpenBeOS License.
|
|
|
|
*/
|
|
|
|
#ifndef _KERNEL_IMAGE_H
|
|
|
|
#define _KERNEL_IMAGE_H
|
|
|
|
|
|
|
|
|
|
|
|
#include <image.h>
|
|
|
|
|
|
|
|
|
|
|
|
struct team;
|
|
|
|
|
2004-05-11 19:04:36 +04:00
|
|
|
extern image_id register_image(struct team *team, image_info *info, size_t size);
|
|
|
|
extern status_t unregister_image(struct team *team, image_id id);
|
2003-01-12 18:59:12 +03:00
|
|
|
extern int32 count_images(struct team *team);
|
|
|
|
extern status_t remove_images(struct team *team);
|
2004-05-11 19:04:36 +04:00
|
|
|
extern status_t image_init(void);
|
2003-01-12 18:59:12 +03:00
|
|
|
|
|
|
|
// user-space exported calls
|
2004-05-11 19:04:36 +04:00
|
|
|
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);
|
2003-01-12 18:59:12 +03:00
|
|
|
|
|
|
|
#endif /* _KRENEL_IMAGE_H */
|