Removed the export prototypes - this is now completely done in rldexport.c.

Now more dynmodule_id; it now uses the image_id directly.
Updated for the other changes to the functions.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2433 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2003-01-12 16:51:15 +00:00
parent 24154245f1
commit 9bbbc67386
1 changed files with 16 additions and 26 deletions

View File

@ -3,43 +3,33 @@
** Distributed under the terms of the NewOS License. ** Distributed under the terms of the NewOS License.
*/ */
#ifndef __newos__run_time_linker__hh__ #ifndef RUN_TIME_LINKER_H
#define __newos__run_time_linker__hh__ #define RUN_TIME_LINKER_H
#include <ktypes.h>
#include <user_runtime.h> #include <user_runtime.h>
#define NEWOS_MAGIC_APPNAME "__NEWOS_APP__"
typedef unsigned dynmodule_id;
int RLD_STARTUP(void *); int RLD_STARTUP(void *);
int rldmain(void *arg); int rldmain(void *arg);
dynmodule_id load_program(char const *path, void **entry); status_t unload_program(image_id imageID);
dynmodule_id load_library(char const *path); image_id load_program(char const *path, void **entry);
dynmodule_id load_addon(char const *path); status_t unload_library(image_id imageID);
dynmodule_id unload_program(dynmodule_id imid); image_id load_library(char const *path, uint32 flags);
dynmodule_id unload_library(dynmodule_id imid); status_t unload_addon(image_id imageID);
dynmodule_id unload_addon(dynmodule_id imid); image_id load_addon(char const *path);
status_t get_nth_symbol(image_id imageID, int32 num, char *nameBuffer, int32 *_nameLength,
int32 *_type, void **_location);
status_t get_symbol(image_id imageID, char const *symbolName, int32 symbolType,
void **_location);
void *dynamic_symbol(dynmodule_id imid, char const *symbol); void rldelf_init(struct uspace_program_args const *uspa);
void rldexport_init(struct uspace_program_args *uspa);
void rldelf_init(struct uspace_prog_args_t const *uspa);
// RLD heap
void rldheap_init(void); void rldheap_init(void);
void *rldalloc(size_t); void *rldalloc(size_t);
void rldfree(void *p); void rldfree(void *p);
int export_dl_open(char const *, unsigned); #endif /* RUN_TIME_LINKER_H */
int export_dl_close(int, unsigned);
void *export_dl_sym(int, char const *, unsigned);
int export_load_addon(char const *, unsigned);
int export_unload_addon(int, unsigned);
void *export_addon_symbol(int, char const *, unsigned);
#endif