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 |
|---|---|---|---|---|---|---|---|
void set_view_type(ShellViewType viewtype, gboolean reload) {
long type;
long v3;
long v4;
long v5;
long v6;
long v7;
long v8;
long v9;
long v10;
long v11;
unsigned int v12;
long v13;
long v14;
long v15;
long v16;
long v17;
int v18;
unsigned int v19;
long v20;
long v21;
long v2... | static void set_view_type(ShellViewType viewtype, gboolean reload) {
#if GTK_CHECK_VERSION(2, 18, 0)
GtkAllocation *alloc;
#endif
gboolean type_changed = FALSE;
if (viewtype != shell->view_type)
type_changed = TRUE;
if (viewtype < SHELL_VIEW_NORMAL || viewtype >= SHELL_VIEW_N_VIEWS)
viewtype = SHELL_VI... | set_view_type | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
gboolean shell_action_get_active(const gchar *action_name) {
long v2;
long v3;
gboolean __r;
GSList *proxies;
GtkAction *action;
GtkWidget *widget;
GTypeInstance *__inst;
GType __t;
if (!params.gui_running)
return 0;
action = (GtkAction *)gtk_action_group_get_action(shell->action_group,
... | gboolean shell_action_get_active(const gchar *action_name) {
GtkAction *action;
GSList *proxies;
if (!params.gui_running)
return FALSE;
action = gtk_action_group_get_action(shell->action_group, action_name);
if (action) {
proxies = gtk_action_get_proxies(action);
for (; proxies; proxies = proxi... | shell_action_get_active | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
gboolean shell_action_get_enabled(const gchar *action_name) {
GtkAction *action;
if (!params.gui_running)
return 0;
action = (GtkAction *)gtk_action_group_get_action(shell->action_group,
action_name);
if (action)
return gtk_action_get_sensitive(action... | gboolean shell_action_get_enabled(const gchar *action_name) {
GtkAction *action;
if (!params.gui_running)
return FALSE;
action = gtk_action_group_get_action(shell->action_group, action_name);
if (action) {
return gtk_action_get_sensitive(action);
}
return FALSE;
} | shell_action_get_enabled | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void shell_action_set_active(const gchar *action_name, gboolean setting) {
long v2;
long v3;
gboolean __r;
GSList *proxies;
GtkAction *action;
GtkWidget *widget;
GTypeInstance *__inst;
GType __t;
if (params.gui_running) {
action = (GtkAction *)gtk_action_group_get_action(shell->action_group,
... | void shell_action_set_active(const gchar *action_name, gboolean setting) {
GtkAction *action;
GSList *proxies;
if (!params.gui_running)
return;
action = gtk_action_group_get_action(shell->action_group, action_name);
if (action) {
proxies = gtk_action_get_proxies(action);
for (; proxies; proxies... | shell_action_set_active | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void shell_action_set_enabled(const gchar *action_name, gboolean setting) {
GtkAction *action;
if (params.gui_running && shell->action_group) {
action = (GtkAction *)gtk_action_group_get_action(shell->action_group,
action_name);
if (action)
gtk_ac... | void shell_action_set_enabled(const gchar *action_name, gboolean setting) {
if (params.gui_running && shell->action_group) {
GtkAction *action;
action = gtk_action_group_get_action(shell->action_group, action_name);
if (action) {
gtk_action_set_sensitive(action, setting);
}
}
} | shell_action_set_enabled | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void shell_action_set_label(const gchar *action_name, gchar *label) {
GtkAction *action;
if (params.gui_running && shell->action_group) {
action = (GtkAction *)gtk_action_group_get_action(shell->action_group,
action_name);
if (action)
gtk_action_s... | void shell_action_set_label(const gchar *action_name, gchar *label) {
#if GTK_CHECK_VERSION(2, 16, 0)
if (params.gui_running && shell->action_group) {
GtkAction *action;
action = gtk_action_group_get_action(shell->action_group, action_name);
if (action) {
gtk_action_set_label(action, label);
}
... | shell_action_set_label | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void shell_action_set_property(const gchar *action_name, const gchar *property,
gboolean setting) {
long v3;
GtkAction *action;
GValue value;
unsigned long v7;
v7 = __readfsqword(0x28u);
if (params.gui_running) {
action = (GtkAction *)gtk_action_group_get_action(shell->ac... | void shell_action_set_property(const gchar *action_name, const gchar *property,
gboolean setting) {
GtkAction *action;
if (!params.gui_running)
return;
action = gtk_action_group_get_action(shell->action_group, action_name);
if (action) {
GValue value = {0};
g_value_... | shell_action_set_property | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void shell_add_modules_to_gui(gpointer _shell_module, gpointer _shell_tree) {
long type;
GtkTreeIter *v3;
GSList *p;
GtkTreeStore *store;
ShellModuleEntry *entry;
GtkTreeIter parent;
GtkTreeIter child;
unsigned long v9;
v9 = __readfsqword(0x28u);
type = gtk_tree_store_get_type(_shell_module);
sto... | void shell_add_modules_to_gui(gpointer _shell_module, gpointer _shell_tree) {
ShellModule *module = (ShellModule *)_shell_module;
ShellTree *shelltree = (ShellTree *)_shell_tree;
GtkTreeStore *store = GTK_TREE_STORE(shelltree->model);
GtkTreeIter parent;
if (!module) {
return;
}
gtk_tree_store_appen... | shell_add_modules_to_gui | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void shell_clear_field_updates() {
GSList *sfusrc;
ShellFieldUpdateSource *src;
if (update_sfusrc) {
for (sfusrc = update_sfusrc; sfusrc; sfusrc = sfusrc->next) {
src = (ShellFieldUpdateSource *)sfusrc->data;
g_source_remove(*(unsigned int *)sfusrc->data);
g_free(src->sfu->field_name);
... | void shell_clear_field_updates(void) {
if (update_sfusrc) {
GSList *sfusrc;
for (sfusrc = update_sfusrc; sfusrc; sfusrc = sfusrc->next) {
ShellFieldUpdateSource *src = (ShellFieldUpdateSource *)sfusrc->data;
g_source_remove(src->source_id);
g_free(src->sfu->field_name);
g_free(src->sf... | shell_clear_field_updates | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void shell_clear_timeouts(Shell *shell) { h_hash_table_remove_all(update_tbl); } | void shell_clear_timeouts(Shell *shell) { h_hash_table_remove_all(update_tbl); } | shell_clear_timeouts | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void shell_clear_tree_models(Shell *shell) {
long type;
long v2;
long v3;
long v4;
long v5;
long v6;
type = gtk_tree_store_get_type(shell);
v2 = g_type_check_instance_cast(shell->tree->model, type);
gtk_tree_store_clear(v2);
v3 = gtk_tree_store_get_type(v2);
v4 = g_type_check_instance_cast(shell-... | void shell_clear_tree_models(Shell *shell) {
gtk_tree_store_clear(GTK_TREE_STORE(shell->tree->model));
gtk_tree_store_clear(GTK_TREE_STORE(shell->info_tree->model));
gtk_tree_view_set_headers_visible(GTK_TREE_VIEW(shell->info_tree->view),
FALSE);
} | shell_clear_tree_models | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void shell_do_reload() {
if (params.gui_running) {
if (shell->selected) {
shell_action_set_enabled("RefreshAction", 0);
shell_action_set_enabled("CopyAction", 0);
shell_action_set_enabled("ReportAction", 0);
shell_status_set_enabled(1);
module_entry_reload(shell->selected);
mod... | void shell_do_reload(void) {
if (!params.gui_running || !shell->selected)
return;
shell_action_set_enabled("RefreshAction", FALSE);
shell_action_set_enabled("CopyAction", FALSE);
shell_action_set_enabled("ReportAction", FALSE);
shell_status_set_enabled(TRUE);
module_entry_reload(shell->selected);
m... | shell_do_reload | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
Shell *shell_get_main_shell() { return shell; } | Shell *shell_get_main_shell(void) { return shell; } | shell_get_main_shell | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void shell_init(GSList *modules) {
Shell *v1;
Shell *v2;
Shell *v3;
Shell *v4;
long type;
Shell *v6;
GtkWidget *scroll;
long v8;
long v9;
GtkWidget *v10;
long v11;
long v12;
GtkWidget *framed;
long v14;
long v15;
GtkWidget *v16;
long v17;
long v18;
long v19;
long v20;
long v21;... | void shell_init(GSList *modules) {
if (shell) {
g_error("Shell already created");
return;
}
DEBUG("initializing shell");
uri_set_function(hardinfo_link);
params.fmt_opts = FMT_OPT_PANGO;
create_window();
shell_action_set_property("ConnectToAction", "is-important", TRUE);
shell_action_set_pro... | shell_init | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void shell_set_note_from_entry(ShellModuleEntry *entry) {
long type;
long v2;
const gchar *note;
if (entry->notefunc && (note = module_entry_get_note(entry)) != 0) {
type = gtk_label_get_type((const char *)entry);
v2 = g_type_check_instance_cast(shell->note->label, type);
gtk_label_set_markup(v2, n... | void shell_set_note_from_entry(ShellModuleEntry *entry) {
if (entry->notefunc) {
const gchar *note = module_entry_get_note(entry);
if (note) {
gtk_label_set_markup(GTK_LABEL(shell->note->label), note);
gtk_widget_show(shell->note->event_box);
} else {
gtk_widget_hide(shell->note->event_... | shell_set_note_from_entry | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void shell_set_side_pane_visible(gboolean setting) {
if (params.gui_running) {
if (setting)
gtk_widget_show(shell->tree->scroll);
else
gtk_widget_hide(shell->tree->scroll);
}
} | void shell_set_side_pane_visible(gboolean setting) {
if (!params.gui_running)
return;
if (setting)
gtk_widget_show(shell->tree->scroll);
else
gtk_widget_hide(shell->tree->scroll);
} | shell_set_side_pane_visible | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void shell_set_title(Shell *shell, gchar *subtitle) {
char *v2;
long type;
long v4;
char *v5;
long v6;
long v7;
gchar *tmp;
if (subtitle) {
v2 = gettext("%s - System Information");
tmp = g_strdup_printf(v2, subtitle);
type = gtk_window_get_type();
v4 = g_type_check_instance_cast(shell->... | void shell_set_title(Shell *shell, gchar *subtitle) {
if (subtitle) {
gchar *tmp;
tmp = g_strdup_printf(_("%s - System Information"), subtitle);
gtk_window_set_title(GTK_WINDOW(shell->window), tmp);
g_free(tmp);
} else {
gtk_window_set_title(GTK_WINDOW(shell->window), _("System Information"));... | shell_set_title | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void shell_set_transient_dialog(GtkWindow *dialog) {
long type;
GtkWindow *v2;
if (dialog) {
v2 = dialog;
} else {
type = gtk_window_get_type();
v2 = (GtkWindow *)g_type_check_instance_cast(shell->window, type);
}
shell->transient_dialog = v2;
} | void shell_set_transient_dialog(GtkWindow *dialog) {
shell->transient_dialog = dialog ? dialog : GTK_WINDOW(shell->window);
} | shell_set_transient_dialog | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void shell_show_detail_view() {
size_t v0;
gint group;
gchar *method_result;
GKeyFile *keyfile;
gchar *detail;
gchar **groups;
gchar *icon;
gchar *method;
set_view_type(SHELL_VIEW_DETAIL, 0);
detail_view_clear(shell->detail_view);
detail_view_create_header(shell->detail_view, shell->selected_modu... | static void shell_show_detail_view(void) {
GKeyFile *keyfile;
gchar *detail;
set_view_type(SHELL_VIEW_DETAIL, FALSE);
detail_view_clear(shell->detail_view);
detail_view_create_header(shell->detail_view, shell->selected_module->name);
keyfile = g_key_file_new();
detail = shell->selected_module->summaryfu... | shell_show_detail_view | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void shell_status_pulse() {
gint pulses;
long type;
long v2;
gint v3;
if (params.gui_running) {
pulses = shell->_pulses;
shell->_pulses = pulses + 1;
if (pulses == 5)
shell_view_set_enabled(0);
type = gtk_progress_bar_get_type();
v2 = g_type_check_instance_cast(shell->progress, type... | void shell_status_pulse(void) {
if (params.gui_running) {
if (shell->_pulses++ == 5) {
shell_view_set_enabled(FALSE);
}
gtk_progress_bar_pulse(GTK_PROGRESS_BAR(shell->progress));
while (gtk_events_pending())
gtk_main_iteration();
} else {
static gint counter = 0;
fprintf(stder... | shell_status_pulse | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void shell_status_set_enabled(gboolean setting) {
char *v1;
if (params.gui_running) {
if (setting) {
gtk_widget_show(shell->progress);
} else {
gtk_widget_hide(shell->progress);
shell_view_set_enabled(1);
v1 = gettext("Done.");
shell_status_update(v1);
}
}
} | void shell_status_set_enabled(gboolean setting) {
if (!params.gui_running)
return;
if (setting)
gtk_widget_show(shell->progress);
else {
gtk_widget_hide(shell->progress);
shell_view_set_enabled(TRUE);
shell_status_update(_("Done."));
}
} | shell_status_set_enabled | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void shell_status_set_percentage(gint percentage) {
long type;
long v2;
gchar pbar[11];
unsigned long v4;
v4 = __readfsqword(0x28u);
if (params.gui_running) {
type = gtk_progress_bar_get_type();
v2 = g_type_check_instance_cast(shell->progress, type);
gtk_progress_bar_set_fraction(v2, (float)per... | void shell_status_set_percentage(gint percentage) {
if (params.gui_running) {
gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(shell->progress),
(float)percentage / 100.0);
while (gtk_events_pending())
gtk_main_iteration();
} else {
if (percentage < 1 || percentage ... | shell_status_set_percentage | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void shell_status_update(const gchar *message) {
long type;
long v2;
long v3;
long v4;
if (params.gui_running) {
type = gtk_label_get_type(message);
v2 = g_type_check_instance_cast(shell->status, type);
gtk_label_set_markup(v2, message);
v3 = gtk_progress_bar_get_type();
v4 = g_type_check... | void shell_status_update(const gchar *message) {
if (params.gui_running) {
gtk_label_set_markup(GTK_LABEL(shell->status), message);
gtk_progress_bar_pulse(GTK_PROGRESS_BAR(shell->progress));
while (gtk_events_pending())
gtk_main_iteration();
} else {
fprintf(stderr, "\033[2K\033[40;37;1m %s\03... | shell_status_update | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void shell_ui_manager_set_visible(const gchar *path, gboolean setting) {
GtkWidget *widget;
if (params.gui_running) {
widget = (GtkWidget *)gtk_ui_manager_get_widget(shell->ui_manager, path);
if (widget) {
if (setting)
gtk_widget_show(widget);
else
gtk_widget_hide(widget);
}... | void shell_ui_manager_set_visible(const gchar *path, gboolean setting) {
GtkWidget *widget;
if (!params.gui_running)
return;
widget = gtk_ui_manager_get_widget(shell->ui_manager, path);
if (!widget)
return;
if (setting)
gtk_widget_show(widget);
else
gtk_widget_hide(widget);
} | shell_ui_manager_set_visible | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void shell_view_set_enabled(gboolean setting) {
gboolean v1;
if (params.gui_running) {
if (setting) {
shell->_pulses = 0;
widget_set_cursor(shell->window, GDK_LEFT_PTR);
} else {
widget_set_cursor(shell->window, GDK_WATCH);
}
gtk_widget_set_sensitive(shell->hbox, (unsigned int)set... | void shell_view_set_enabled(gboolean setting) {
if (!params.gui_running)
return;
if (setting) {
shell->_pulses = 0;
widget_set_cursor(shell->window, GDK_LEFT_PTR);
} else {
widget_set_cursor(shell->window, GDK_WATCH);
}
gtk_widget_set_sensitive(shell->hbox, setting);
shell_action_set_enabl... | shell_view_set_enabled | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
char *simple_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 *simple_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;
} | simple_line_value | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
gchar *size_human_readable(gfloat size) {
char *v1;
char *v3;
char *v4;
char *v5;
char *v6;
char *v7;
if (size >= 1024.0) {
if (size >= 1048576.0) {
if (size >= 1073741800.0) {
if (size >= 1.0995116e12) {
if (size >= 1.1258999e15) {
v7 = gettext("%.1f PiB");
... | gchar *size_human_readable(gfloat size) {
if (size < KiB)
return g_strdup_printf(_("%.1f B"), size);
if (size < MiB)
return g_strdup_printf(_("%.1f KiB"), size / KiB);
if (size < GiB)
return g_strdup_printf(_("%.1f MiB"), size / MiB);
if (size < TiB)
return g_strdup_printf(_("%.1f GiB"), size / ... | size_human_readable | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void sock_close(Socket *s) {
shutdown(s->sock, 2);
close(s->sock);
g_free(s);
} | void sock_close(Socket *s) {
shutdown(s->sock, 2);
close(s->sock);
g_free(s);
} | sock_close | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
Socket *sock_connect(gchar *host, gint port) {
Socket *result;
int sock;
sockaddr_in server;
unsigned long v5;
v5 = __readfsqword(0x28u);
sock = socket(2, 1, 0);
if (sock <= 0 ||
(memset(&server, 0, sizeof(server)), server.sin_family = 2,
server.sin_addr.s_addr = inet_addr(host), server.sin_... | Socket *sock_connect(gchar *host, gint port) {
struct sockaddr_in server;
Socket *s;
int sock;
sock = socket(AF_INET, SOCK_STREAM, 0);
if (sock > 0) {
memset(&server, 0, sizeof(server));
server.sin_family = AF_INET;
server.sin_addr.s_addr = inet_addr(host);
server.sin_port = htons(port);
... | sock_connect | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
int sock_read(Socket *s, gchar *buffer, gint size) {
gint n;
if (size <= 2 || !sock_ready_to_read(s))
return 0;
n = read(s->sock, buffer, size - 1);
if (n <= 0)
return 0;
buffer[n] = 0;
return n;
} | int sock_read(Socket *s, gchar *buffer, gint size) {
if (size > 2 && sock_ready_to_read(s)) {
gint n;
n = read(s->sock, buffer, size - 1);
if (n > 0) {
buffer[n] = '\0';
} else {
return 0;
}
return n;
}
return 0;
} | sock_read | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
int sock_ready_to_read(Socket *s) { return _sock_is_ready(s, 0); } | int sock_ready_to_read(Socket *s) { return __sock_is_ready(s, 0); } | sock_ready_to_read | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
int sock_ready_to_write(Socket *s) { return _sock_is_ready(s, 1); } | int sock_ready_to_write(Socket *s) { return __sock_is_ready(s, 1); } | sock_ready_to_write | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
int sock_write(Socket *s, gchar *str) {
size_t v2;
while (!sock_ready_to_write(s))
;
v2 = strlen(str);
return write(s->sock, str, v2);
} | int sock_write(Socket *s, gchar *str) {
while (!sock_ready_to_write(s))
;
return write(s->sock, str, strlen(str));
} | sock_write | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
gchar *split_loc_default(const char *line) {
return (gchar *)g_utf8_strchr(line, -1, 32);
} | static gchar *split_loc_default(const char *line) {
return g_utf8_strchr(line, -1, ' ');
} | split_loc_default | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void stock_icon_register(gchar *filename, gchar *stock_id) {
GdkPixbuf *pixbuf;
GtkIconSet *icon_set;
GtkIconSource *icon_source;
icon_set = (GtkIconSet *)gtk_icon_set_new();
icon_source = (GtkIconSource *)gtk_icon_source_new();
pixbuf = icon_cache_get_pixbuf(filename);
gtk_icon_source_set_pixbuf(icon_so... | void stock_icon_register(gchar *filename, gchar *stock_id) {
GtkIconSet *icon_set;
GtkIconSource *icon_source;
icon_set = gtk_icon_set_new();
icon_source = gtk_icon_source_new();
gtk_icon_source_set_pixbuf(icon_source, icon_cache_get_pixbuf(filename));
gtk_icon_set_add_source(icon_set, icon_source);
gtk... | stock_icon_register | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void stock_icon_register_pixbuf(GdkPixbuf *pixbuf, gchar *stock_id) {
GtkIconSet *icon_set;
GtkIconSource *icon_source;
icon_set = (GtkIconSet *)gtk_icon_set_new();
icon_source = (GtkIconSource *)gtk_icon_source_new();
gtk_icon_source_set_pixbuf(icon_source, pixbuf);
gtk_icon_set_add_source(icon_set, icon_... | void stock_icon_register_pixbuf(GdkPixbuf *pixbuf, gchar *stock_id) {
GtkIconSet *icon_set;
GtkIconSource *icon_source;
icon_set = gtk_icon_set_new();
icon_source = gtk_icon_source_new();
gtk_icon_source_set_pixbuf(icon_source, pixbuf);
gtk_icon_set_add_source(icon_set, icon_source);
gtk_icon_source_fre... | stock_icon_register_pixbuf | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void stock_icons_init() {
unsigned int i;
icon_factory = (GtkIconFactory *)gtk_icon_factory_new();
for (i = 0; i < 7; ++i)
stock_icon_register(stock_icons[i].filename, stock_icons[i].stock_id);
gtk_icon_factory_add_default(icon_factory);
g_object_unref(icon_factory);
} | void stock_icons_init(void) {
gint i;
guint n_stock_icons = G_N_ELEMENTS(stock_icons);
DEBUG("initializing stock icons");
icon_factory = gtk_icon_factory_new();
for (i = 0; i < n_stock_icons; i++) {
stock_icon_register(stock_icons[i].filename, stock_icons[i].stock_id);
}
gtk_icon_factory_add_defau... | stock_icons_init | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
int str_make_printable(char *str) {
int rc;
rc = 0;
while (*str) {
if (((*__ctype_b_loc())[*str] & 0x4000) == 0) {
*str = 46;
++rc;
}
++str;
}
return rc;
} | static int str_make_printable(char *str) {
int rc = 0;
char *p;
for (p = str; *p; p++) {
if (!isprint(*p)) {
*p = '.';
rc++;
}
}
return rc;
} | str_make_printable | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
gboolean str_shorten(gchar *str, const gchar *find, const gchar *replace) {
unsigned long lr;
unsigned long lf;
gchar *p;
char *buff;
if (!str || !find || !replace)
return 0;
lf = strlen(find);
lr = strlen(replace);
p = strstr(str, find);
if (!p)
return 0;
if (lr > lf)
lr = lf;
buff =... | gboolean str_shorten(gchar *str, const gchar *find, const gchar *replace) {
if (!str || !find || !replace)
return FALSE;
long unsigned lf = strlen(find);
long unsigned lr = strlen(replace);
gchar *p = strstr(str, find);
if (p) {
if (lr > lf)
lr = lf;
gchar *buff = g_strnfill(lf, ' ');
st... | str_shorten | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
gboolean str_shorten_anycase(gchar *str, const gchar *find,
const gchar *replace) {
unsigned long lr;
unsigned long lf;
gchar *p;
char *buff;
if (!str || !find || !replace)
return 0;
lf = strlen(find);
lr = strlen(replace);
p = strcasestr(str, find);
if (!p)
retur... | gboolean str_shorten_anycase(gchar *str, const gchar *find,
const gchar *replace) {
if (!str || !find || !replace)
return FALSE;
long unsigned lf = strlen(find);
long unsigned lr = strlen(replace);
gchar *p = strcasestr(str, find);
if (p) {
if (lr > lf)
lr = lf;
... | str_shorten_anycase | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
char *strcasestr_word(const char *haystack, const char *needle) {
return strstr_word(haystack, needle, 1, 0, 0);
} | char *strcasestr_word(const char *haystack, const char *needle) {
return _strstr_word(haystack, needle, 1, 0, 0);
} | strcasestr_word | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
char *strcasestr_word_prefix(const char *haystack, const char *needle) {
return strstr_word(haystack, needle, 1, 1, 0);
} | char *strcasestr_word_prefix(const char *haystack, const char *needle) {
return _strstr_word(haystack, needle, 1, 1, 0);
} | strcasestr_word_prefix | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
char *strcasestr_word_suffix(const char *haystack, const char *needle) {
return strstr_word(haystack, needle, 1, 0, 1);
} | char *strcasestr_word_suffix(const char *haystack, const char *needle) {
return _strstr_word(haystack, needle, 1, 0, 1);
} | strcasestr_word_suffix | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
char *strend(gchar *str, gchar chr) {
char *p;
if (!str)
return 0;
p = (char *)g_utf8_strchr(str, -1, (unsigned int)chr);
if (p)
*p = 0;
return str;
} | char *strend(gchar *str, gchar chr) {
if (!str)
return NULL;
char *p;
if ((p = g_utf8_strchr(str, -1, chr)))
*p = 0;
return str;
} | strend | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
gchar *strreplace(gchar *string, gchar *replace, gchar *replacement) {
gchar **tmp;
gchar *ret;
tmp = (gchar **)g_strsplit(string, replace, 0);
ret = (gchar *)g_strjoinv(replacement, tmp);
g_strfreev(tmp);
return ret;
} | gchar *strreplace(gchar *string, gchar *replace, gchar *replacement) {
gchar **tmp, *ret;
tmp = g_strsplit(string, replace, 0);
ret = g_strjoinv(replacement, tmp);
g_strfreev(tmp);
return ret;
} | strreplace | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
gchar *strreplacechr(gchar *string, gchar *replace, gchar new_char) {
gchar *s;
for (s = string; *s; ++s) {
if (strchr(replace, *s))
*s = new_char;
}
return string;
} | gchar *strreplacechr(gchar *string, gchar *replace, gchar new_char) {
gchar *s;
for (s = string; *s; s++)
if (strchr(replace, *s))
*s = new_char;
return string;
} | strreplacechr | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
char *strstr_word_prefix(const char *haystack, const char *needle) {
return strstr_word(haystack, needle, 0, 1, 0);
} | char *strstr_word_prefix(const char *haystack, const char *needle) {
return _strstr_word(haystack, needle, 0, 1, 0);
} | strstr_word_prefix | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
char *strstr_word_suffix(const char *haystack, const char *needle) {
return strstr_word(haystack, needle, 0, 0, 1);
} | char *strstr_word_suffix(const char *haystack, const char *needle) {
return _strstr_word(haystack, needle, 0, 0, 1);
} | strstr_word_suffix | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void sync_dialog_destroy(SyncDialog *sd) {
gtk_widget_destroy(sd->dialog);
sync_dialog_netarea_destroy(sd->sna);
g_free(sd);
} | static void sync_dialog_destroy(SyncDialog *sd) {
gtk_widget_destroy(sd->dialog);
sync_dialog_netarea_destroy(sd->sna);
g_free(sd);
} | sync_dialog_destroy | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void sync_dialog_netarea_destroy(SyncNetArea *sna) {
if (sna)
g_free(sna);
else
g_return_if_fail_warning(0, "sync_dialog_netarea_destroy", "sna != NULL");
} | static void sync_dialog_netarea_destroy(SyncNetArea *sna) {
g_return_if_fail(sna != NULL);
g_free(sna);
} | sync_dialog_netarea_destroy | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void sync_dialog_netarea_hide(SyncDialog *sd) {
long type;
long v2;
long v3;
long v4;
char *v5;
long v6;
long v7;
long v8;
long v9;
if (sd && sd->sna) {
type = gtk_widget_get_type(sd);
v2 = g_type_check_instance_cast(sd->scroll_box, type);
gtk_widget_show(v2);
v3 = gtk_widget_get_ty... | static void sync_dialog_netarea_hide(SyncDialog *sd) {
g_return_if_fail(sd && sd->sna);
gtk_widget_show(GTK_WIDGET(sd->scroll_box));
gtk_widget_hide(GTK_WIDGET(sd->sna->vbox));
gtk_label_set_markup(GTK_LABEL(sd->label), LABEL_SYNC_DEFAULT);
gtk_window_reshow_with_initial_size(GTK_WINDOW(sd->dialog));
} | sync_dialog_netarea_hide | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
SyncNetArea *sync_dialog_netarea_new() {
long type;
long v1;
SyncNetArea *sna;
sna = (SyncNetArea *)g_malloc0_n(1, 8);
sna->vbox = (GtkWidget *)gtk_vbox_new(0, 0);
type = gtk_container_get_type(0);
v1 = g_type_check_instance_cast(sna->vbox, type);
gtk_container_set_border_width(v1, 10);
gtk_widget_sh... | static SyncNetArea *sync_dialog_netarea_new(void) {
SyncNetArea *sna = g_new0(SyncNetArea, 1);
sna->vbox = gtk_vbox_new(FALSE, 0);
gtk_container_set_border_width(GTK_CONTAINER(sna->vbox), 10);
gtk_widget_show_all(sna->vbox);
gtk_widget_hide(sna->vbox);
return sna;
} | sync_dialog_netarea_new | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void sync_dialog_netarea_show(SyncDialog *sd) {
long type;
long v2;
long v3;
long v4;
char *v5;
long v6;
long v7;
long v8;
long v9;
long v10;
long v11;
if (sd && sd->sna) {
type = gtk_widget_get_type(sd);
v2 = g_type_check_instance_cast(sd->scroll_box, type);
gtk_widget_hide(v2);
... | static void sync_dialog_netarea_show(SyncDialog *sd) {
g_return_if_fail(sd && sd->sna);
gtk_widget_hide(GTK_WIDGET(sd->scroll_box));
gtk_widget_show(GTK_WIDGET(sd->sna->vbox));
gtk_label_set_markup(GTK_LABEL(sd->label), LABEL_SYNC_SYNCING);
gtk_window_set_default_size(GTK_WINDOW(sd->dialog), 0, 0);
gtk_wi... | sync_dialog_netarea_show | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void sync_dialog_netarea_start_actions(SyncDialog *sd, SyncNetAction *sna,
gint n) {
char *v3;
long type;
const char *v5;
long v6;
long v7;
long v8;
long v9;
long v10;
long v11;
GtkWidget *v12;
long v13;
long v14;
GtkWidget *v15;
long v16;
long v17;
... | static void sync_dialog_netarea_start_actions(SyncDialog *sd,
SyncNetAction sna[], gint n) {
gint i;
GtkWidget **labels;
GtkWidget **status_labels;
const gchar *done_str = "\342\234\223";
const gchar *error_str = "\342\234\227";
const gchar *curr_str = "\342\226... | sync_dialog_netarea_start_actions | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
SyncDialog *sync_dialog_new(GtkWidget *parent) {
long type;
long v2;
long v3;
long v4;
char *v5;
long v6;
long v7;
long v8;
long v9;
GdkPixbuf *pixbuf;
long v11;
long v12;
long v13;
long v14;
long v15;
long v16;
long v17;
long v18;
long v19;
long v20;
long v21;
long v22;
lo... | static SyncDialog *sync_dialog_new(GtkWidget *parent) {
SyncDialog *sd;
GtkWidget *dialog;
GtkWidget *dialog1_vbox;
GtkWidget *scrolledwindow2;
GtkWidget *treeview2;
GtkWidget *dialog1_action_area;
GtkWidget *button8;
GtkWidget *button7;
GtkWidget *button6;
GtkWidget *priv_policy_btn;
GtkWidget *l... | sync_dialog_new | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void sync_dialog_start_sync(SyncDialog *sd) {
long v1;
gint nactions;
SoupURI *proxy;
SyncNetAction *actions;
unsigned long v6;
v6 = __readfsqword(0x28u);
if (!session) {
proxy = sync_manager_get_proxy();
session = (SoupSession *)soup_session_new_with_options(
"timeout", 10, "proxy-uri", ... | static void sync_dialog_start_sync(SyncDialog *sd) {
gint nactions;
SyncNetAction *actions;
if (!session) {
SoupURI *proxy = sync_manager_get_proxy();
session = soup_session_new_with_options(
SOUP_SESSION_TIMEOUT, 10, SOUP_SESSION_PROXY_URI, proxy, NULL);
}
loop = g_main_loop_new(NULL, TRUE... | sync_dialog_start_sync | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void sync_manager_add_entry(SyncEntry *entry) {
entry->selected = 1;
entries_0 = (GSList *)g_slist_append(entries_0, entry);
} | void sync_manager_add_entry(SyncEntry *entry) {
#ifdef HAS_LIBSOUP
DEBUG("registering syncmanager entry ''%s''", entry->name);
entry->selected = TRUE;
entries = g_slist_append(entries, entry);
#else
DEBUG("libsoup support is disabled.");
#endif
} | sync_manager_add_entry | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void sync_manager_clear_entries() {
g_slist_free(entries_0);
entries_0 = 0;
} | void sync_manager_clear_entries(void) {
#ifdef HAS_LIBSOUP
DEBUG("clearing syncmanager entries");
g_slist_free(entries);
entries = NULL;
#else
DEBUG("libsoup support is disabled.");
#endif
} | sync_manager_clear_entries | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
gint sync_manager_count_entries() { return g_slist_length(entries_0); } | gint sync_manager_count_entries(void) {
#ifdef HAS_LIBSOUP
return g_slist_length(entries);
#else
return 0;
#endif
} | sync_manager_count_entries | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
SoupURI *sync_manager_get_proxy() {
const gchar *conf;
conf = (const gchar *)g_getenv("HTTP_PROXY");
if (conf)
return soup_uri_new(conf);
conf = (const gchar *)g_getenv("http_proxy");
if (conf)
return soup_uri_new(conf);
else
return 0;
} | static SoupURI *sync_manager_get_proxy(void) {
const gchar *conf;
if (!(conf = g_getenv("HTTP_PROXY"))) {
if (!(conf = g_getenv("http_proxy"))) {
return NULL;
}
}
return soup_uri_new(conf);
} | sync_manager_get_proxy | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
SyncNetAction *sync_manager_get_selected_actions(gint *n) {
unsigned int v1;
gint v2;
SyncNetAction *v3;
gint i;
GSList *entry;
SyncNetAction *actions;
v1 = g_slist_length(entries_0);
actions = (SyncNetAction *)g_malloc0_n(v1, 16);
entry = entries_0;
i = 0;
while (entry) {
if (*((_DWORD *)ent... | static SyncNetAction *sync_manager_get_selected_actions(gint *n) {
gint i;
GSList *entry;
SyncNetAction *actions;
actions = g_new0(SyncNetAction, g_slist_length(entries));
for (entry = entries, i = 0; entry; entry = entry->next) {
SyncEntry *e = (SyncEntry *)entry->data;
if (e->selected) {
Sy... | sync_manager_get_selected_actions | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void sync_manager_show(GtkWidget *parent) {
long type;
long v2;
long v3;
GtkWindow *v4;
SyncDialog *sd;
sd = sync_dialog_new(parent);
err_quark = g_quark_from_static_string("syncmanager");
type = gtk_dialog_get_type("syncmanager");
v2 = g_type_check_instance_cast(sd->dialog, type);
if ((unsigned in... | void sync_manager_show(GtkWidget *parent) {
#ifndef HAS_LIBSOUP
g_warning(_("HardInfo was compiled without libsoup support. (Network "
"Updater requires it.)"));
#else
SyncDialog *sd = sync_dialog_new(parent);
err_quark = g_quark_from_static_string("syncmanager");
if (gtk_dialog_run(GTK_DIALOG(s... | sync_manager_show | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void tag_vendor(gchar **str, guint offset, const gchar *vendor_str,
const char *ansi_color, int fmt_opts) {
size_t v5;
size_t v6;
const char *work;
char *v11;
const char *cvs;
if (str) {
if (*str) {
if (vendor_str) {
if (ansi_color) {
work = *str;
if ((... | void tag_vendor(gchar **str, guint offset, const gchar *vendor_str,
const char *ansi_color, int fmt_opts) {
if (!str || !*str)
return;
if (!vendor_str || !ansi_color)
return;
gchar *work = *str, *new = NULL;
if (g_str_has_prefix(work + offset, vendor_str) ||
strncasecmp(work + offs... | tag_vendor | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
ShellTree *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;
ShellTree *shelltree;
GtkWidget *scroll;
GtkTreeStore *store;
GtkTre... | static ShellTree *tree_new() {
ShellTree *shelltree;
GtkWidget *treeview, *scroll;
GtkTreeModel *model;
GtkTreeStore *store;
GtkCellRenderer *cr_text, *cr_pbuf;
GtkTreeViewColumn *column;
GtkTreeSelection *sel;
shelltree = g_new0(ShellTree, 1);
scroll = gtk_scrolled_window_new(NULL, NULL);
gtk_scr... | tree_new | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
gint tree_view_get_visible_height(GtkTreeView *tv) {
long type;
long v2;
gint nrows;
GtkTreeModel *model;
GtkTreePath *path;
GdkRectangle rect;
GtkTreeIter iter;
unsigned long v9;
v9 = __readfsqword(0x28u);
model = (GtkTreeModel *)gtk_tree_view_get_model(tv);
nrows = 1;
path = (GtkTreePath *)gt... | gint tree_view_get_visible_height(GtkTreeView *tv) {
GtkTreePath *path;
GdkRectangle rect;
GtkTreeIter iter;
GtkTreeModel *model = gtk_tree_view_get_model(tv);
gint nrows = 1;
path = gtk_tree_path_new_first();
gtk_tree_view_get_cell_area(GTK_TREE_VIEW(tv), path, NULL, &rect);
gtk_tree_model_get_iter_f... | tree_view_get_visible_height | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
guint uber_frame_source_add(guint fps, GSourceFunc func, gpointer data) {
return uber_frame_source_add_full(0, fps, func, data, 0);
} | guint uber_frame_source_add(guint fps, GSourceFunc func, gpointer data) {
return uber_frame_source_add_full(G_PRIORITY_DEFAULT, fps, func, data, NULL);
} | uber_frame_source_add | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
guint uber_frame_source_add_full(gint priority, guint fps, GSourceFunc func,
gpointer data, GDestroyNotify notify) {
guint ret;
GSource *source;
source = (GSource *)g_source_new(&uber_frame_source_funcs, 112);
uber_timeout_interval_init((UberTimeoutInterval *)&source[1], fps);
... | guint uber_frame_source_add_full(gint priority, guint fps, GSourceFunc func,
gpointer data, GDestroyNotify notify) {
guint ret;
GSource *source =
g_source_new(&uber_frame_source_funcs, sizeof(UberFrameSource));
UberFrameSource *frame_source = (UberFrameSource *)source;
_u... | uber_frame_source_add_full | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
gboolean uber_frame_source_check(GSource *source) {
return uber_frame_source_prepare(source, 0);
} | static gboolean uber_frame_source_check(GSource *source) {
return uber_frame_source_prepare(source, NULL);
} | uber_frame_source_check | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
gboolean uber_frame_source_dispatch(GSource *source, GSourceFunc callback,
gpointer user_data) {
return uber_timeout_interval_dispatch((UberTimeoutInterval *)&source[1],
callback, user_data);
} | static gboolean uber_frame_source_dispatch(GSource *source,
GSourceFunc callback,
gpointer user_data) {
UberFrameSource *frame_source = (UberFrameSource *)source;
return _uber_timeout_interval_dispatch(&frame_source->timeout, cal... | uber_frame_source_dispatch | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
gboolean uber_frame_source_prepare(GSource *source, gint *delay) {
long current_time;
current_time = g_source_get_time(source) / 1000;
return uber_timeout_interval_prepare(
current_time, (UberTimeoutInterval *)&source[1], delay);
} | static gboolean uber_frame_source_prepare(GSource *source, gint *delay) {
UberFrameSource *frame_source = (UberFrameSource *)source;
gint64 current_time;
#if GLIB_CHECK_VERSION(2, 27, 3)
current_time = g_source_get_time(source) / 1000;
#else
{
GTimeVal source_time;
g_source_get_current_time(source, &so... | uber_frame_source_prepare | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void uber_graph_add_label(UberGraph *graph, UberLabel *label) {
long type;
long v3;
long v4;
long v5;
long v6;
long v7;
UberGraph *grapha;
gboolean __r;
gboolean __r_0;
GType __t;
GType __t_0;
UberGraphPrivate *priv;
grapha = graph;
__t = uber_graph_get_type();
if (graph) {
if (graph-... | void uber_graph_add_label(UberGraph *graph, UberLabel *label) {
UberGraphPrivate *priv;
g_return_if_fail(UBER_IS_GRAPH(graph));
g_return_if_fail(UBER_IS_LABEL(label));
priv = graph->priv;
gtk_box_pack_start(GTK_BOX(priv->labels), GTK_WIDGET(label), TRUE, TRUE, 0);
gtk_widget_show(GTK_WIDGET(label));
} | uber_graph_add_label | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
gboolean uber_graph_button_press_event(GtkWidget *widget,
GdkEventButton *button) {
GType type;
UberGraph *v4;
GType v5;
UberGraph *v6;
gboolean __r;
GType __t;
__t = uber_graph_get_type();
if (widget) {
if (widget->parent_instance.g_type_instance.g_class &&
... | static gboolean uber_graph_button_press_event(GtkWidget *widget,
GdkEventButton *button) {
g_return_val_if_fail(UBER_IS_GRAPH(widget), FALSE);
switch (button->button) {
case 2:
if (button->state & GDK_CONTROL_MASK) {
uber_graph_take_screenshot(UBER_GRAPH(wi... | uber_graph_button_press_event | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void uber_graph_calculate_rects(UberGraph *graph) {
long type;
long v2;
long v3;
long v4;
unsigned long fps;
gfloat v6;
gint v7;
guint v8;
UberGraphPrivate *v9;
long v10;
long v11;
long v12;
long v13;
long v14;
unsigned int x;
long v16;
long v17;
long v18;
long v19;
UberGraph *gr... | static void uber_graph_calculate_rects(UberGraph *graph) {
UberGraphPrivate *priv;
GtkAllocation alloc;
PangoLayout *layout;
PangoFontDescription *font_desc;
GdkWindow *window;
gint pango_width;
gint pango_height;
cairo_t *cr;
g_return_if_fail(UBER_IS_GRAPH(graph));
priv = graph->priv;
gtk_widge... | uber_graph_calculate_rects | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void uber_graph_class_init(UberGraphClass *klass) {
long type;
long v2;
GObjectClass_0 *object_class;
GtkWidgetClass *widget_class;
object_class = (GObjectClass_0 *)g_type_check_class_cast(klass, 80);
object_class->dispose = (void (*)(GObject *))uber_graph_dispose;
object_class->finalize = (void (*)(GObj... | static void uber_graph_class_init(UberGraphClass *klass) {
GObjectClass *object_class;
GtkWidgetClass *widget_class;
object_class = G_OBJECT_CLASS(klass);
object_class->dispose = uber_graph_dispose;
object_class->finalize = uber_graph_finalize;
object_class->get_property = uber_graph_get_property;
object... | uber_graph_class_init | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void uber_graph_dispose(GObject *object) {
GType type;
void (*v2)(GObject *);
UberGraphPrivate *priv;
type = uber_graph_get_type();
priv = *(UberGraphPrivate **)(g_type_check_instance_cast(object, type) + 40);
if (priv->fps_handler)
g_source_remove(priv->fps_handler);
if (priv->dps_handler)
g_sou... | static void uber_graph_dispose(GObject *object) {
UberGraph *graph;
UberGraphPrivate *priv;
graph = UBER_GRAPH(object);
priv = graph->priv;
if (priv->fps_handler) {
g_source_remove(priv->fps_handler);
}
if (priv->dps_handler) {
g_source_remove(priv->dps_handler);
}
UNSET_SURFACE(priv->bg_su... | uber_graph_dispose | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
gboolean uber_graph_dps_timeout(UberGraph *graph) {
gboolean __r;
GType __t;
UberGraphPrivate *priv;
__t = uber_graph_get_type();
if (graph) {
if (graph->parent.widget.parent_instance.g_type_instance.g_class &&
__t == graph->parent.widget.parent_instance.g_type_instance.g_class
... | static gboolean uber_graph_dps_timeout(UberGraph *graph) {
UberGraphPrivate *priv;
g_return_val_if_fail(UBER_IS_GRAPH(graph), FALSE);
priv = graph->priv;
if (!uber_graph_get_next_data(graph)) {
}
if (G_UNLIKELY(show_fps)) {
g_print("UberGraph[%p] %02d FPS\n", graph, priv->fps_count);
priv->fps_cou... | uber_graph_dps_timeout | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
gboolean uber_graph_draw(GtkWidget *widget, cairo_t *cr) {
GType type;
GType v4;
UberGraph *v5;
GType v6;
UberGraph *v7;
__m128i v8;
GType v9;
UberGraph *v10;
gboolean __r;
float offset;
GType __t;
UberGraphPrivate *priv;
GtkAllocation alloc;
unsigned long v16;
v16 = __readfsqword(0x28u);... | static gboolean uber_graph_draw(GtkWidget *widget, cairo_t *cr) {
UberGraphPrivate *priv;
GtkAllocation alloc;
gfloat offset;
gint x;
g_return_val_if_fail(UBER_IS_GRAPH(widget), FALSE);
priv = UBER_GRAPH(widget)->priv;
gtk_widget_get_allocation(widget, &alloc);
priv->fps_count++;
g_assert(priv->fg... | uber_graph_draw | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void uber_graph_finalize(GObject *object) {
void (*v1)(GObject *);
v1 = *(void (**)(GObject *))(
g_type_check_class_cast(uber_graph_parent_class, 80) + 48);
v1(object);
} | static void uber_graph_finalize(GObject *object) {
G_OBJECT_CLASS(uber_graph_parent_class)->finalize(object);
} | uber_graph_finalize | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
gboolean uber_graph_fps_timeout(UberGraph *graph) {
unsigned int height;
unsigned int width;
unsigned int y;
unsigned int x;
long type;
long v7;
gboolean __r;
GType __t;
UberGraphPrivate *priv;
__t = uber_graph_get_type();
if (graph) {
if (graph->parent.widget.parent_instance.g_type_instance.... | static gboolean uber_graph_fps_timeout(UberGraph *graph) {
UberGraphPrivate *priv;
g_return_val_if_fail(UBER_IS_GRAPH(graph), FALSE);
priv = graph->priv;
gtk_widget_queue_draw_area(GTK_WIDGET(graph), priv->content_rect.x,
priv->content_rect.y, priv->content_rect.width,
... | uber_graph_fps_timeout | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void uber_graph_get_content_area(UberGraph *graph, GdkRectangle *rect) {
long v2;
gboolean __r;
GType __t;
UberGraphPrivate *priv;
__t = uber_graph_get_type();
if (graph) {
if (graph->parent.widget.parent_instance.g_type_instance.g_class &&
__t == graph->parent.widget.parent_instance.g_type_ins... | void uber_graph_get_content_area(UberGraph *graph, GdkRectangle *rect) {
UberGraphPrivate *priv;
g_return_if_fail(UBER_IS_GRAPH(graph));
g_return_if_fail(rect != NULL);
priv = graph->priv;
*rect = priv->content_rect;
} | uber_graph_get_content_area | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
gfloat uber_graph_get_fps_offset(UberGraph *graph) {
gfloat result;
gboolean __r;
GType __t;
UberGraphPrivate *priv;
GTimeVal rel;
GTimeVal tv;
unsigned long v7;
v7 = __readfsqword(0x28u);
rel.tv_sec = 0;
rel.tv_usec = 0;
__t = uber_graph_get_type();
if (graph) {
if (graph->parent.widget.pa... | static gfloat uber_graph_get_fps_offset(UberGraph *graph) {
UberGraphPrivate *priv;
GTimeVal rel = {0};
GTimeVal tv;
gfloat f;
g_return_val_if_fail(UBER_IS_GRAPH(graph), 0.);
priv = graph->priv;
g_get_current_time(&tv);
g_time_val_subtract(&tv, &priv->dps_tv, &rel);
f = ((rel.tv_sec * 1000) + (rel.t... | uber_graph_get_fps_offset | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
GtkWidget *uber_graph_get_labels(UberGraph *graph) {
gboolean __r;
GType __t;
__t = uber_graph_get_type();
if (graph) {
if (graph->parent.widget.parent_instance.g_type_instance.g_class &&
__t == graph->parent.widget.parent_instance.g_type_instance.g_class
->g_type) {
__r = ... | GtkWidget *uber_graph_get_labels(UberGraph *graph) {
UberGraphPrivate *priv;
g_return_val_if_fail(UBER_IS_GRAPH(graph), NULL);
priv = graph->priv;
return priv->align;
} | uber_graph_get_labels | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
gboolean uber_graph_get_next_data(UberGraph *graph) {
gboolean ret;
gboolean __r;
GType __t;
ret = 1;
__t = uber_graph_get_type();
if (graph) {
if (graph->parent.widget.parent_instance.g_type_instance.g_class &&
__t == graph->parent.widget.parent_instance.g_type_instance.g_class
... | static inline gboolean uber_graph_get_next_data(UberGraph *graph) {
UberGraphPrivate *priv;
gboolean ret = TRUE;
g_return_val_if_fail(UBER_IS_GRAPH(graph), FALSE);
priv = graph->priv;
g_get_current_time(&priv->dps_tv);
if (UBER_GRAPH_GET_CLASS(graph)->get_next_data) {
ret = UBER_GRAPH_GET_CLASS(graph... | uber_graph_get_next_data | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void uber_graph_get_pixmap_rect(UberGraph *graph, GdkRectangle *rect) {
long type;
long v3;
int width;
gboolean __r;
GType __t;
UberGraphPrivate *priv;
GtkAllocation alloc;
unsigned long v9;
v9 = __readfsqword(0x28u);
__t = uber_graph_get_type();
if (graph) {
if (graph->parent.widget.parent_i... | static inline void uber_graph_get_pixmap_rect(UberGraph *graph,
GdkRectangle *rect) {
UberGraphPrivate *priv;
GtkAllocation alloc;
g_return_if_fail(UBER_IS_GRAPH(graph));
priv = graph->priv;
gtk_widget_get_allocation(GTK_WIDGET(graph), &alloc);
rect->x = 0;
... | uber_graph_get_pixmap_rect | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void uber_graph_get_preferred_height(GtkWidget *widget, gint *minimal_height,
gint *natural_height) {
GtkRequisition requisition;
unsigned long v5;
v5 = __readfsqword(0x28u);
uber_graph_size_request(widget, &requisition);
*natural_height = requisition.height;
*minimal_h... | static void uber_graph_get_preferred_height(GtkWidget *widget,
gint *minimal_height,
gint *natural_height) {
GtkRequisition requisition;
uber_graph_size_request(widget, &requisition);
*minimal_height = *natural_height = requis... | uber_graph_get_preferred_height | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void uber_graph_get_preferred_width(GtkWidget *widget, gint *minimal_width,
gint *natural_width) {
GtkRequisition requisition;
unsigned long v5;
v5 = __readfsqword(0x28u);
uber_graph_size_request(widget, &requisition);
*natural_width = requisition.width;
*minimal_width =... | static void uber_graph_get_preferred_width(GtkWidget *widget,
gint *minimal_width,
gint *natural_width) {
GtkRequisition requisition;
uber_graph_size_request(widget, &requisition);
*minimal_width = *natural_width = requisition.w... | uber_graph_get_preferred_width | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void uber_graph_get_property(GObject *object, guint prop_id, GValue *value,
GParamSpec *pspec) {
GType type;
const char *v5;
const char *v6;
UberGraph *graph;
type = uber_graph_get_type();
graph = (UberGraph *)g_type_check_instance_cast(object, type);
if (prop_id == 1) {
... | static void uber_graph_get_property(GObject *object, guint prop_id,
GValue *value, GParamSpec *pspec) {
UberGraph *graph = UBER_GRAPH(object);
switch (prop_id) {
case PROP_FORMAT:
g_value_set_uint(value, graph->priv->format);
break;
default:
G_OBJECT_WARN_INVALID... | uber_graph_get_property | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
gboolean uber_graph_get_show_xlabels(UberGraph *graph) {
gboolean __r;
GType __t;
__t = uber_graph_get_type();
if (graph) {
if (graph->parent.widget.parent_instance.g_type_instance.g_class &&
__t == graph->parent.widget.parent_instance.g_type_instance.g_class
->g_type) {
__... | gboolean uber_graph_get_show_xlabels(UberGraph *graph) {
UberGraphPrivate *priv;
g_return_val_if_fail(UBER_IS_GRAPH(graph), FALSE);
priv = graph->priv;
return priv->show_xlabels;
} | uber_graph_get_show_xlabels | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
gboolean uber_graph_get_show_xlines(UberGraph *graph) {
gboolean __r;
GType __t;
__t = uber_graph_get_type();
if (graph) {
if (graph->parent.widget.parent_instance.g_type_instance.g_class &&
__t == graph->parent.widget.parent_instance.g_type_instance.g_class
->g_type) {
__r... | gboolean uber_graph_get_show_xlines(UberGraph *graph) {
UberGraphPrivate *priv;
g_return_val_if_fail(UBER_IS_GRAPH(graph), FALSE);
priv = graph->priv;
return priv->show_xlines;
} | uber_graph_get_show_xlines | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
gboolean uber_graph_get_show_ylines(UberGraph *graph) {
gboolean __r;
GType __t;
__t = uber_graph_get_type();
if (graph) {
if (graph->parent.widget.parent_instance.g_type_instance.g_class &&
__t == graph->parent.widget.parent_instance.g_type_instance.g_class
->g_type) {
__r... | gboolean uber_graph_get_show_ylines(UberGraph *graph) {
UberGraphPrivate *priv;
g_return_val_if_fail(UBER_IS_GRAPH(graph), FALSE);
priv = graph->priv;
return priv->show_ylines;
} | uber_graph_get_show_ylines | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void uber_graph_get_yrange(UberGraph *graph, UberRange *range) {
gboolean __r;
GType __t;
__t = uber_graph_get_type();
if (graph) {
if (graph->parent.widget.parent_instance.g_type_instance.g_class &&
__t == graph->parent.widget.parent_instance.g_type_instance.g_class
->g_type) {
... | static inline void uber_graph_get_yrange(UberGraph *graph, UberRange *range) {
g_return_if_fail(UBER_IS_GRAPH(graph));
g_return_if_fail(range != NULL);
memset(range, 0, sizeof(*range));
if (UBER_GRAPH_GET_CLASS(graph)->get_yrange) {
UBER_GRAPH_GET_CLASS(graph)->get_yrange(graph, range);
}
} | uber_graph_get_yrange | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void uber_graph_hide(GtkWidget *widget) {
GType type;
gboolean __r;
GType __t;
UberGraphPrivate *priv;
__t = uber_graph_get_type();
if (widget) {
if (widget->parent_instance.g_type_instance.g_class &&
__t == widget->parent_instance.g_type_instance.g_class->g_type) {
__r = 1;
} else {
... | static void uber_graph_hide(GtkWidget *widget) {
UberGraphPrivate *priv;
g_return_if_fail(UBER_IS_GRAPH(widget));
priv = UBER_GRAPH(widget)->priv;
if (priv->fps_handler) {
g_source_remove(priv->fps_handler);
priv->fps_handler = 0;
}
} | uber_graph_hide | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void uber_graph_init(UberGraph *graph) {
GType type;
long v2;
long v3;
long v4;
long v5;
GtkWidget *labels;
long v7;
long v8;
UberGraphPrivate *priv;
type = uber_graph_get_type();
graph->priv = (UberGraphPrivate *)g_type_instance_get_private(graph, type);
priv = graph->priv;
v2 = gtk_widget_g... | static void uber_graph_init(UberGraph *graph) {
UberGraphPrivate *priv;
graph->priv =
G_TYPE_INSTANCE_GET_PRIVATE(graph, UBER_TYPE_GRAPH, UberGraphPrivate);
priv = graph->priv;
gtk_widget_set_events(GTK_WIDGET(graph), GDK_BUTTON_PRESS_MASK);
priv->tick_len = 10;
priv->fps = 20;
priv->fps_real = 1... | uber_graph_init | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void uber_graph_init_bg(UberGraph *graph) {
long type;
long v2;
long v3;
long v4;
gboolean __r;
GType __t;
UberGraphPrivate *priv;
GdkWindow *window;
cairo_t *cr;
GtkAllocation alloc;
unsigned long v12;
v12 = __readfsqword(0x28u);
__t = uber_graph_get_type();
if (graph) {
if (graph->par... | static void uber_graph_init_bg(UberGraph *graph) {
UberGraphPrivate *priv;
GtkAllocation alloc;
GdkWindow *window;
cairo_t *cr;
g_return_if_fail(UBER_IS_GRAPH(graph));
priv = graph->priv;
gtk_widget_get_allocation(GTK_WIDGET(graph), &alloc);
window = gtk_widget_get_window(GTK_WIDGET(graph));
if (!w... | uber_graph_init_bg | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void uber_graph_init_texture(UberGraph *graph) {
long type;
long v2;
long v3;
long v4;
unsigned int width;
gboolean __r;
GType __t;
UberGraphPrivate *priv;
GdkWindow *window;
cairo_t *cr;
GtkAllocation alloc;
unsigned long v13;
v13 = __readfsqword(0x28u);
__t = uber_graph_get_type();
if (... | static void uber_graph_init_texture(UberGraph *graph) {
UberGraphPrivate *priv;
GtkAllocation alloc;
GdkWindow *window;
cairo_t *cr;
gint width;
g_return_if_fail(UBER_IS_GRAPH(graph));
priv = graph->priv;
gtk_widget_get_allocation(GTK_WIDGET(graph), &alloc);
window = gtk_widget_get_window(GTK_WIDGET... | uber_graph_init_texture | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
GtkWidget *uber_graph_new() {
GType type;
long v1;
UberGraph *graph;
type = uber_graph_get_type();
graph = (UberGraph *)g_object_new(type, 0);
v1 = gtk_widget_get_type(type);
return (GtkWidget *)g_type_check_instance_cast(graph, v1);
} | GtkWidget *uber_graph_new(void) {
UberGraph *graph;
graph = g_object_new(UBER_TYPE_GRAPH, NULL);
return GTK_WIDGET(graph);
} | uber_graph_new | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void uber_graph_realize(GtkWidget *widget) {
GType type;
long v2;
void (*v3)(GtkWidget *);
void (*g_type)(long, _QWORD);
unsigned int x_slots;
GType v6;
long v7;
gboolean __r;
GType __t;
UberGraph *graph;
UberGraphPrivate *priv;
__t = uber_graph_get_type();
if (widget) {
if (widget->paren... | static void uber_graph_realize(GtkWidget *widget) {
UberGraph *graph;
UberGraphPrivate *priv;
g_return_if_fail(UBER_IS_GRAPH(widget));
graph = UBER_GRAPH(widget);
priv = graph->priv;
WIDGET_CLASS->realize(widget);
uber_graph_calculate_rects(graph);
UNSET_SURFACE(priv->bg_surface);
UNSET_SURFACE(pr... | uber_graph_realize | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void uber_graph_redraw(UberGraph *graph) {
long type;
long v2;
gboolean __r;
GType __t;
UberGraphPrivate *priv;
__t = uber_graph_get_type();
if (graph) {
if (graph->parent.widget.parent_instance.g_type_instance.g_class &&
__t == graph->parent.widget.parent_instance.g_type_instance.g_class
... | void uber_graph_redraw(UberGraph *graph) {
UberGraphPrivate *priv;
g_return_if_fail(UBER_IS_GRAPH(graph));
priv = graph->priv;
priv->fg_dirty = TRUE;
priv->bg_dirty = TRUE;
priv->full_draw = TRUE;
gtk_widget_queue_draw(GTK_WIDGET(graph));
} | uber_graph_redraw | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void uber_graph_register_dps_handler(UberGraph *graph) {
gboolean do_now;
gboolean __r;
GType __t;
UberGraphPrivate *priv;
do_now = 1;
__t = uber_graph_get_type();
if (graph) {
if (graph->parent.widget.parent_instance.g_type_instance.g_class &&
__t == graph->parent.widget.parent_instance.g_ty... | static void uber_graph_register_dps_handler(UberGraph *graph) {
UberGraphPrivate *priv;
guint dps_freq;
gboolean do_now = TRUE;
g_return_if_fail(UBER_IS_GRAPH(graph));
priv = graph->priv;
if (priv->dps_handler) {
g_source_remove(priv->dps_handler);
do_now = FALSE;
}
dps_freq = 1000 / priv->dp... | uber_graph_register_dps_handler | hardinfo-0.6_alpha_pre20201116-r1 | app-admin | O0/app-admin/hardinfo-0.6_alpha_pre20201116-r1/hardinfo | ida | O0 |
void uber_graph_register_fps_handler(UberGraph *graph) {
gboolean __r;
GType __t;
UberGraphPrivate *priv;
__t = uber_graph_get_type();
if (graph) {
if (graph->parent.widget.parent_instance.g_type_instance.g_class &&
__t == graph->parent.widget.parent_instance.g_type_instance.g_class
... | static void uber_graph_register_fps_handler(UberGraph *graph) {
UberGraphPrivate *priv;
g_return_if_fail(UBER_IS_GRAPH(graph));
priv = graph->priv;
if (priv->fps_handler) {
g_source_remove(priv->fps_handler);
}
priv->fps_handler = uber_frame_source_add(
priv->fps, (GSourceFunc)uber_graph_fps_t... | uber_graph_register_fps_handler | 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.