btrfs: [] on the end of a struct field is a variable length array.
[haiku.git] / headers / private / kernel / kmodule.h
blobd93e6cf5123ef1ee2a00c8afeaf00e998525fb46
1 /*
2 * Copyright 2005-2008, Axel Dörfler, axeld@pinc-software.de.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef _KERNEL_MODULE_H
6 #define _KERNEL_MODULE_H
9 #include <drivers/module.h>
10 #include <kernel.h>
12 struct kernel_args;
15 #ifdef __cplusplus
16 // C++ only part
18 class NotificationListener;
20 extern status_t start_watching_modules(const char *prefix,
21 NotificationListener &listener);
22 extern status_t stop_watching_modules(const char *prefix,
23 NotificationListener &listener);
26 extern "C" {
27 #endif
29 extern status_t unload_module(const char *path);
30 extern status_t load_module(const char *path, module_info ***_modules);
32 extern status_t module_init(struct kernel_args *args);
33 extern status_t module_init_post_threads(void);
34 extern status_t module_init_post_boot_device(bool bootingFromBootLoaderVolume);
36 #ifdef __cplusplus
38 #endif
40 #endif /* _KRENEL_MODULE_H */