aboutsummaryrefslogtreecommitdiff
path: root/includes/vendor.h
AgeCommit message (Collapse)Author
2024-02-08LICENSE Changed to GPL2+ for project and source code According to approval ↵bigbear
from copyright holders - see: https://github.com/lpereira/hardinfo/issues/530 https://github.com/lpereira/hardinfo/issues/707
2021-11-07Update copyright informationL Pereira
2019-08-28vendor: update vendor.{h,c}Burt P
Mostly new match rules. Signed-off-by: Burt P <pburt0@gmail.com>
2019-07-29vendor_match() sentinel attributeBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2019-07-29vendor.ids update and vendor.{h,c} improvements from sysobj versionBurt P
* more fields in struct Vendor. * match_case -> match_rule and new match rule "exact". match_rule remains compatible with match_case for old conf format. * matches must be "whole word" matches so "Harmony" no longer hits for "ARM". * Parts outside of () are checked first, so "Foo (formerly Barly)" matches Foo before Barly, even though Barly is longer and would otherwise match first. * vendor_list type (a blessed GSList*) and helper functions to manage it. Signed-off-by: Burt P <pburt0@gmail.com>
2019-07-12Add functions to get a formatted link for a vendorLeandro Pereira
2018-11-04devices: get_motherboard(), shorten vendor if possibleBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-06-02vendor.c: add some data fields and cleanupBurt P
* Initialize strings to empty in `read_from_vendor_ids()` * vendor.ids format reader clears all fields at `name` * Added `name_short`, and `url_support` fields * `vendor_cleanup()` function that frees `vendor_list` * `vendor_match()` returns the whole `Vendor` data structure Signed-off-by: Burt P <pburt0@gmail.com>
2018-05-27vendor.c: fix vendor sortBurt P
Fix a really stupid sort function I wrote for 60b9f3360930296c0f3e8b04672b8bf7468bedcb. Now actually does what that commit claims to do. I think I must have just sketched it out and then forgot to go back and correct it. It's weird that it happened to fix the one result I was testing for. Signed-off-by: Burt P <pburt0@gmail.com>
2018-04-24vendor.c: try and reduce the likelihood of false matchesBurt P
* Rename struct members to be less ambiguous * Sort the list by length of match_string, longest first, so better matches match first * Add flag to force case-sensitive matching so that two or three-letter names don't match names that happen to have those letters in them Also, added ASUS and fixes #241. (https://github.com/lpereira/hardinfo/issues/241) Signed-off-by: Burt P <pburt0@gmail.com>
2010-05-03Move files from hardinfo2 to root.Leandro A. F. Pereira