diff options
author | Erik Troan <ewt@redhat.com> | 1999-08-08 14:19:00 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 1999-08-08 14:19:00 +0000 |
commit | f388cddade39f4951a46433d5f6819e65f713232 (patch) | |
tree | e8a6a559fe2dde1ea9cfcccc7daf2165d67542dd /isys/probe.c | |
parent | dd72b2827c5d572fd1d0c78b8893cc04e3987369 (diff) | |
download | anaconda-f388cddade39f4951a46433d5f6819e65f713232.tar.gz anaconda-f388cddade39f4951a46433d5f6819e65f713232.tar.xz anaconda-f388cddade39f4951a46433d5f6819e65f713232.zip |
added kdAddDevice()
Diffstat (limited to 'isys/probe.c')
-rw-r--r-- | isys/probe.c | 11 |
1 files changed, 11 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; |