aboutsummaryrefslogtreecommitdiff
path: root/includes
AgeCommit message (Collapse)Author
2019-07-29struct info unflatten [v2]Burt P
Signed-off-by: Burt P <pburt0@gmail.com>
2019-07-12Add functions to get a formatted link for a vendorLeandro 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-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-10devices/storage: small fixesOndrej Čerman
2019-07-10devices/storage: added partitions infoOndrej Čerman
2019-07-10UbuntuFlavor -> DistroFlavor: perhaps more easily used by non-ubuntu distrosBurt 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-06Use optional parameters to info_field() to specify iconsLeandro Pereira
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.
2019-07-06struct info: add field sort option to InfoGroupBurt P
Fields are sorted on flatten. Signed-off-by: Burt P <pburt0@gmail.com>
2019-07-06struct info: try bools instead of flagsBurt P
2019-07-06struct info: add macros as described by lpereiraBurt P
See: https://github.com/lpereira/hardinfo/pull/393#issuecomment-507893260 Signed-off-by: Burt P <pburt0@gmail.com>
2019-07-06struct info: add morinfo() tag and flags supportBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2019-07-05[v3] shell: fix icons with flagsBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2019-07-05shell: key_* functions use constBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2019-07-04shell/report: icon cache using cssBurt P
Only include one copy of each icon in the source, by using css class rather than img with src for each instance. Signed-off-by: Burt P <pburt0@gmail.com>
2019-07-04shell/report: add icons to HTML reportsBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2019-07-04Use DetailView for SHELL_VIEW_NORMAL and the more info displayLeandro Pereira
This change has been made mostly because we need more control in how things are displayed, and fighting GTK+ so that this is possible isn't going to cut it. For instance, it is now possible to display links -- albeit only external links at the moment, but internal links will be possible, allowing for instance for one to click in a kernel module dependency to know more about that particular module. Links will also be useful to go to the vendor website, and maybe other things (like web search for Vendor + Product ID) and whatnot. Eventually this will replace the summary view altogether. That code has a lot of drawbacks, including not being able to have its contents copied to the clipboard, appear in reports, or have auto-updating fields. It stays for now, but it will be gone before 0.6 is released. I had forgotten how messy this code is. One of the reasons I lost the interest in this project... I want to hack on a nicer code base but I also lack the strong motivation to write the shell from the scratch.
2019-07-04Rename SummaryView to DetailViewLeandro Pereira
2019-07-04Rename Shell->{info,moreinfo} to {info,moreinfo}_treeLeandro Pereira
2019-07-04There's no need for the side bar to be resizableLeandro Pereira
2019-07-02dmi_util/memory devices: fixes for 32-bit systemsBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2019-06-30devices/storage: Better storage media labelsOndrej Čerman
2019-06-29Show kernel command lineLeandro Pereira
2019-06-29Clean up distro-detecting codeLeandro Pereira
2019-06-29Support icons in InfoFieldsLeandro Pereira
2019-06-29Allow more dynamic InfoGroup creationLeandro Pereira
2019-06-29h_sysfs_read_*() should take const pointers as argsLeandro Pereira
2019-06-29dmi_util: make cache static, use cache free functionBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2019-06-29Memory Devices: a little name cleanupBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2019-06-28Combine Memory DMI and Memory SPD into "Memory Devices"Burt P
Combines the information from DMI and SPD into a single Memory Devices section. Signed-off-by: Burt P <pburt0@gmail.com>
2019-06-26devices/dmi_memory.c: shell viewtype=1 version, other tweaksBurt P
* add -std=c99 for dmi_memory.c to use unicode * -std=c99 is picky about inline functions Signed-off-by: Burt P <pburt0@gmail.com>
2019-06-20move devices/memory to computer/memory usageBurt P
As discussed in https://github.com/lpereira/hardinfo/issues/345 Signed-off-by: Burt P <pburt0@gmail.com>
2019-06-18Add information about SELinux and other LSMsLeandro Pereira
2019-06-18Start Computer/SecurityBurt P
As requested in https://github.com/lpereira/hardinfo/issues/342 Signed-off-by: Burt P <pburt0@gmail.com>
2019-05-25Allow DMI on non-x86Burt P
There's nothing preventing this from running on non-x86. If it is not available it will just say so, like PCI. Signed-off-by: Burt P <pburt0@gmail.com>
2019-05-25devices/gpu: add memory freqOndrej Čerman
2019-05-13devices/storage - udisks2: added pm, apm, aam, part. table type and ↵Ondrej Čerman
partitions list
2019-01-15devices/sensors: Added HDD temperature sensors from udisks2Ondrej Čerman
2019-01-15devices/storage: Use udisks2 as primary source for storage infoOndrej Čerman
2018-12-02Perhaps fix implicit-pointer-decl warning for suseBurt P
(#298) I don't know what -W... would cause this to be checked by the compiler so I can't test it. It's not -Wimplicit-pointer-decl, at least not in gcc 8.2.0. This fix is a guess based on what I've read in other patches trying to fix this. Signed-off-by: Burt P <pburt0@gmail.com>
2018-11-30add hardinfo param for maximum number of benchmark results to includeBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-11-30devices/usb: Add USB interfaces and device iconsOndrej Čerman
* devices/usb: Added support for USB interfaces * devices/usb: added icons for usb devices * tabs -> spaces
2018-11-30devices/storage: added udisks2 supportOndrej Čerman
2018-11-04benchmark/blowfish: new version of blowfish benchmarkBurt P
The new version uses a fixed time and provides variants for single-thread, multi-thread, and multi-core. A few results are included. Signed-off-by: Burt P <pburt0@gmail.com>
2018-11-04params: html_ok -> markup_okBurt P
The html_ok param added in 970174b0897d40b804808632784ffa1544d9da93 is misleading. It turns out that it is not HTML, but Pango Markup that is used by GTK, and a subset of that happens to also work as HTML4 for the HTML report generation. This change renames html_ok to markup_ok in ProgramParameters and adds a comment explaining what common set of tags may be used. Also, if report generation happens as a fallback after GUI initialization failed, then also disable markup, unless report will be generated as HTML. Pango markup info at: https://developer.gnome.org/pango/stable/PangoMarkupFormat.html Signed-off-by: Burt P <pburt0@gmail.com>