aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-08-10benchmark: make sure lookup key is uniqueBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2019-08-10shell/info: allow newlines in valuesBurt P
Also fixed a FIXME: use g_key_file_get_string_list(). Signed-off-by: Burt P <pburt0@gmail.com>
2019-07-31Remove old open_url() in favor or uri_open()Burt P
See: https://github.com/lpereira/hardinfo/pull/417#discussion_r308512774 Signed-off-by: Burt P <pburt0@gmail.com>
2019-07-29udisks2: get sdcard oem/manufacturerBurt P
udisks doesn't provide, but it can be looked up using attributes from sysfs. Signed-off-by: Burt P <pburt0@gmail.com>
2019-07-29replace idle_free() with auto_free() from sysobjBurt P
* auto_free() works in both report mode and gui mode. * auto_free() only creates one recuring event for the whole system rather than idle_free()'s one event per call. * auto_free_ex() allows specifying the free function to use. * auto_free() is thread-aware, free_auto_free_thread_final() can be used to clean up on thread exit. * auto_free() has some tweakability. 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-29uri_handler functions from sysobjBurt P
This allows link clicks to be intercepted so that they might be used by the application internally before falling back to the system uri handler. I've also found the default GTK label link handler to be unreliable outside of GNOME Shell, and this will use xdg-open instead. 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-29usb: added interface labelOndrej Čerman
2019-07-29usb: Workaround when lsusb parses same interface multiple timesOndrej Čerman
2019-07-29usb: sorted sysfs usb devices listOndrej Čerman
2019-07-29usb: added info from sysfsOndrej Čerman
2019-07-29shell: strend('#') group label in new detail viewBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2019-07-29struct Info: handle groups with the same name in flatten()Burt P
Signed-off-by: Burt P <pburt0@gmail.com>
2019-07-29rpi4b 4gb version, make all mem values M(i)BBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2019-07-29raspberry pi memory typesBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2019-07-29shell.c: small fix for labelBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2019-07-29dmi_util: extended handle data typeBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2019-07-29struct Info: make info_add_computed_group() use info_unflatten()Burt P
Signed-off-by: Burt P <pburt0@gmail.com>
2019-07-29struct info unflatten [v2]Burt P
Signed-off-by: Burt P <pburt0@gmail.com>
2019-07-14Fix buffer overflow in fbenchLeandro Pereira
2019-07-14Fix buffer overflow when performing parallel benchmarksLeandro Pereira
2019-07-14Pulse status bar while filling out PCI informationLeandro Pereira
Maybe this could use the async version too, so multiple lspci can be spawned concurrently?
2019-07-12Add new vendorsLeandro Pereira
2019-07-12Tweak border in detailviewLeandro Pereira
2019-07-12Show links for vendorsLeandro Pereira
2019-07-12Add functions to get a formatted link for a vendorLeandro Pereira
2019-07-11Misc. cleanups in struct Info implementationLeandro Pereira
2019-07-11info struct bug Fixes, add tagged update fieldsBurt P
* tag was always included even when it didn't need to be. Now only include it when tag specified, flagged, or includes an icon. This messed up the existing update fields system. * The update fields system has been changed to allow updating by tag instead of the translated label. By label still works, however. I think it would be best to switch to using tags in the future. * info_flatten() calls flatten_shell_param() after flatten_group() which could cause a field name or tag to be used after it was freed. Created special free functions to handle this after all is used. Signed-off-by: Burt P <pburt0@gmail.com>
2019-07-11rpi_data: Add Raspberry Pi 4B 1GB and 2GB versionsBurt P
Source: https://elinux.org/RPi_HardwareHistory Signed-off-by: Burt P <pburt0@gmail.com>
2019-07-11Ensure UpdateInterval $ShellParam$ have a dollar signLeandro Pereira
2019-07-11Mark `tag' field in InfoField as a scaffolding elementLeandro Pereira
Whenever every module is converted to struct Info, manually-specified tags will be useless.
2019-07-11Do not copy InfoField while flatteningLeandro Pereira
2019-07-10benchmark: add extra fields to result for revision and informationBurt P
* add an integer revision field * add an extra information string field * zlib benchmark: new revision[1] is 2, so that old results are obviously old, and now the zlib version string will be stored in extra information. [1] as of 6a8e19a14305079b03e45eeb0580a45104f300dd Signed-off-by: Burt P <pburt0@gmail.com>
2019-07-10shell/report.c: fix "return with no value"Juro Bystricky
Fix the warning: report.c: In function ‘make_icon_css’: shell/report.c:103:9: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] Failure of the sanity test at the beginning of "make_icon_css" will result in returning of a random value instead of a gchar*. With this patch we return a gchar* to an empty string instead. Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2019-07-10devices/storage: small fixesOndrej Čerman
2019-07-10devices/storage: added partitions infoOndrej Čerman
2019-07-10ubuntu flavors: vanilla png -> svgBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2019-07-10Use SVG for distro iconsBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2019-07-10UbuntuFlavor -> DistroFlavor: perhaps more easily used by non-ubuntu distrosBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2019-07-10Add SVG icon support in report HTML and Xubuntu icon to demonstrateBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2019-07-10computer/os: Ubuntu flavorsBurt P
See: https://github.com/lpereira/hardinfo/issues/404 Signed-off-by: Burt P <pburt0@gmail.com>
2019-07-07computer/display.c: handle unknown session typeBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2019-07-06Use optional parameters to info_field() to specify iconsLeandro Pereira
2019-07-06Fix compiler warnings in SPD decoderLeandro Pereira
2019-07-06Copy CPU vulnerability name to InfoFieldLeandro Pereira
Fixes #392
2019-07-06Allow passing more flags to info_field(), info_field_update(), etcLeandro Pereira
2019-07-06Add `free_name_on_flatten` flag to struct InfoFieldLeandro Pereira
2019-07-06No need to have some_member_with_default_value in struct InfoFieldLeandro Pereira
2019-07-06Cleanup group comparison functionsLeandro Pereira
Reduce code repetition by using an array of GCompareFunc function pointers.