mirror of https://github.com/PCSX2/pcsx2.git
DEV9: Clang Format
This commit is contained in:
parent
af63023d92
commit
fad389faab
|
@ -60,7 +60,7 @@ IP_Address IPControl_GetValue(GtkEntry* entryCtl)
|
||||||
return {0};
|
return {0};
|
||||||
}
|
}
|
||||||
|
|
||||||
void IPControl_Enable(GtkEntry *ipEntry, bool enabled, IP_Address value)
|
void IPControl_Enable(GtkEntry* ipEntry, bool enabled, IP_Address value)
|
||||||
{
|
{
|
||||||
if (enabled)
|
if (enabled)
|
||||||
{
|
{
|
||||||
|
@ -74,27 +74,27 @@ void IPControl_Enable(GtkEntry *ipEntry, bool enabled, IP_Address value)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void OnAutoMaskChanged(GtkToggleButton *togglebutton, gpointer usr_data)
|
void OnAutoMaskChanged(GtkToggleButton* togglebutton, gpointer usr_data)
|
||||||
{
|
{
|
||||||
IPControl_Enable((GtkEntry*)gtk_builder_get_object(builder, "IDC_IPADDRESS_SUBNET"), !gtk_toggle_button_get_active(togglebutton), config.Mask);
|
IPControl_Enable((GtkEntry*)gtk_builder_get_object(builder, "IDC_IPADDRESS_SUBNET"), !gtk_toggle_button_get_active(togglebutton), config.Mask);
|
||||||
}
|
}
|
||||||
|
|
||||||
void OnAutoGatewayChanged(GtkToggleButton *togglebutton, gpointer usr_data)
|
void OnAutoGatewayChanged(GtkToggleButton* togglebutton, gpointer usr_data)
|
||||||
{
|
{
|
||||||
IPControl_Enable((GtkEntry*)gtk_builder_get_object(builder, "IDC_IPADDRESS_GATEWAY"), !gtk_toggle_button_get_active(togglebutton), config.Gateway);
|
IPControl_Enable((GtkEntry*)gtk_builder_get_object(builder, "IDC_IPADDRESS_GATEWAY"), !gtk_toggle_button_get_active(togglebutton), config.Gateway);
|
||||||
}
|
}
|
||||||
|
|
||||||
void OnAutoDNS1Changed(GtkToggleButton *togglebutton, gpointer usr_data)
|
void OnAutoDNS1Changed(GtkToggleButton* togglebutton, gpointer usr_data)
|
||||||
{
|
{
|
||||||
IPControl_Enable((GtkEntry*)gtk_builder_get_object(builder, "IDC_IPADDRESS_DNS1"), !gtk_toggle_button_get_active(togglebutton), config.DNS1);
|
IPControl_Enable((GtkEntry*)gtk_builder_get_object(builder, "IDC_IPADDRESS_DNS1"), !gtk_toggle_button_get_active(togglebutton), config.DNS1);
|
||||||
}
|
}
|
||||||
|
|
||||||
void OnAutoDNS2Changed(GtkToggleButton *togglebutton, gpointer usr_data)
|
void OnAutoDNS2Changed(GtkToggleButton* togglebutton, gpointer usr_data)
|
||||||
{
|
{
|
||||||
IPControl_Enable((GtkEntry*)gtk_builder_get_object(builder, "IDC_IPADDRESS_DNS2"), !gtk_toggle_button_get_active(togglebutton), config.DNS2);
|
IPControl_Enable((GtkEntry*)gtk_builder_get_object(builder, "IDC_IPADDRESS_DNS2"), !gtk_toggle_button_get_active(togglebutton), config.DNS2);
|
||||||
}
|
}
|
||||||
|
|
||||||
void OnInterceptChanged(GtkToggleButton *togglebutton, gpointer usr_data)
|
void OnInterceptChanged(GtkToggleButton* togglebutton, gpointer usr_data)
|
||||||
{
|
{
|
||||||
if (gtk_toggle_button_get_active(togglebutton))
|
if (gtk_toggle_button_get_active(togglebutton))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue