aboutsummaryrefslogtreecommitdiff
path: root/hardinfo2/hardinfo.h
diff options
context:
space:
mode:
authorLeandro A. F. Pereira <leandro@hardinfo.org>2006-10-27 14:51:46 +0000
committerLeandro A. F. Pereira <leandro@hardinfo.org>2006-10-27 14:51:46 +0000
commit0f224e134234a6fb880613babd45942ece918f92 (patch)
treed453a4912c514a45955c2badcd8e0b187b6af5da /hardinfo2/hardinfo.h
parente5c7cba7ec1deb207ff5b6b93815d8d15e84d270 (diff)
Cleanups. Fallback to using hardcoded paths if binreloc fails. Add GTK+ log handler (shows errors and warnings in a graphical window).
Diffstat (limited to 'hardinfo2/hardinfo.h')
-rw-r--r--hardinfo2/hardinfo.h40
1 files changed, 26 insertions, 14 deletions
diff --git a/hardinfo2/hardinfo.h b/hardinfo2/hardinfo.h
index afed5ca0..285a422c 100644
--- a/hardinfo2/hardinfo.h
+++ b/hardinfo2/hardinfo.h
@@ -21,7 +21,7 @@
#include <gtk/gtk.h>
-typedef struct _ModuleEntry ModuleEntry;
+typedef struct _ModuleEntry ModuleEntry;
typedef struct _FileTypes FileTypes;
struct _FileTypes {
@@ -36,21 +36,33 @@ struct _ModuleEntry {
gchar *icon;
};
-inline void remove_quotes(gchar *str);
-inline void strend(gchar *str, gchar chr);
-inline void remove_linefeed(gchar *str);
- void widget_set_cursor(GtkWidget *widget, GdkCursorType cursor_type);
+/* String utility functions */
+inline void remove_quotes(gchar *str);
+inline void strend(gchar *str, gchar chr);
+inline void remove_linefeed(gchar *str);
+
+/* Widget utility functions */
+void widget_set_cursor(GtkWidget *widget, GdkCursorType cursor_type);
+
+/* File Chooser utility functions */
+void file_chooser_open_expander(GtkWidget *chooser);
+void file_chooser_add_filters(GtkWidget *chooser, FileTypes *filters);
+gchar *file_chooser_get_extension(GtkWidget *chooser, FileTypes *filters);
+gchar *file_chooser_build_filename(GtkWidget *chooser, gchar *extension);
+gpointer file_types_get_data_by_name(FileTypes *file_types, gchar *name);
+
+/* Misc utility functions */
inline gchar *size_human_readable(gfloat size);
- void nonblock_sleep(guint msec);
+void nonblock_sleep(guint msec);
+
+/* BinReloc stuff */
+gboolean binreloc_init(gboolean try_hardcoded);
- void file_chooser_open_expander(GtkWidget *chooser);
- void file_chooser_add_filters(GtkWidget *chooser, FileTypes *filters);
- gchar *file_chooser_get_extension(GtkWidget *chooser, FileTypes *filters);
- gchar *file_chooser_build_filename(GtkWidget *chooser, gchar *extension);
-
- gpointer file_types_get_data_by_name(FileTypes *file_types, gchar *name);
+extern gchar* path_lib;
+extern gchar* path_data;
-extern gchar* path_lib;
-extern gchar* path_data;
+/* GTK UI stuff */
+gboolean ui_init(int *argc, char ***argv);
+extern gboolean gui_running;
#endif /* __HARDINFO_H__ */