aboutsummaryrefslogtreecommitdiff
path: root/hardinfo/info.c
AgeCommit message (Collapse)Author
2018-05-18Fix compiler warnings generated with GCC 8Leandro Pereira
2017-08-21Remove duplicate group headers in computer summaryBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-15Add info_field_printf() to reduce some sturct Info field boilerplateLeandro Pereira
2017-08-14Use GString to flatten struct InfoLeandro Pereira
While info_flatten() is just a scaffold, use GString to reduce the amount of temporary heap memory allocations.
2017-08-14Begin getting rid of callbacks returning stringsLeandro Pereira
Strings were never a good choice to begin with. However, with the efforts to improve translatability, they became even worse. This is an attempt to clean up the current mess and provide a more structured way for modules to commmunicate with the shell. The Computer module has been partially converted and changes will be provided next. It's partially converted since some of its information is still stored as strings. The Shell still only understands strings; that's why the structured data is converted to a string the way it is. Once all modules are converted, the Shell can be modified to handle struct Info directly without having to parse the .ini-like strings.