summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>1999-08-08 14:19:00 +0000
committerErik Troan <ewt@redhat.com>1999-08-08 14:19:00 +0000
commitf388cddade39f4951a46433d5f6819e65f713232 (patch)
treee8a6a559fe2dde1ea9cfcccc7daf2165d67542dd
parentdd72b2827c5d572fd1d0c78b8893cc04e3987369 (diff)
downloadanaconda-f388cddade39f4951a46433d5f6819e65f713232.tar.gz
anaconda-f388cddade39f4951a46433d5f6819e65f713232.tar.xz
anaconda-f388cddade39f4951a46433d5f6819e65f713232.zip
added kdAddDevice()
-rw-r--r--isys/probe.c11
-rw-r--r--isys/probe.h2
2 files changed, 13 insertions, 0 deletions
diff --git a/isys/probe.c b/isys/probe.c
index 62d8b45cb..bb79337f6 100644
--- a/isys/probe.c
+++ b/isys/probe.c
@@ -35,6 +35,17 @@ static void addDevice(struct knownDevices * devices, struct device dev) {
devices->known[devices->numKnown++] = dev;
}
+void kdAddDevice(struct knownDevices * devices, enum deviceClass devClass,
+ char * devName, char * devModel) {
+ struct device new;
+
+ new.class = devClass;
+ new.name = devName;
+ new.model = devModel;
+
+ addDevice(devices, new);
+}
+
void kdFree(struct knownDevices * devices) {
if (devices->known) free(devices->known);
devices->known = NULL;
diff --git a/isys/probe.h b/isys/probe.h
index 17840703a..4c4c29556 100644
--- a/isys/probe.h
+++ b/isys/probe.h
@@ -20,5 +20,7 @@ int kdFindNetList(struct knownDevices * devices);
int kdFindIdeList(struct knownDevices * devices);
int kdFindScsiList(struct knownDevices * devices);
void kdFree(struct knownDevices * devices);
+void kdAddDevice(struct knownDevices * devices, enum deviceClass devClass,
+ char * devName, char * devModel);
#endif