From 0360052d0fd202158ca96e48a171746a3cb8acf5 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Thu, 25 Jan 2001 15:13:34 +0000 Subject: better tightness of probing stuff --- mdk-stage1/probing.c | 12 +++++++++++- mdk-stage1/probing.h | 13 ------------- 2 files changed, 11 insertions(+), 14 deletions(-) (limited to 'mdk-stage1') diff --git a/mdk-stage1/probing.c b/mdk-stage1/probing.c index d67719041..88b406b8a 100644 --- a/mdk-stage1/probing.c +++ b/mdk-stage1/probing.c @@ -49,13 +49,23 @@ #include "probing.h" +enum bus_type { IDE, SCSI }; + +struct media_info { + char * name; + char * model; + enum media_type type; + enum bus_type bus; +}; + + static void warning_insmod_failed(void) { error_message("Warning, installation of driver failed."); } -void probe_that_type(enum driver_type type) +static void probe_that_type(enum driver_type type) { if (IS_EXPERT) ask_insmod(type); diff --git a/mdk-stage1/probing.h b/mdk-stage1/probing.h index cb01d4fa6..ecafa0e0a 100644 --- a/mdk-stage1/probing.h +++ b/mdk-stage1/probing.h @@ -24,21 +24,8 @@ enum media_type { CDROM, DISK, FLOPPY, TAPE, UNKNOWN_MEDIA }; -enum bus_type { IDE, SCSI }; - -struct media_info { - char * name; - char * model; - enum media_type type; - enum bus_type bus; -}; - -enum media_query_type { QUERY_NAME, QUERY_MODEL }; - enum driver_type { SCSI_ADAPTERS, NETWORK_DEVICES, ANY_DRIVER_TYPE }; - -void probe_that_type(enum driver_type type); void get_medias(enum media_type media, char *** names, char *** models); char ** get_net_devices(void); -- cgit v1.2.1