Skip to content

Commit

Permalink
Merge pull request #26 from TytanRock/descriptive_server_status
Browse files Browse the repository at this point in the history
Descriptive Server Status
  • Loading branch information
TytanRock committed Feb 21, 2021
2 parents f0e094e + cd650d5 commit 7670ef1
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 2 deletions.
18 changes: 18 additions & 0 deletions backend/headers/backend.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,24 @@ typedef enum _backend_error
/* Warnings & Errors related to the backend */
BackendThreadStarted = -100,
BackendThreadNotStarted = -101,
BackendBusy = -102,
ActionAlreadyOccurring = -103,
FilenameEmpty = -104,

/* Warnings and Errors related to Diagnostic Server */
InvalidServerResponse = -200,
FactoryUpgradeTimedOut = -201,

/* Warnings and Error related to connection style */
NoSSHUsername = -300,
FailedSshCreate = -301,
SSHAuthFailure = -302,
FailedSshChannelCreate = -303,
FailedCreateDir = -304,
FailedSshScpCreate = -305,
SCPNoInit = -306,
SCPCannotPushFile = -307,
NoSCPWrite = -308
}backend_error;

typedef enum _action_type
Expand Down
Binary file modified backend/lib/amd64/libpenguinbackend.so
Binary file not shown.
Binary file modified backend/lib/arm64/libpenguinbackend.so
Binary file not shown.
Binary file modified backend/lib/armel/libpenguinbackend.so
Binary file not shown.
Binary file modified backend/lib/armhf/libpenguinbackend.so
Binary file not shown.
12 changes: 10 additions & 2 deletions src/can_devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,16 @@ void react_changed_device(GtkWidget *widget, gpointer data)
{
GValue value = G_VALUE_INIT;
gtk_tree_model_get_value(tree, &iter, 0, &value); /* Device Name */
strcpy(_module.selected_device.name, g_value_get_string(&value));
gtk_entry_set_text(_module.txt_device_name, g_value_get_string(&value));
if(widget == NULL)
{
/* Don't update name, this is from the periodic refresh */
}
else
{
/* Update name, device actually changed */
strcpy(_module.selected_device.name, g_value_get_string(&value));
gtk_entry_set_text(_module.txt_device_name, g_value_get_string(&value));
}
g_value_unset(&value);
}
{
Expand Down

0 comments on commit 7670ef1

Please sign in to comment.