summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/modules.h
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2001-05-15 15:30:34 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2001-05-15 15:30:34 +0000
commit1d37d6bb722fe795289f4eaef6f89063868320c8 (patch)
tree640456abb6d3aef5841803f33fb26b3403171c92 /mdk-stage1/modules.h
parentb4fb40d5d5017449f2dddb5b8e45d63df7f5c170 (diff)
downloaddrakx-1d37d6bb722fe795289f4eaef6f89063868320c8.tar
drakx-1d37d6bb722fe795289f4eaef6f89063868320c8.tar.gz
drakx-1d37d6bb722fe795289f4eaef6f89063868320c8.tar.bz2
drakx-1d37d6bb722fe795289f4eaef6f89063868320c8.tar.xz
drakx-1d37d6bb722fe795289f4eaef6f89063868320c8.zip
better modules handling interface (use of enum rather than guessing single numbers..)
Diffstat (limited to 'mdk-stage1/modules.h')
-rw-r--r--mdk-stage1/modules.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/mdk-stage1/modules.h b/mdk-stage1/modules.h
index b1c921b01..9ed992033 100644
--- a/mdk-stage1/modules.h
+++ b/mdk-stage1/modules.h
@@ -18,8 +18,10 @@
#include "stage1.h"
#include "probing.h"
+enum insmod_return { INSMOD_OK, INSMOD_FAILED, INSMOD_FAILED_FILE_NOT_FOUND };
+
void init_modules_insmoding(void);
-int my_insmod(const char * mod_name, enum driver_type type, char * options);
+enum insmod_return my_insmod(const char * mod_name, enum driver_type type, char * options);
enum return_type ask_insmod(enum driver_type);
struct module_deps_elem {