From a461a29bd60928e14cc8ff311734ccd1dae5ffd4 Mon Sep 17 00:00:00 2001 From: Leandro Pereira Date: Mon, 14 Aug 2017 09:48:34 -0700 Subject: Begin getting rid of callbacks returning strings 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. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 439a58a6..d82b2927 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -245,6 +245,7 @@ add_executable(hardinfo hardinfo/socket.c hardinfo/util.c hardinfo/vendor.c + hardinfo/info.c shell/callbacks.c shell/iconcache.c shell/menu.c -- cgit v1.2.3