summaryrefslogtreecommitdiffstats
path: root/perl-install/c/stuff.xs.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2000-12-16 00:01:01 +0000
committerPascal Rigaux <pixel@mandriva.com>2000-12-16 00:01:01 +0000
commite76ac94274b3c3e3bb809f9a73718a56e652631b (patch)
tree3432bdcb3572cbb5f2119320479a740e21fcf151 /perl-install/c/stuff.xs.pm
parentb54e6a2e39241e56b58e94aeade346a55e4885e4 (diff)
downloaddrakx-backup-do-not-use-e76ac94274b3c3e3bb809f9a73718a56e652631b.tar
drakx-backup-do-not-use-e76ac94274b3c3e3bb809f9a73718a56e652631b.tar.gz
drakx-backup-do-not-use-e76ac94274b3c3e3bb809f9a73718a56e652631b.tar.bz2
drakx-backup-do-not-use-e76ac94274b3c3e3bb809f9a73718a56e652631b.tar.xz
drakx-backup-do-not-use-e76ac94274b3c3e3bb809f9a73718a56e652631b.zip
pci_probing now done by libldetect
config files moved in package ldetect-lst
Diffstat (limited to 'perl-install/c/stuff.xs.pm')
-rw-r--r--perl-install/c/stuff.xs.pm18
1 files changed, 18 insertions, 0 deletions
diff --git a/perl-install/c/stuff.xs.pm b/perl-install/c/stuff.xs.pm
index 63630c89b..37c32296e 100644
--- a/perl-install/c/stuff.xs.pm
+++ b/perl-install/c/stuff.xs.pm
@@ -28,6 +28,7 @@ print '
#include <net/if.h>
#include <net/route.h>
+#include <libldetect.h>
#include <gdk/gdkx.h>
#include <X11/Xlib.h>
#include <X11/extensions/xf86misc.h>
@@ -200,6 +201,23 @@ _exit(status)
int
detectSMP()
+void
+pci_probe(probe_type)
+ int probe_type
+ PPCODE:
+ struct pci_entries entries = pci_probe(probe_type);
+ char buf[2048];
+ int i;
+
+ EXTEND(SP, entries.nb);
+ for (i = 0; i < entries.nb; i++) {
+ struct pci_entry e = entries.entries[i];
+ snprintf(buf, sizeof(buf), "%04x\t%04x\t%04x\t%04x\t%s\t%s\t%s",
+ e.vendor, e.device, e.subvendor, e.subdevice, pci_class2text(e.class), e.module ? e.module : "unknown", e.text);
+ PUSHs(sv_2mortal(newSVpv(buf, 0)));
+ }
+ pci_free(entries);
+
char*
crypt_md5(pw, salt)
char *pw