input stringlengths 16 454k | output stringlengths 13 350k | function_name stringlengths 1 100 | repo_name stringlengths 6 43 | category stringclasses 76
values | sample_id stringlengths 22 88 | decompiler stringclasses 1
value | opt_level stringclasses 1
value |
|---|---|---|---|---|---|---|---|
int info_field_cmp_name_ascending(const void *a, const void *b) {
return g_strcmp0(*(gconstpointer *)a, *(gconstpointer *)b);
} | static int info_field_cmp_name_ascending(const void *a, const void *b) {
const struct InfoField *aa = a, *bb = b;
return g_strcmp0(aa->name, bb->name);
} | info_field_cmp_name_ascending | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
int info_field_cmp_name_descending(const void *a, const void *b) {
return g_strcmp0(*(gconstpointer *)b, *(gconstpointer *)a);
} | static int info_field_cmp_name_descending(const void *a, const void *b) {
const struct InfoField *aa = a, *bb = b;
return g_strcmp0(bb->name, aa->name);
} | info_field_cmp_name_descending | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
int info_field_cmp_tag_ascending(const void *a, const void *b) {
return g_strcmp0(*((gconstpointer *)a + 7), *((gconstpointer *)b + 7));
} | static int info_field_cmp_tag_ascending(const void *a, const void *b) {
const struct InfoField *aa = a, *bb = b;
return g_strcmp0(aa->tag, bb->tag);
} | info_field_cmp_tag_ascending | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
int info_field_cmp_tag_descending(const void *a, const void *b) {
return g_strcmp0(*((gconstpointer *)b + 7), *((gconstpointer *)a + 7));
} | static int info_field_cmp_tag_descending(const void *a, const void *b) {
const struct InfoField *aa = a, *bb = b;
return g_strcmp0(bb->tag, aa->tag);
} | info_field_cmp_tag_descending | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
int info_field_cmp_value_ascending(const void *a, const void *b) {
return g_strcmp0(*((gconstpointer *)a + 1), *((gconstpointer *)b + 1));
} | static int info_field_cmp_value_ascending(const void *a, const void *b) {
const struct InfoField *aa = a, *bb = b;
return g_strcmp0(aa->value, bb->value);
} | info_field_cmp_value_ascending | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
int info_field_cmp_value_descending(const void *a, const void *b) {
return g_strcmp0(*((gconstpointer *)b + 1), *((gconstpointer *)a + 1));
} | static int info_field_cmp_value_descending(const void *a, const void *b) {
const struct InfoField *aa = a, *bb = b;
return g_strcmp0(bb->value, aa->value);
} | info_field_cmp_value_descending | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
InfoField *info_field_printf(InfoField *__return_ptr retstr, const gchar *name,
const gchar *format, ...) {
long v3;
long v4;
long v5;
const gchar *v6;
va_list ap;
unsigned long v9;
long v10;
long v11;
long v12;
va_start(ap, format);
v3 = va_arg(ap, _QWORD);
v4 = va... | struct InfoField info_field_printf(const gchar *name, const gchar *format,
...) {
gchar *value;
va_list ap;
va_start(ap, format);
value = g_strdup_vprintf(format, ap);
va_end(ap);
return (struct InfoField){
.name = name,
.value = value,
.free_value_on_f... | info_field_printf | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
InfoField *info_find_field(Info *info, const gchar *tag, const gchar *name) {
guint gi;
int fi;
InfoGroup *group;
InfoField *field;
for (gi = 0; info->groups->len > gi; ++gi) {
group = (InfoGroup *)&info->groups->data[32 * gi];
for (fi = 0; group->fields->len > fi; ++fi) {
field = (InfoField *)... | struct InfoField *info_find_field(struct Info *info, const gchar *tag,
const gchar *name) {
struct InfoGroup *group;
struct InfoField *field;
int gi, fi;
for (gi = 0; gi < info->groups->len; gi++) {
struct InfoGroup *group =
&g_array_index(info->groups, struct InfoG... | info_find_field | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
gchar *info_flatten(Info *info) {
guint i;
GString *values;
GString *shell_param;
InfoGroup *group;
values = (GString *)g_string_new(0);
shell_param = (GString *)g_string_new(0);
if (info->groups) {
for (i = 0; i < info->groups->len; ++i) {
group = (InfoGroup *)&info->groups->data[32 * i];
... | gchar *info_flatten(struct Info *info) {
GString *values;
GString *shell_param;
guint i;
values = g_string_new(NULL);
shell_param = g_string_new(NULL);
if (info->groups) {
for (i = 0; i < info->groups->len; i++) {
struct InfoGroup *group =
&g_array_index(info->groups, struct InfoGroup... | info_flatten | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void info_group_add_field(InfoGroup *group, InfoField field) {
if (group) {
if (field.name)
g_array_append_vals(group->fields, &field, 1);
}
} | void info_group_add_field(struct InfoGroup *group, struct InfoField field) {
if (!group)
return;
if (!field.name)
return;
g_array_append_val(group->fields, field);
} | info_group_add_field | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void info_group_add_fields(InfoGroup *group, ...) {
long v1;
long v2;
long v3;
long v4;
long v5;
va_list ap;
unsigned long v7;
long v8;
long v9;
long v10;
long v11;
long v12;
va_start(ap, group);
v3 = va_arg(ap, _QWORD);
v1 = va_arg(ap, _QWORD);
v2 = va_arg(ap, _QWORD);
v4 = va_arg(ap... | void info_group_add_fields(struct InfoGroup *group, ...) {
va_list ap;
va_start(ap, group);
info_group_add_fieldsv(group, ap);
va_end(ap);
} | info_group_add_fields | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void info_group_add_fieldsv(InfoGroup *group, __va_list_tag *ap) {
char *overflow_arg_area;
const gchar *v3;
long v4;
long v5;
gchar *v6;
InfoField field;
unsigned long v8;
v8 = __readfsqword(0x28u);
while (1) {
overflow_arg_area = (char *)ap->overflow_arg_area;
ap->overflow_arg_area = overfl... | void info_group_add_fieldsv(struct InfoGroup *group, va_list ap) {
while (1) {
struct InfoField field = va_arg(ap, struct InfoField);
if (!field.name)
break;
g_array_append_val(group->fields, field);
}
} | info_group_add_fieldsv | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void info_group_strip_extra(InfoGroup *group) {
guint fi;
InfoField *field;
char *val;
char *oldval;
for (fi = 0; fi < group->fields->len; ++fi) {
field = (InfoField *)&group->fields->data[64 * (unsigned long)fi];
if (field->value) {
val = strrchr(field->value, 124);
if (val) {
ol... | void info_group_strip_extra(struct InfoGroup *group) {
guint fi;
char *val, *oldval;
struct InfoField *field;
for (fi = 0; fi < group->fields->len; fi++) {
field = &g_array_index(group->fields, struct InfoField, fi);
if (field->value) {
val = strrchr(field->value, '|');
if (val) {
o... | info_group_strip_extra | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
Info *info_new() {
Info *info;
info = (Info *)g_malloc0_n(1, 72);
info->groups = (GArray *)g_array_new(0, 0, 32);
info->view_type = SHELL_VIEW_NORMAL;
info->column_headers_visible = 0;
info->zebra_visible = 0;
info->normalize_percentage = 1;
return info;
} | struct Info *info_new(void) {
struct Info *info = g_new0(struct Info, 1);
info->groups = g_array_new(FALSE, FALSE, sizeof(struct InfoGroup));
info->view_type = SHELL_VIEW_NORMAL;
info->column_headers_visible = FALSE;
info->zebra_visible = FALSE;
info->normalize_percentage = TRUE;
return info;
} | info_new | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void info_remove_group(Info *info, guint index) {
if (index < info->groups->len) {
free_group_fields((InfoGroup *)&info->groups->data[32 * index]);
g_array_remove_index(info->groups, index);
}
} | void info_remove_group(struct Info *info, guint index) {
struct InfoGroup *grp;
if (index >= info->groups->len)
return;
grp = &g_array_index(info->groups, struct InfoGroup, index);
free_group_fields(grp);
g_array_remove_index(info->groups, index);
} | info_remove_group | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void info_selected(GtkTreeSelection *ts, gpointer data) {
long type;
GtkTreeModel *model;
gchar *datacol;
ShellInfoTree *info;
gchar *mi_tag;
GtkTreeIter parent;
unsigned long v8;
v8 = __readfsqword(0x28u);
info = (ShellInfoTree *)data;
type = gtk_tree_model_get_type();
model =
(GtkTreeMode... | static void info_selected(GtkTreeSelection *ts, gpointer data) {
ShellInfoTree *info = (ShellInfoTree *)data;
GtkTreeModel *model = GTK_TREE_MODEL(info->model);
GtkTreeIter parent;
gchar *datacol, *mi_tag;
if (!gtk_tree_selection_get_selected(ts, &model, &parent))
return;
if (shell->view_type == SHELL... | info_selected | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void info_selected_show_extra(const gchar *tag) {
size_t v1;
GKeyFile *key_file;
gchar *key_data;
gchar **groups;
if (tag) {
if (shell->selected->morefunc) {
key_file = (GKeyFile *)g_key_file_new();
key_data = shell->selected->morefunc(tag);
v1 = strlen(key_data);
g_key_file_load_... | static void info_selected_show_extra(const gchar *tag) {
if (!tag || !shell->selected->morefunc)
return;
GKeyFile *key_file = g_key_file_new();
gchar *key_data = shell->selected->morefunc((gchar *)tag);
gchar **groups;
g_key_file_load_from_data(key_file, key_data, strlen(key_data), 0, NULL);
groups = ... | info_selected_show_extra | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void info_set_column_headers_visible(Info *info, gboolean setting) {
info->column_headers_visible = setting;
} | void info_set_column_headers_visible(struct Info *info, gboolean setting) {
info->column_headers_visible = setting;
} | info_set_column_headers_visible | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void info_set_column_title(Info *info, const gchar *column,
const gchar *title) {
unsigned int i;
for (i = 0; i <= 4; ++i) {
if ((unsigned int)g_str_equal(info_column_titles[i], column)) {
info->column_titles[i] = title;
return;
}
}
} | void info_set_column_title(struct Info *info, const gchar *column,
const gchar *title) {
int i;
for (i = 0; i < G_N_ELEMENTS(info_column_titles); i++) {
if (g_str_equal(info_column_titles[i], column)) {
info->column_titles[i] = title;
return;
}
}
} | info_set_column_title | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void info_set_normalize_percentage(Info *info, gboolean setting) {
info->normalize_percentage = setting;
} | void info_set_normalize_percentage(struct Info *info, gboolean setting) {
info->normalize_percentage = setting;
} | info_set_normalize_percentage | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void info_set_reload_interval(Info *info, int setting) {
info->reload_interval = setting;
} | void info_set_reload_interval(struct Info *info, int setting) {
info->reload_interval = setting;
} | info_set_reload_interval | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void info_set_view_type(Info *info, ShellViewType setting) {
info->view_type = setting;
} | void info_set_view_type(struct Info *info, ShellViewType setting) {
info->view_type = setting;
} | info_set_view_type | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void info_set_zebra_visible(Info *info, gboolean setting) {
info->zebra_visible = setting;
} | void info_set_zebra_visible(struct Info *info, gboolean setting) {
info->zebra_visible = setting;
} | info_set_zebra_visible | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
gint info_tree_compare_val_func(GtkTreeModel *model, GtkTreeIter *a,
GtkTreeIter *b, gpointer userdata) {
float v4;
__m128i v5;
float v6;
double v7;
__m128i v8;
float v10;
gint ret;
__int128 col1;
unsigned long v14;
v14 = __readfsqword(0x28u);
gtk_tree_model_get(mo... | static gint info_tree_compare_val_func(GtkTreeModel *model, GtkTreeIter *a,
GtkTreeIter *b, gpointer userdata) {
gint ret = 0;
gchar *col1, *col2;
gtk_tree_model_get(model, a, INFO_TREE_COL_VALUE, &col1, -1);
gtk_tree_model_get(model, b, INFO_TREE_COL_VALUE, &col2, -1);
... | info_tree_compare_val_func | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
ShellInfoTree *info_tree_new() {
long type;
long v1;
long v2;
long v3;
long v4;
long v5;
long v6;
long v7;
long v8;
long v9;
long v10;
long v11;
long v12;
long v13;
long v14;
long v15;
long v16;
long v17;
long v18;
long v19;
long v20;
long v21;
long v22;
long v23;
long ... | static ShellInfoTree *info_tree_new(void) {
ShellInfoTree *info;
GtkWidget *treeview, *scroll;
GtkTreeModel *model;
GtkTreeStore *store;
GtkTreeViewColumn *column;
GtkCellRenderer *cr_text, *cr_pbuf, *cr_progress;
GtkTreeSelection *sel;
info = g_new0(ShellInfoTree, 1);
scroll = gtk_scrolled_window_n... | info_tree_new | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
Info *info_unflatten(const gchar *str) {
size_t v1;
ShellViewType v2;
gboolean v3;
gboolean v4;
int v5;
gboolean v6;
char *v7;
int v8;
int g;
int k;
int ka;
int spg;
gsize ngroups;
gchar *flags;
gchar *tag;
gchar *name;
gchar *label;
gchar *dis;
gchar *chk_tag;
const gchar *chk_n... | struct Info *info_unflatten(const gchar *str) {
struct Info *info = info_new();
GKeyFile *key_file = g_key_file_new();
gchar **groups;
gsize ngroups;
int g, k, spg = -1;
g_key_file_load_from_data(key_file, str, strlen(str), 0, NULL);
groups = g_key_file_get_groups(key_file, &ngroups);
for (g = 0; group... | info_unflatten | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void intel_fill_freq(gpud *s) {
gchar *min_mhz;
gchar *max_mhz;
char path[264];
unsigned long v4;
v4 = __readfsqword(0x28u);
memset(path, 0, 256);
min_mhz = 0;
max_mhz = 0;
if (s->sysfs_drm_path) {
snprintf(path, 0xFFu, "%s/%s/gt_min_freq_mhz", s->sysfs_drm_path, s->id);
g_file_get_contents(p... | static void intel_fill_freq(gpud *s) {
gchar path[256] = "";
gchar *min_mhz = NULL, *max_mhz = NULL;
if (s->sysfs_drm_path) {
snprintf(path, 255, "%s/%s/gt_min_freq_mhz", s->sysfs_drm_path, s->id);
g_file_get_contents(path, &min_mhz, NULL, NULL);
snprintf(path, 255, "%s/%s/gt_max_freq_mhz", s->sysfs_d... | intel_fill_freq | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void key_get_components(const gchar *key, gchar **flags, gchar **tag,
gchar **name, gchar **label, gchar **dis,
gboolean null_empty) {
const gchar *np;
gchar *f;
gchar *lbp;
gchar *ol;
if (null_empty) {
if (flags)
*flags = 0;
if (tag)
*tag =... | void key_get_components(const gchar *key, gchar **flags, gchar **tag,
gchar **name, gchar **label, gchar **dis,
gboolean null_empty) {
if (null_empty) {
#define K_NULL_EMPTY(f) \
if (f) { ... | key_get_components | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
const gchar *key_get_name(const gchar *key) {
if (key_is_flagged(key))
return strchr(key + 1, 36) + 1;
else
return key;
} | const gchar *key_get_name(const gchar *key) {
if (key_is_flagged(key))
return strchr(key + 1, '$') + 1;
return key;
} | key_get_name | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
gboolean key_is_flagged(const gchar *key) {
return key && *key == 36 && strchr(key + 1, 36);
} | gboolean key_is_flagged(const gchar *key) {
return (key && *key == '$' && strchr(key + 1, '$')) ? TRUE : FALSE;
} | key_is_flagged | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
gboolean key_is_highlighted(const gchar *key) {
gchar *flags[2];
flags[1] = (gchar *)__readfsqword(0x28u);
key_get_components(key, flags, 0, 0, 0, 0, 1);
if (!flags[0] || !strchr(flags[0], 42))
return 0;
g_free(flags[0]);
return 1;
} | gboolean key_is_highlighted(const gchar *key) {
gchar *flags;
key_get_components(key, &flags, NULL, NULL, NULL, NULL, TRUE);
if (flags && strchr(flags, '*')) {
g_free(flags);
return TRUE;
}
return FALSE;
} | key_is_highlighted | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
gboolean key_label_is_escaped(const gchar *key) {
gchar *flags[2];
flags[1] = (gchar *)__readfsqword(0x28u);
key_get_components(key, flags, 0, 0, 0, 0, 1);
if (!flags[0] || !strchr(flags[0], 64))
return 0;
g_free(flags[0]);
return 1;
} | gboolean key_label_is_escaped(const gchar *key) {
gchar *flags;
key_get_components(key, &flags, NULL, NULL, NULL, NULL, TRUE);
if (flags && strchr(flags, '@')) {
g_free(flags);
return TRUE;
}
return FALSE;
} | key_label_is_escaped | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
gchar *key_mi_tag(const gchar *key) {
gchar *p;
char *l;
gchar *t;
p = (gchar *)key;
if (!key_is_flagged(key))
return 0;
l = strchr(key + 1, 36);
if (*key == 36)
p = (gchar *)(key + 1);
while (p < l && strchr(flag_list_0, *p))
++p;
if (!*p)
return 0;
t = (gchar *)g_strdup(p);
*str... | gchar *key_mi_tag(const gchar *key) {
static char flag_list[] = "*!^@";
gchar *p = (gchar *)key, *l, *t;
if (key_is_flagged(key)) {
l = strchr(key + 1, '$');
if (*p == '$')
p++;
while (p < l && strchr(flag_list, *p)) {
p++;
}
if (strlen(p)) {
t = g_strdup(p);
*(strchr(... | key_mi_tag | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
gboolean key_value_has_vendor_string(const gchar *key) {
gchar *flags[2];
flags[1] = (gchar *)__readfsqword(0x28u);
key_get_components(key, flags, 0, 0, 0, 0, 1);
if (!flags[0] || !strchr(flags[0], 94))
return 0;
g_free(flags[0]);
return 1;
} | gboolean key_value_has_vendor_string(const gchar *key) {
gchar *flags;
key_get_components(key, &flags, NULL, NULL, NULL, NULL, TRUE);
if (flags && strchr(flags, '^')) {
g_free(flags);
return TRUE;
}
return FALSE;
} | key_value_has_vendor_string | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
gboolean key_wants_details(const gchar *key) {
gchar *flags[2];
flags[1] = (gchar *)__readfsqword(0x28u);
key_get_components(key, flags, 0, 0, 0, 0, 1);
if (!flags[0] || !strchr(flags[0], 33))
return 0;
g_free(flags[0]);
return 1;
} | gboolean key_wants_details(const gchar *key) {
gchar *flags;
key_get_components(key, &flags, NULL, NULL, NULL, NULL, TRUE);
if (flags && strchr(flags, '!')) {
g_free(flags);
return TRUE;
}
return FALSE;
} | key_wants_details | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void load_graph_clear(LoadGraph *lg) {
GType type;
UberGraph *v2;
int i;
if (lg) {
for (i = 0; i <= 8; ++i)
lg->cur_value[i] = NAN;
type = uber_graph_get_type();
v2 = (UberGraph *)g_type_check_instance_cast(lg->uber_widget, type);
uber_graph_scale_changed(v2);
}
} | void load_graph_clear(LoadGraph *lg) {
int i;
if (lg != NULL) {
for (i = 0; i < LG_MAX_LINES; i++) {
lg->cur_value[i] = UBER_LINE_GRAPH_NO_VALUE;
}
uber_graph_scale_changed(UBER_GRAPH(lg->uber_widget));
}
} | load_graph_clear | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void load_graph_configure_expose(LoadGraph *lg) { ; } | void load_graph_configure_expose(LoadGraph *lg) {} | load_graph_configure_expose | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void load_graph_destroy(LoadGraph *lg) {
if (lg) {
g_object_unref(lg->uber_widget);
g_free(lg);
}
} | void load_graph_destroy(LoadGraph *lg) {
if (lg != NULL) {
g_object_unref(lg->uber_widget);
g_free(lg);
}
} | load_graph_destroy | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
gchar *load_graph_get_data_suffix(LoadGraph *lg) { return strdup(byte_5E3A8); } | gchar *load_graph_get_data_suffix(LoadGraph *lg) { return strdup(""); } | load_graph_get_data_suffix | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
GtkWidget *load_graph_get_framed(LoadGraph *lg) {
if (lg)
return lg->uber_widget;
else
return 0;
} | GtkWidget *load_graph_get_framed(LoadGraph *lg) {
if (lg != NULL)
return lg->uber_widget;
return NULL;
} | load_graph_get_framed | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
gint load_graph_get_height(LoadGraph *lg) {
if (lg)
return lg->height;
else
return 0;
} | gint load_graph_get_height(LoadGraph *lg) {
if (lg != NULL)
return lg->height;
return 0;
} | load_graph_get_height | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
LoadGraph *load_graph_new(gint size) {
GType type;
UberLineGraph *v2;
GType v3;
UberLineGraph *v4;
GType v5;
UberLineGraph *v6;
int i;
LoadGraph *lg;
GdkRGBA color;
unsigned long v11;
v11 = __readfsqword(0x28u);
lg = (LoadGraph *)g_malloc0_n(1, 88);
lg->uber_widget = uber_line_graph_new();
... | LoadGraph *load_graph_new(gint size) {
LoadGraph *lg;
GdkRGBA color;
int i = 0;
lg = g_new0(LoadGraph, 1);
lg->uber_widget = uber_line_graph_new();
lg->height = (size + 1) * 2;
for (i = 0; i < LG_MAX_LINES; i++) {
lg->cur_value[i] = UBER_LINE_GRAPH_NO_VALUE;
gdk_rgba_parse(&color, default_colors... | load_graph_new | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void load_graph_set_color(LoadGraph *lg, LoadGraphColor color) { ; } | void load_graph_set_color(LoadGraph *lg, LoadGraphColor color) {} | load_graph_set_color | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void load_graph_set_data_suffix(LoadGraph *lg, gchar *suffix) { ; } | void load_graph_set_data_suffix(LoadGraph *lg, gchar *suffix) {} | load_graph_set_data_suffix | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void load_graph_set_title(LoadGraph *lg, const gchar *title) { ; } | void load_graph_set_title(LoadGraph *lg, const gchar *title) {} | load_graph_set_title | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void load_graph_update(LoadGraph *lg, gdouble value) {
load_graph_update_ex(lg, 0, value);
} | void load_graph_update(LoadGraph *lg, gdouble value) {
load_graph_update_ex(lg, 0, value);
} | load_graph_update | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void load_graph_update_ex(LoadGraph *lg, guint line, gdouble value) {
if (lg) {
if (line <= 8)
lg->cur_value[line] = value;
}
} | void load_graph_update_ex(LoadGraph *lg, guint line, gdouble value) {
if (lg != NULL && line < LG_MAX_LINES)
lg->cur_value[line] = value;
} | load_graph_update_ex | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void log_handler(const gchar *log_domain, GLogLevelFlags log_level,
const gchar *message, gpointer user_data) {
char *v4;
char *v5;
long v6;
long type;
long v8;
GtkWidget *dialog;
if (params.gui_running) {
if ((log_level & 2) != 0)
v5 = gettext("Fatal Error");
else
v5... | static void log_handler(const gchar *log_domain, GLogLevelFlags log_level,
const gchar *message, gpointer user_data) {
if (!params.gui_running) {
g_print("\n\n*** %s: %s\n\n",
(log_level & G_LOG_FLAG_FATAL) ? _("Error") : _("Warning"),
message);
} else {
Gtk... | log_handler | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
int lspci_line_string_and_code(char *line, char *prefix, char **str,
uint32_t *code) {
long v4;
const char *v5;
char *e;
const char *l;
l = lspci_line_value(line, prefix);
if (l) {
for (e = (char *)&l[strlen(l)]; e > l && *e != 91; --e)
;
__isoc99_sscanf(e, "[%x... | static int lspci_line_string_and_code(char *line, char *prefix, char **str,
uint32_t *code) {
char *l = lspci_line_value(line, prefix);
char *e;
if (l) {
e = strchr(l, 0);
while (e > l && *e != '[')
e--;
sscanf(e, "[%x]", code);
*e = 0;
if (*str)
... | lspci_line_string_and_code | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
char *lspci_line_value(char *line, const char *prefix) {
long v2;
char *v3;
size_t v4;
long v5;
v2 = g_strchug(line);
v3 = g_strchomp(v2);
if (!(unsigned int)g_str_has_prefix(v3, prefix))
return 0;
v4 = strlen(prefix);
v5 = g_strchug(&line[v4 + 1]);
return g_strchomp(v5);
} | static char *lspci_line_value(char *line, const char *prefix) {
if (g_str_has_prefix(g_strstrip(line), prefix)) {
line += strlen(prefix) + 1;
return g_strstrip(line);
} else
return NULL;
} | lspci_line_value | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
char *lsusb_line_value(char *line, const char *prefix) {
long v2;
char *linea;
if (!(unsigned int)g_str_has_prefix(line, prefix))
return 0;
linea = &line[strlen(prefix) + 1];
v2 = g_strchug(linea);
return g_strchomp(v2);
} | static char *lsusb_line_value(char *line, const char *prefix) {
if (g_str_has_prefix(line, prefix)) {
line += strlen(prefix) + 1;
return g_strstrip(line);
} else
return NULL;
} | lsusb_line_value | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void make_excmap_def() {
int i;
for (i = 0; i <= 255; ++i) {
if ((unsigned char)i == 92)
goto LABEL_10;
if ((unsigned char)i <= 0x5Cu) {
if ((unsigned char)i == 34)
goto LABEL_10;
if ((unsigned char)i <= 0x22u) {
if ((unsigned char)i > 0xAu) {
if ((unsigned int)(... | static void make_excmap_def() {
int i;
for (i = 0; i < 256; i++) {
switch ((guchar)i) {
case '\b':
case '\f':
case '\n':
case '\r':
case '\t':
case '\\':
case '"':
excmap_def[i] = 0;
break;
default:
if ((i < ' ') || (i >= 0177))
excmap_def[i] = 0;
... | make_excmap_def | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
gchar *make_icon_css(const gchar *file) {
gchar *v2;
gchar *contents;
gsize length;
gchar *ret;
const char *ctype;
gchar *path;
gchar *css_class;
gchar *b64data;
unsigned long v10;
v10 = __readfsqword(0x28u);
if (!file || !*file)
return (gchar *)g_strdup(&unk_5D0D4);
ret = 0;
path = (gcha... | gchar *make_icon_css(const gchar *file) {
if (!file || *file == 0)
return g_strdup("");
gchar *ret = NULL;
gchar *path = g_build_filename(params.path_data, "pixmaps", file, NULL);
gchar *contents = NULL;
gsize length = 0;
if (g_file_get_contents(path, &contents, &length, NULL)) {
gchar *css_class = ... | make_icon_css | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void make_nice_name(gpud *s) {
long v1;
const char *v2;
char *vendor_str;
const gchar *vendor_stra;
char *device_str;
char *full_name;
char *b;
gchar *device_str_clean;
if (s->nv_info && s->nv_info->model) {
s->nice_name = g_strdup_printf("%s %s", "NVIDIA", s->nv_info->model);
} else {
vend... | static void make_nice_name(gpud *s) {
if (s->nv_info && s->nv_info->model) {
s->nice_name = g_strdup_printf("%s %s", "NVIDIA", s->nv_info->model);
return;
}
static const char unk_v[] = "Unknown";
static const char unk_d[] = "Device";
const char *vendor_str = s->vendor_str;
const char *device_str =... | make_nice_name | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void math_infix_free(GSList *infix, gboolean free_tokens) {
GSList *p;
GSList *pa;
if (free_tokens) {
for (pa = infix; pa; pa = (GSList *)g_slist_delete_link(pa, pa))
g_free(pa->data);
} else {
for (p = infix; p; p = (GSList *)g_slist_delete_link(p, p))
;
}
} | void math_infix_free(GSList *infix, gboolean free_tokens) {
GSList *p;
if (!free_tokens)
for (p = infix; p; p = g_slist_delete_link(p, p))
;
else
for (p = infix; p; p = g_slist_delete_link(p, p)) {
MathToken *t = (MathToken *)p->data;
g_free(t);
}
} | math_infix_free | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
GSList *math_infix_to_postfix(GSList *infix) {
gint v1;
gint v2;
gint v3;
gint v4;
gint t_sp;
GSList *postfix;
MathToken *top;
MathToken *t;
MathToken *stack[500];
unsigned long v12;
v12 = __readfsqword(0x28u);
t_sp = 0;
postfix = 0;
while (infix) {
t = (MathToken *)infix->data;
if ... | GSList *math_infix_to_postfix(GSList *infix) {
MathToken *stack[500];
gint t_sp = 0;
GSList *postfix = NULL, *p;
MathToken *top;
for (p = infix; p; p = p->next) {
MathToken *t = (MathToken *)p->data;
if (t->type == TOKEN_OPERATOR && t->val.op == '(') {
stack[++t_sp] = t;
} else if (t->typ... | math_infix_to_postfix | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
gfloat math_postfix_eval(GSList *postfix, gfloat at_value) {
gint v2;
__m128i v3;
gint sp_0;
MathToken *t;
gfloat stack[502];
unsigned long v10;
v10 = __readfsqword(0x28u);
sp_0 = 0;
memset(stack, 0, 0x7D0u);
while (postfix) {
t = (MathToken *)postfix->data;
if (*((_DWORD *)postfix->data + ... | gfloat math_postfix_eval(GSList *postfix, gfloat at_value) {
GSList *p;
gfloat stack[500];
gint sp = 0;
memset(stack, 0, sizeof(gfloat) * 500);
for (p = postfix; p; p = p->next) {
MathToken *t = (MathToken *)p->data;
if (t->type == TOKEN_VARIABLE) {
stack[++sp] = at_value;
} else if (t->t... | math_postfix_eval | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
gfloat math_string_eval(gchar *string, gfloat at_value) {
__m128i v2;
GSList *postfix;
postfix = math_string_to_postfix(string);
v2 = _mm_cvtsi32_si128(LODWORD(at_value));
*(float *)v2.m128i_i32 = math_postfix_eval(postfix, *(gfloat *)v2.m128i_i32);
math_infix_free(postfix, 1);
return COERCE_FLOAT(_mm_cv... | gfloat math_string_eval(gchar *string, gfloat at_value) {
GSList *postfix;
gfloat val;
postfix = math_string_to_postfix(string);
val = math_postfix_eval(postfix, at_value);
math_postfix_free(postfix, TRUE);
return val;
} | math_string_eval | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
GSList *math_string_to_infix(gchar *string) {
MathToken *v1;
MathToken *v2;
gchar *v3;
gchar *v4;
MathToken *v5;
gfloat floatval;
GSList *infix;
gchar *expr;
gchar *v;
gchar value[32];
unsigned long v12;
v12 = __readfsqword(0x28u);
infix = 0;
for (expr = string; *expr; ++expr) {
if (str... | GSList *math_string_to_infix(gchar *string) {
GSList *infix = NULL;
gchar *expr = string;
for (; *expr; expr++) {
if (strchr("+-/*^()", *expr)) {
infix = g_slist_append(infix, new_operator(*expr));
} else if (strchr("@", *expr)) {
infix = g_slist_append(infix, new_variable(*expr));
} else... | math_string_to_infix | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
GSList *math_string_to_postfix(gchar *string) {
GSList *infix;
GSList *postfix;
infix = math_string_to_infix(string);
if (!infix)
return 0;
postfix = math_infix_to_postfix(infix);
math_infix_free(infix, 0);
return postfix;
} | GSList *math_string_to_postfix(gchar *string) {
GSList *infix;
GSList *postfix;
infix = math_string_to_infix(string);
if (!infix)
return NULL;
postfix = math_infix_to_postfix(infix);
math_infix_free(infix, FALSE);
return postfix;
} | math_string_to_postfix | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void menu_add_widget(GtkUIManager *ui, GtkWidget *widget,
GtkContainer *container) {
long type;
long v4;
type = gtk_box_get_type(ui);
v4 = g_type_check_instance_cast(container, type);
gtk_box_pack_start(v4, widget, 0, 0, 0);
gtk_widget_show(widget);
} | static void menu_add_widget(GtkUIManager *ui, GtkWidget *widget,
GtkContainer *container) {
gtk_box_pack_start(GTK_BOX(container), widget, FALSE, FALSE, 0);
gtk_widget_show(widget);
} | menu_add_widget | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void menu_init(Shell *shell) {
long type;
long v2;
long v3;
long widget;
long v5;
GError *error;
GtkWidget *menu_box;
GtkActionGroup *action_group;
GtkUIManager *menu_manager;
GtkAccelGroup *accel_group;
unsigned long v11;
v11 = __readfsqword(0x28u);
menu_box = shell->vbox;
action_group = (... | void menu_init(Shell *shell) {
GtkWidget *menu_box;
GtkActionGroup *action_group;
GtkUIManager *menu_manager;
GError *error;
GtkAccelGroup *accel_group;
menu_box = shell->vbox;
action_group = gtk_action_group_new("HardInfo");
menu_manager = gtk_ui_manager_new();
shell->action_group = action_group;
... | menu_init | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void menu_item_set_icon_always_visible(Shell *shell, gchar *parent_path,
gchar *item_id) {
char *v3;
long type;
long v5;
GtkWidget *menuitem;
v3 = g_strdup_printf("%s/%s", parent_path, item_id);
menuitem = (GtkWidget *)gtk_ui_manager_get_widget(shell->ui_manager, v3);... | static void menu_item_set_icon_always_visible(Shell *shell, gchar *parent_path,
gchar *item_id) {
GtkWidget *menuitem;
gchar *path;
path = g_strdup_printf("%s/%s", parent_path, item_id);
menuitem = gtk_ui_manager_get_widget(shell->ui_manager, path);
gtk_image_men... | menu_item_set_icon_always_visible | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
gchar *module_call_method(gchar *method) {
long v2;
long (*function)(void);
if (!_module_methods)
return 0;
function = (long (*)(void))g_hash_table_lookup(_module_methods, method);
if (!function)
return 0;
v2 = function();
return (gchar *)g_strdup(v2);
} | gchar *module_call_method(gchar *method) {
gchar *(*function)(void);
if (__module_methods == NULL) {
return NULL;
}
function = g_hash_table_lookup(__module_methods, method);
return function ? g_strdup(function()) : NULL;
} | module_call_method | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
gchar *module_call_method_param(gchar *method, gchar *parameter) {
long v3;
gchar *(*function)(gchar *);
if (!_module_methods)
return 0;
function =
(gchar * (*)(gchar *)) g_hash_table_lookup(_module_methods, method);
if (!function)
return 0;
v3 = (long)function(parameter);
return (gchar *)g... | gchar *module_call_method_param(gchar *method, gchar *parameter) {
gchar *(*function)(gchar *param);
if (__module_methods == NULL) {
return NULL;
}
function = g_hash_table_lookup(__module_methods, method);
return function ? g_strdup(function(parameter)) : NULL;
} | module_call_method_param | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
gint module_cmp(gconstpointer m1, gconstpointer m2) {
return *((unsigned char *)m1 + 48) - *((unsigned char *)m2 + 48);
} | static gint module_cmp(gconstpointer m1, gconstpointer m2) {
ShellModule *a = (ShellModule *)m1;
ShellModule *b = (ShellModule *)m2;
return a->weight - b->weight;
} | module_cmp | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
gchar *module_entry_function(ShellModuleEntry *module_entry) {
if (module_entry->func)
return module_entry->func();
else
return 0;
} | gchar *module_entry_function(ShellModuleEntry *module_entry) {
if (module_entry->func) {
return module_entry->func();
}
return NULL;
} | module_entry_function | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
gchar *module_entry_get_field(ShellModuleEntry *module_entry, gchar *field) {
if (module_entry->fieldfunc)
return module_entry->fieldfunc(field);
else
return 0;
} | gchar *module_entry_get_field(ShellModuleEntry *module_entry, gchar *field) {
if (module_entry->fieldfunc) {
return module_entry->fieldfunc(field);
}
return NULL;
} | module_entry_get_field | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
gchar *module_entry_get_moreinfo(ShellModuleEntry *module_entry, gchar *field) {
if (module_entry->morefunc)
return module_entry->morefunc(field);
else
return 0;
} | gchar *module_entry_get_moreinfo(ShellModuleEntry *module_entry, gchar *field) {
if (module_entry->morefunc) {
return module_entry->morefunc(field);
}
return NULL;
} | module_entry_get_moreinfo | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
const gchar *module_entry_get_note(ShellModuleEntry *module_entry) {
if (module_entry->notefunc)
return module_entry->notefunc(module_entry->number);
else
return 0;
} | const gchar *module_entry_get_note(ShellModuleEntry *module_entry) {
if (module_entry->notefunc) {
return module_entry->notefunc(module_entry->number);
}
return NULL;
} | module_entry_get_note | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void module_entry_reload(ShellModuleEntry *module_entry) {
if (module_entry->scan_func)
module_entry->scan_func(1);
} | void module_entry_reload(ShellModuleEntry *module_entry) {
if (module_entry->scan_func) {
module_entry->scan_func(TRUE);
}
} | module_entry_reload | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void module_entry_scan(ShellModuleEntry *module_entry) {
if (module_entry->scan_func)
module_entry->scan_func(0);
} | void module_entry_scan(ShellModuleEntry *module_entry) {
if (module_entry->scan_func) {
module_entry->scan_func(FALSE);
}
} | module_entry_scan | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void module_entry_scan_all(ModuleEntry *entries) {
module_entry_scan_all_except(entries, -1);
} | void module_entry_scan_all(ModuleEntry *entries) {
module_entry_scan_all_except(entries, -1);
} | module_entry_scan_all | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void module_entry_scan_all_except(ModuleEntry *entries, gint except_entry) {
char *v2;
char *v3;
long v4;
char *v5;
gint i;
gchar *text;
gchar *entry;
void (*entry_24)(_QWORD);
i = 0;
shell_view_set_enabled(0);
entry = entries->name;
entry_24 = (void (*)(_QWORD))entries->scan_callback;
while ... | void module_entry_scan_all_except(ModuleEntry *entries, gint except_entry) {
ModuleEntry entry;
gint i = 0;
void (*scan_callback)(gboolean reload);
gchar *text;
shell_view_set_enabled(FALSE);
for (entry = entries[0]; entry.name; entry = entries[++i]) {
if (i == except_entry)
continue;
text ... | module_entry_scan_all_except | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
const ModuleAbout *module_get_about(ShellModule *module) {
if (module->aboutfunc)
return (const ModuleAbout *)module->aboutfunc();
else
return 0;
} | const ModuleAbout *module_get_about(ShellModule *module) {
if (module->aboutfunc) {
return module->aboutfunc();
}
return NULL;
} | module_get_about | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
gboolean module_in_module_list(gchar *module, gchar **module_list) {
int i;
i = 0;
if (!module_list)
return 1;
while (module_list[i]) {
if ((unsigned int)g_str_equal(module_list[i], module))
return 1;
++i;
}
return 0;
} | static gboolean module_in_module_list(gchar *module, gchar **module_list) {
int i = 0;
if (!module_list)
return TRUE;
for (; module_list[i]; i++) {
if (g_str_equal(module_list[i], module))
return TRUE;
}
return FALSE;
} | module_in_module_list | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
ShellModule *module_load(gchar *filename) {
guchar v1;
GdkPixbuf *pixbuf;
char *v3;
GSList *v4;
gint i;
void (*init)(void);
ModuleEntry *(*get_module_entries)(void);
gint (*weight_func)(void);
gchar *(*name_func)(void);
ShellModule *module;
gchar *tmpicon;
gchar *dot;
gchar *simple_name;
gch... | static ShellModule *module_load(gchar *filename) {
ShellModule *module;
gchar *tmp;
module = g_new0(ShellModule, 1);
if (params.gui_running) {
gchar *tmpicon, *dot, *simple_name;
tmpicon = g_strdup(filename);
dot = g_strrstr(tmpicon, "." G_MODULE_SUFFIX);
*dot = '\0';
simple_name = strr... | module_load | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void module_register_methods(ShellModule *module) {
gpointer function;
long v2;
const ShellModuleMethod *(*get_methods)(void);
const ShellModuleMethod *methods;
gchar *name;
gchar *simple_name;
gchar *method_name;
ShellModuleMethod method;
unsigned long v9;
v9 = __readfsqword(0x28u);
if (!_module... | static void module_register_methods(ShellModule *module) {
const ShellModuleMethod *(*get_methods)(void);
gchar *method_name;
if (__module_methods == NULL) {
__module_methods = g_hash_table_new(g_str_hash, g_str_equal);
}
if (g_module_symbol(module->dll, "hi_exported_methods",
(gpo... | module_register_methods | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void module_selected(gpointer data) {
long type;
char *v2;
long v3;
long v4;
char *v5;
long v6;
long v7;
GtkTreeModel *model;
ShellModuleEntry *entry;
ShellTree *shelltree;
gchar *title;
GtkTreeIter iter;
GtkTreeIter parent;
unsigned long v14;
v14 = __readfsqword(0x28u);
shelltree = she... | static void module_selected(gpointer data) {
ShellTree *shelltree = shell->tree;
GtkTreeModel *model = GTK_TREE_MODEL(shelltree->model);
GtkTreeIter iter, parent;
ShellModuleEntry *entry;
static ShellModuleEntry *current = NULL;
static gboolean updating = FALSE;
GtkScrollbar *hscrollbar, *vscrollbar;
i... | module_selected | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void module_selected_show_info(ShellModuleEntry *entry, gboolean reload) {
long type;
long v3;
size_t v4;
ShellViewType integer;
ShellViewType view_type;
gint i;
gsize ngroups;
GdkWindow *gdk_window;
GKeyFile *key_file;
gchar *key_data;
gchar **groups;
unsigned long v14;
v14 = __readfsqword(0... | static void module_selected_show_info(ShellModuleEntry *entry,
gboolean reload) {
GdkWindow *gdk_window =
gtk_widget_get_window(GTK_WIDGET(shell->info_tree->view));
gsize ngroups;
gint i;
gdk_window_freeze_updates(gdk_window);
module_entry_scan(entry);
if (!relo... | module_selected_show_info | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void module_selected_show_info_detail(GKeyFile *key_file,
ShellModuleEntry *entry, gchar **groups) {
gchar *v3;
long type;
long v5;
long v6;
long v7;
long v8;
long v9;
gchar *v10;
long v11;
long v12;
long v13;
long v14;
long v15;
long v16;
long v17;
... | static void module_selected_show_info_detail(GKeyFile *key_file,
ShellModuleEntry *entry,
gchar **groups) {
gint i;
detail_view_clear(shell->detail_view);
for (i = 0; groups[i]; i++) {
gsize nkeys;
gchar **keys = g... | module_selected_show_info_detail | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void module_selected_show_info_list(GKeyFile *key_file, ShellModuleEntry *entry,
gchar **groups, gsize ngroups) {
long type;
long v5;
long v6;
long v7;
long v8;
GtkTreeModel *model;
long v10;
long v11;
long v12;
long v13;
long v14;
long v15;
gint i;
GtkTre... | static void module_selected_show_info_list(GKeyFile *key_file,
ShellModuleEntry *entry,
gchar **groups, gsize ngroups) {
GtkTreeStore *store = GTK_TREE_STORE(shell->info_tree->model);
gint i;
gtk_tree_store_clear(store);
g_o... | module_selected_show_info_list | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void module_unload(ShellModule *module) {
long v1;
GSList *entry;
gchar *name;
ShellModuleEntry *e;
if (module->dll) {
if (module->deinit)
module->deinit();
v1 = g_module_name(module->dll);
name = (gchar *)g_path_get_basename(v1);
g_hash_table_foreach_remove(_module_methods, remove_modu... | static void module_unload(ShellModule *module) {
GSList *entry;
if (module->dll) {
gchar *name;
if (module->deinit) {
DEBUG("cleaning up module \"%s\"", module->name);
module->deinit();
} else {
DEBUG("module \"%s\" does not need cleanup", module->name);
}
name = g_path_get_... | module_unload | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void module_unload_all() {
GSList *module;
GSList *merge_id;
Shell *shell;
shell = shell_get_main_shell();
sync_manager_clear_entries();
shell_clear_timeouts(shell);
shell_clear_tree_models(shell);
shell_clear_field_updates();
shell_set_title(shell, 0);
for (module = shell->tree->modules; module; m... | void module_unload_all(void) {
Shell *shell;
GSList *module, *merge_id;
shell = shell_get_main_shell();
sync_manager_clear_entries();
shell_clear_timeouts(shell);
shell_clear_tree_models(shell);
shell_clear_field_updates();
shell_set_title(shell, NULL);
for (module = shell->tree->modules; module; m... | module_unload_all | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
GSList *modules_check_deps(GSList *modules) {
long v1;
gchar *v2;
char *v3;
long type;
long v5;
long v6;
long v7;
gchar *v8;
gchar *v9;
char *v10;
GSList *modulesa;
gint i;
gboolean found;
gchar **(*get_deps)(void);
GSList *mm;
GSList *l;
ShellModule *module;
gchar **deps;
ShellMod... | static GSList *modules_check_deps(GSList *modules) {
GSList *mm;
ShellModule *module;
for (mm = modules; mm; mm = mm->next) {
gchar **(*get_deps)(void);
gchar **deps;
gint i;
module = (ShellModule *)mm->data;
if (g_module_symbol(module->dll, "hi_module_get_dependencies",
... | modules_check_deps | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
GSList *modules_get_list() { return modules_list; } | GSList *modules_get_list() { return modules_list; } | modules_get_list | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
GSList *modules_load(gchar **module_list) {
gchar *path_lib;
char *v2;
char *v3;
GSList *modules;
GSList *modulesa;
gchar *filenamea;
gchar *filename;
GDir *dir;
ShellModule *module;
modules = 0;
filenamea = (gchar *)g_build_filename(params.path_lib, "modules", 0);
dir = (GDir *)g_dir_open(file... | static GSList *modules_load(gchar **module_list) {
GDir *dir;
GSList *modules = NULL;
ShellModule *module;
gchar *filename;
filename = g_build_filename(params.path_lib, "modules", NULL);
dir = g_dir_open(filename, 0, NULL);
g_free(filename);
if (dir) {
while ((filename = (gchar *)g_dir_read_name(d... | modules_load | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
GSList *modules_load_all() { return modules_load(0); } | GSList *modules_load_all(void) { return modules_load(NULL); } | modules_load_all | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
GSList *modules_load_selected() { return modules_load(params.use_modules); } | GSList *modules_load_selected(void) { return modules_load(params.use_modules); } | modules_load_selected | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void moreinfo_add(gchar *key, gchar *value) {
moreinfo_add_with_prefix(0, key, value);
} | void moreinfo_add(gchar *key, gchar *value) {
moreinfo_add_with_prefix(NULL, key, value);
} | moreinfo_add | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void moreinfo_add_with_prefix(gchar *prefix, gchar *key, gchar *value) {
long v3;
gchar *hashkey;
if (moreinfo) {
if (prefix) {
hashkey = (gchar *)g_strconcat(prefix, ":", key);
g_hash_table_insert(moreinfo, hashkey, value);
} else {
v3 = g_strdup(key);
g_hash_table_insert(moreinf... | void moreinfo_add_with_prefix(gchar *prefix, gchar *key, gchar *value) {
if (G_UNLIKELY(!_moreinfo)) {
DEBUG("moreinfo not initialized");
return;
}
if (prefix) {
gchar *hashkey = g_strconcat(prefix, ":", key, NULL);
g_hash_table_insert(_moreinfo, hashkey, value);
return;
}
g_hash_table_i... | moreinfo_add_with_prefix | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void moreinfo_clear() {
if (moreinfo)
h_hash_table_remove_all(moreinfo);
} | void moreinfo_clear(void) {
if (G_UNLIKELY(!_moreinfo)) {
DEBUG("moreinfo not initialized");
return;
}
h_hash_table_remove_all(_moreinfo);
} | moreinfo_clear | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void moreinfo_del_with_prefix(gchar *prefix) {
if (moreinfo)
g_hash_table_foreach_remove(moreinfo, moreinfo_del_cb, prefix);
} | void moreinfo_del_with_prefix(gchar *prefix) {
if (G_UNLIKELY(!_moreinfo)) {
DEBUG("moreinfo not initialized");
return;
}
g_hash_table_foreach_remove(_moreinfo, _moreinfo_del_cb, prefix);
} | moreinfo_del_with_prefix | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void moreinfo_init() {
if (!moreinfo)
moreinfo = (GHashTable *)g_hash_table_new_full(&g_str_hash, &g_str_equal,
&g_free, &g_free);
} | void moreinfo_init(void) {
if (G_UNLIKELY(_moreinfo)) {
DEBUG("moreinfo already initialized");
return;
}
DEBUG("initializing moreinfo");
_moreinfo = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free);
} | moreinfo_init | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
gchar *moreinfo_lookup(gchar *key) {
return moreinfo_lookup_with_prefix(0, key);
} | gchar *moreinfo_lookup(gchar *key) {
return moreinfo_lookup_with_prefix(NULL, key);
} | moreinfo_lookup | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
gchar *moreinfo_lookup_with_prefix(gchar *prefix, gchar *key) {
gchar *lookup_key;
gchar *result;
if (!moreinfo)
return 0;
if (!prefix)
return (gchar *)g_hash_table_lookup(moreinfo, key);
lookup_key = (gchar *)g_strconcat(prefix, ":", key);
result = (gchar *)g_hash_table_lookup(moreinfo, lookup_key... | gchar *moreinfo_lookup_with_prefix(gchar *prefix, gchar *key) {
if (G_UNLIKELY(!_moreinfo)) {
DEBUG("moreinfo not initialized");
return 0;
}
if (prefix) {
gchar *lookup_key = g_strconcat(prefix, ":", key, NULL);
gchar *result = g_hash_table_lookup(_moreinfo, lookup_key);
g_free(lookup_key);
... | moreinfo_lookup_with_prefix | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void moreinfo_shutdown() {
if (moreinfo) {
g_hash_table_destroy(moreinfo);
moreinfo = 0;
}
} | void moreinfo_shutdown(void) {
if (G_UNLIKELY(!_moreinfo)) {
DEBUG("moreinfo not initialized");
return;
}
DEBUG("shutting down moreinfo");
g_hash_table_destroy(_moreinfo);
_moreinfo = NULL;
} | moreinfo_shutdown | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
MathToken *new_operator(gchar op) {
MathToken *result;
result = (MathToken *)g_malloc0_n(1, 8);
result->val.op = op;
result->type = TOKEN_OPERATOR;
return result;
} | static MathToken *new_operator(gchar op) {
MathToken *t = g_new0(MathToken, 1);
t->val.op = op;
t->type = TOKEN_OPERATOR;
return t;
} | new_operator | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
MathToken *new_value(gfloat value) {
MathToken *result;
result = (MathToken *)g_malloc0_n(1, 8);
result->val.value = value;
result->type = TOKEN_VALUE;
return result;
} | static MathToken *new_value(gfloat value) {
MathToken *t = g_new0(MathToken, 1);
t->val.value = value;
t->type = TOKEN_VALUE;
return t;
} | new_value | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
MathToken *new_variable(gchar var) {
MathToken *result;
result = (MathToken *)g_malloc0_n(1, 8);
result->val.op = 64;
result->type = TOKEN_VARIABLE;
return result;
} | static MathToken *new_variable(gchar var) {
MathToken *t = g_new0(MathToken, 1);
t->val.op = '@';
t->type = TOKEN_VARIABLE;
return t;
} | new_variable | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.