Age | Commit message (Collapse) | Author |
|
See: https://github.com/lpereira/hardinfo/issues/404
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
|
|
Reduce code repetition by using an array of GCompareFunc function
pointers.
|
|
Fields are sorted on flatten.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
|
|
See:
https://github.com/lpereira/hardinfo/pull/393#issuecomment-507893260
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
|
|
Otherwise, the field updater would look for a field $ITEM-g-i$FieldName,
which it has no way of knowing about.
|
|
|
|
|
|
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
|
|
While info_flatten() is just a scaffold, use GString to reduce the
amount of temporary heap memory allocations.
|
|
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.
|