mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-31 22:23:39 +02:00
gio: add G_IO_ERROR_NOT_CONNECTED
It adds a new error G_IO_ERROR_NOT_CONNECTED and makes the win32 error ERROR_PIPE_LISTENING to be translated to it. https://bugzilla.gnome.org/show_bug.cgi?id=741016
This commit is contained in:
@@ -475,6 +475,7 @@ typedef enum {
|
|||||||
* "connection closed" errors returned %G_IO_ERROR_BROKEN_PIPE, but others
|
* "connection closed" errors returned %G_IO_ERROR_BROKEN_PIPE, but others
|
||||||
* returned %G_IO_ERROR_FAILED. Now they should all return the same
|
* returned %G_IO_ERROR_FAILED. Now they should all return the same
|
||||||
* value, which has this more logical name. Since 2.44.
|
* value, which has this more logical name. Since 2.44.
|
||||||
|
* @G_IO_ERROR_NOT_CONNECTED: Transport endpoint is not connected. Since 2.44
|
||||||
*
|
*
|
||||||
* Error codes returned by GIO functions.
|
* Error codes returned by GIO functions.
|
||||||
*
|
*
|
||||||
@@ -539,6 +540,7 @@ typedef enum {
|
|||||||
G_IO_ERROR_PROXY_NOT_ALLOWED,
|
G_IO_ERROR_PROXY_NOT_ALLOWED,
|
||||||
G_IO_ERROR_BROKEN_PIPE,
|
G_IO_ERROR_BROKEN_PIPE,
|
||||||
G_IO_ERROR_CONNECTION_CLOSED = G_IO_ERROR_BROKEN_PIPE
|
G_IO_ERROR_CONNECTION_CLOSED = G_IO_ERROR_BROKEN_PIPE
|
||||||
|
G_IO_ERROR_NOT_CONNECTED
|
||||||
} GIOErrorEnum;
|
} GIOErrorEnum;
|
||||||
|
|
||||||
|
|
||||||
|
@@ -314,6 +314,9 @@ g_io_error_from_win32_error (gint error_code)
|
|||||||
case WSAECONNRESET:
|
case WSAECONNRESET:
|
||||||
return G_IO_ERROR_CONNECTION_CLOSED;
|
return G_IO_ERROR_CONNECTION_CLOSED;
|
||||||
|
|
||||||
|
case ERROR_PIPE_LISTENING:
|
||||||
|
return G_IO_ERROR_NOT_CONNECTED;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return G_IO_ERROR_FAILED;
|
return G_IO_ERROR_FAILED;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user