aboutsummaryrefslogtreecommitdiff
path: root/hardinfo
diff options
context:
space:
mode:
Diffstat (limited to 'hardinfo')
-rw-r--r--hardinfo/pci_util.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/hardinfo/pci_util.c b/hardinfo/pci_util.c
index 9502b23b..69150732 100644
--- a/hardinfo/pci_util.c
+++ b/hardinfo/pci_util.c
@@ -151,6 +151,11 @@ static gboolean pci_lookup_ids(pcid *d) {
return ret;
}
+gint pcid_cmp_by_addy(const pcid* a, const pcid* b) {
+ if (!a || !b) return (!!a - !!b);
+ return g_strcmp0(a->slot_str, b->slot_str);
+}
+
void pcid_free(pcid *s) {
if (s) {
g_free(s->slot_str);