diff options
Diffstat (limited to 'hardinfo.h')
-rw-r--r-- | hardinfo.h | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -1,6 +1,6 @@ /* * HardInfo - Displays System Information - * Copyright (C) 2003-2007 Leandro A. F. Pereira <leandro@linuxmag.com.br> + * Copyright (C) 2003-2007 Leandro A. F. Pereira <leandro@hardinfo.org> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -39,6 +39,7 @@ struct _ProgramParameters { gchar **use_modules; gchar *path_lib; gchar *path_data; + gchar *argv0; }; struct _FileTypes { @@ -64,7 +65,7 @@ struct _ModuleAbout { /* String utility functions */ inline void remove_quotes(gchar *str); -inline void strend(gchar *str, gchar chr); +inline char *strend(gchar *str, gchar chr); inline void remove_linefeed(gchar *str); gchar *strreplace(gchar *string, gchar *replace, gchar new_char); @@ -88,6 +89,8 @@ gpointer __idle_free(gpointer ptr, gchar *f, gint l); #define idle_free(p) __idle_free(p, __FILE__, __LINE__) #endif /* RELEASE == 1 */ + +gchar *find_program(gchar *program_name); inline gchar *size_human_readable(gfloat size); void nonblock_sleep(guint msec); void open_url(gchar *url); @@ -118,7 +121,12 @@ extern ProgramParameters params; /* Module stuff */ gchar *module_call_method(gchar *method); +gchar *module_call_method_param(gchar * method, gchar * parameter); +/* Sysfs stuff */ +gfloat h_sysfs_read_float(gchar *endpoint, gchar *entry); +gint h_sysfs_read_int(gchar *endpoint, gchar *entry); +gchar *h_sysfs_read_string(gchar *endpoint, gchar *entry); #define SCAN_START() static gboolean scanned = FALSE; if (reload) scanned = FALSE; if (scanned) return; #define SCAN_END() scanned = TRUE; |