3 ** Distributed under the terms of the MIT License.
13 /* Every module exports a list of module_info structures.
14 * It defines the interface of the module and the name
15 * that is used to access the interface.
18 typedef struct fssh_module_info
{
21 fssh_status_t (*std_ops
)(int32_t, ...);
24 /* module standard operations */
25 #define FSSH_B_MODULE_INIT 1
26 #define FSSH_B_MODULE_UNINIT 2
29 #define FSSH_B_KEEP_LOADED 0x00000001
32 /* Use the module_dependency structure to let the
33 * kernel automatically load modules yet depend on
34 * before B_MODULE_INIT is called.
37 typedef struct fssh_module_dependency
{
39 fssh_module_info
**info
;
40 } fssh_module_dependency
;
47 extern fssh_status_t
fssh_get_module(const char *path
,
48 fssh_module_info
**_info
);
49 extern fssh_status_t
fssh_put_module(const char *path
);
55 #endif /* _FSSH_MODULE_H */