aboutsummaryrefslogtreecommitdiff
path: root/modules/computer.c
diff options
context:
space:
mode:
authorBurt P <pburt0@gmail.com>2017-08-15 02:32:23 -0500
committerLeandro A. F. Pereira <leandro@hardinfo.org>2017-08-21 05:47:00 -0700
commit431d86000fb1491ca15eeab6f9bd027c6a75f477 (patch)
tree424bf3d352f0daf6702551c32b350fa5baa82943 /modules/computer.c
parentc83636f963c6fdc1dcf6bd62107b3ed4a3fd6244 (diff)
Add OpenGL Renderer to benchmark result details
For the GPU Drawing benchmark at least, it should give some idea of the graphics capabilities of the machine. This is the only data hardinfo currently has about that. Maybe in the future, more advanced GPU information could be given. Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'modules/computer.c')
-rw-r--r--modules/computer.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/computer.c b/modules/computer.c
index 513d94f5..8c4e4345 100644
--- a/modules/computer.c
+++ b/modules/computer.c
@@ -645,6 +645,13 @@ gchar *get_os(void)
return g_strdup(computer->os->distro);
}
+gchar *get_ogl_renderer(void)
+{
+ scan_display(FALSE);
+
+ return g_strdup(computer->display->ogl_renderer);
+}
+
gchar *get_display_summary(void)
{
scan_display(FALSE);
@@ -689,6 +696,7 @@ ShellModuleMethod *hi_exported_methods(void)
{"getOSKernel", get_os_kernel},
{"getOS", get_os},
{"getDisplaySummary", get_display_summary},
+ {"getOGLRenderer", get_ogl_renderer},
{"getAudioCards", get_audio_cards},
{"getKernelModuleDescription", get_kernel_module_description},
{NULL}