diff options
Diffstat (limited to 'includes')
-rw-r--r-- | includes/benchmark.h | 10 | ||||
-rw-r--r-- | includes/hardinfo.h | 8 |
2 files changed, 18 insertions, 0 deletions
diff --git a/includes/benchmark.h b/includes/benchmark.h index 04182944..8af3739b 100644 --- a/includes/benchmark.h +++ b/includes/benchmark.h @@ -2,6 +2,7 @@ #define __BENCHMARK_H__ #include "hardinfo.h" +#include "util_sysobj.h" /* for SEQ() */ extern ProgramParameters params; @@ -37,6 +38,7 @@ typedef struct { int threads_used; int revision; char extra[256]; /* no \n, ; or | */ + char user_note[256]; /* no \n, ; or | */ } bench_value; #define EMPTY_BENCH_VALUE {-1.0f,0,0,-1,""} @@ -58,4 +60,12 @@ bench_value benchmark_crunch_for(float seconds, gint n_threads, extern bench_value bench_results[BENCHMARK_N_ENTRIES]; +/* in bench_util.c */ + +/* guarantee a minimum size of data + * or return null */ +gchar *get_test_data(gsize min_size); +char *md5_digest_str(const char *data, unsigned int len); +#define bench_msg(msg, ...) fprintf (stderr, "[%s] " msg "\n", __FUNCTION__, ##__VA_ARGS__) + #endif /* __BENCHMARK_H__ */ diff --git a/includes/hardinfo.h b/includes/hardinfo.h index ab9ecb55..cbbce468 100644 --- a/includes/hardinfo.h +++ b/includes/hardinfo.h @@ -70,6 +70,7 @@ struct _ProgramParameters { gchar **use_modules; gchar *run_benchmark; + gchar *bench_user_note; gchar *result_format; gchar *path_lib; gchar *path_data; @@ -185,6 +186,10 @@ gchar *moreinfo_lookup(gchar *key); gboolean g_strv_contains(const gchar * const * strv, const gchar *str); #endif +/* in gg_key_file_parse_string_as_value.c */ +gchar * +gg_key_file_parse_string_as_value (const gchar *string, const gchar list_separator); + /* Hardinfo labels that have # are truncated and/or hidden. * Labels can't have $ because that is the delimiter in * moreinfo. @@ -201,4 +206,7 @@ gboolean hardinfo_spawn_command_line_sync(const gchar *command_line, gint *exit_status, GError **error); +/* a marker in text to point out problems, using markup where possible */ +const char *problem_marker(); + #endif /* __HARDINFO_H__ */ |