[un]load_library() now also supports add-ons. [un]load_addon() is no longer needed.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11686 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2005-03-12 00:00:04 +00:00
parent 2d890ffaa2
commit adc9c4c556
2 changed files with 4 additions and 6 deletions

View File

@ -15,10 +15,8 @@ int rldmain(void *arg);
status_t unload_program(image_id imageID); status_t unload_program(image_id imageID);
image_id load_program(char const *path, void **entry); image_id load_program(char const *path, void **entry);
status_t unload_library(image_id imageID); status_t unload_library(image_id imageID, bool addOn);
image_id load_library(char const *path, uint32 flags); image_id load_library(char const *path, uint32 flags, bool addOn);
status_t unload_addon(image_id imageID);
image_id load_addon(char const *path);
status_t get_nth_symbol(image_id imageID, int32 num, char *nameBuffer, int32 *_nameLength, status_t get_nth_symbol(image_id imageID, int32 num, char *nameBuffer, int32 *_nameLength,
int32 *_type, void **_location); int32 *_type, void **_location);
status_t get_symbol(image_id imageID, char const *symbolName, int32 symbolType, status_t get_symbol(image_id imageID, char const *symbolName, int32 symbolType,

View File

@ -15,14 +15,14 @@ export_load_add_on(char const *name, uint32 flags)
{ {
// ToDo: use load_add_on() here when it's implemented, or better, unify // ToDo: use load_add_on() here when it's implemented, or better, unify
// load_library() and load_add_on(). // load_library() and load_add_on().
return load_library(name, flags); return load_library(name, flags, true);
} }
static status_t static status_t
export_unload_add_on(image_id id) export_unload_add_on(image_id id)
{ {
return unload_library(id); return unload_library(id, true);
} }