haiku/headers/private/fs_shell/fssh_module.h
Ingo Weinhold a38a92c955 Beginnings of a new, better portable FS shell with Haiku FS interface.
Doesn't do anything ATM, but already provides the required system
interface (VFS, caches, POSIX functions).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20859 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-04-27 12:17:22 +00:00

63 lines
1.3 KiB
C

/* Modules Definitions
**
** Distributed under the terms of the OpenBeOS License.
*/
#ifndef _FSSH_MODULE_H
#define _FSSH_MODULE_H
#include "fssh_os.h"
/* Every module exports a list of module_info structures.
* It defines the interface of the module and the name
* that is used to access the interface.
*/
typedef struct fssh_module_info {
const char *name;
uint32_t flags;
fssh_status_t (*std_ops)(int32_t, ...);
} fssh_module_info;
/* module standard operations */
#define FSSH_B_MODULE_INIT 1
#define FSSH_B_MODULE_UNINIT 2
/* module flags */
#define FSSH_B_KEEP_LOADED 0x00000001
/* Use the module_dependency structure to let the
* kernel automatically load modules yet depend on
* before B_MODULE_INIT is called.
*/
typedef struct fssh_module_dependency {
const char *name;
fssh_module_info **info;
} fssh_module_dependency;
#if 0
#ifdef __cplusplus
extern "C" {
#endif
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 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);
#ifdef __cplusplus
}
#endif
#endif // 0
#endif /* _FSSH_MODULE_H */