Age | Commit message (Collapse) | Author |
|
If lengths are equal then prefer
name_short > name > id_str.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
consistent
Following the old behavior of returning the passed-in string if not found.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
* 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>
|
|
Create a new, more easily maintained, file for vendor information.
Installs with hardinfo, but can be sync-ed if that function ever
gets restored.
Reading the old vendor.conf format is still fully supported, AFAIK.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
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>
|
|
Build the configuration file path using g_get_user_config_dir() instead of g_get_home_dir().
|
|
* 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>
|
|
x86/processor.c uses vendor_get_name() with the CPUID vendor
string as argument.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
* nVidia tweak
* Don't strdup() vendor_get_*() results, they return const and nobody's
freeing them anyway.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
|