From ceba105306d70cbfa5b59bf77cd0500119ceae0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 18 Jan 2005 02:34:00 +0000 Subject: [PATCH] Added function prototypes for the kernel private load_module() and unload_module() calls. Made the header C++ safe. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10820 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/private/kernel/kmodule.h | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/headers/private/kernel/kmodule.h b/headers/private/kernel/kmodule.h index 28503806e2..6114bb5606 100644 --- a/headers/private/kernel/kmodule.h +++ b/headers/private/kernel/kmodule.h @@ -1,17 +1,29 @@ /* -** Copyright 2001-2002, Thomas Kurschel. All rights reserved. -** Distributed under the terms of the NewOS License. -*/ - + * Copyright 2005, Axel Dörfler, axeld@pinc-software.de. All rights reserved. + * + * Distributed under the terms of the MIT License. + */ #ifndef _KERNEL_MODULE_H #define _KERNEL_MODULE_H + #include #include struct kernel_args; + +#ifdef __cplusplus +extern "C" { +#endif + +extern status_t unload_module(const char *path); +extern status_t load_module(const char *path, module_info ***_modules); + extern status_t module_init(struct kernel_args *args); -extern void module_test(void); + +#ifdef __cplusplus +} +#endif #endif /* _KRENEL_MODULE_H */