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. --- includes/hardinfo.h | 1 + 1 file changed, 1 insertion(+) (limited to 'includes/hardinfo.h') diff --git a/includes/hardinfo.h b/includes/hardinfo.h index 8d5f70f1..f42f1e6c 100644 --- a/includes/hardinfo.h +++ b/includes/hardinfo.h @@ -24,6 +24,7 @@ #include "shell.h" #include "vendor.h" #include "gettext.h" +#include "info.h" #define HARDINFO_COPYRIGHT_LATEST_YEAR 2017 -- cgit v1.2.3