* Added open_module_list_etc() that also allows to specify a required name

suffix. You can use this to verify the version of a module_info structure.
* Made module_info::std_ops optional.
* Minor cleanup in module.h.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24873 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2008-04-09 14:36:04 +00:00
parent 4f61b1059c
commit 8b79f1fd68
3 changed files with 65 additions and 27 deletions
+9 -7
View File
@@ -1,8 +1,7 @@
/* Modules Definitions
**
** Distributed under the terms of the OpenBeOS License.
*/
/*
* Copyright 2002-2008, Haiku Inc. All Rights Reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _MODULE_H
#define _MODULE_H
@@ -46,10 +45,13 @@ extern "C" {
extern status_t get_module(const char *path, module_info **_info);
extern status_t put_module(const char *path);
extern status_t get_next_loaded_module_name(uint32 *cookie, char *buffer, size_t *_bufferSize);
extern status_t get_next_loaded_module_name(uint32 *cookie, char *buffer,
size_t *_bufferSize);
extern void *open_module_list_etc(const char *prefix, const char *suffix);
extern void *open_module_list(const char *prefix);
extern status_t close_module_list(void *cookie);
extern status_t read_next_module_name(void *cookie, char *buffer, size_t *_bufferSize);
extern status_t read_next_module_name(void *cookie, char *buffer,
size_t *_bufferSize);
#ifdef __cplusplus
}